DEV Community

Cover image for How to Debug a Blank Power Apps Gallery
Matt Hummel
Matt Hummel

Posted on • Originally published at matthummel.com

How to Debug a Blank Power Apps Gallery

A blank gallery in Power Apps does not always mean your app is broken. Most gallery issues come from one of these areas:

  • The Items property
  • A filter returning no records
  • A dropdown with no selected value
  • A search box filtering everything out
  • An empty collection
  • Delegation limits
  • Data source or permission issues

Start by Simplifying the Gallery

The first step is to strip the Items property down to just the data source:

'Project Requests'
Enter fullscreen mode Exit fullscreen mode

If records show up, your connection is fine. The problem lives inside your filter logic.


Isolate the Filter

Add your filter back and watch what happens:

Filter(
    'Project Requests',
    Status.Value = "Approved"
)
Enter fullscreen mode Exit fullscreen mode

If the gallery goes blank again, you know the issue is inside the filter itself — not the data source.


Handle Dropdown Filters with an "All" Option

Dropdowns with no selected value can silently filter out everything. Use an "All" fallback to prevent this:

Filter(
    'Project Requests',
    ddStatus.Selected.Value = "All" || Status.Value = ddStatus.Selected.Value
)
Enter fullscreen mode Exit fullscreen mode

This way, when "All" is selected, every record passes through.


Debug Collections with a Count Label

If your gallery is backed by a collection, add a temporary label to check whether it actually loaded:

CountRows(colProjectRequests)
Enter fullscreen mode Exit fullscreen mode

If that returns 0, the collection was never populated — check where Collect() or ClearCollect() is called and whether it runs on app start.


The Core Debugging Principle

Do not try to debug everything at once.

  1. Start with the raw data source
  2. Confirm records appear
  3. Add each filter or condition back one step at a time

Isolating variables is how you find the real problem fast.

Top comments (0)