How to Debug a Blank Power Apps Gallery

1 min read
Share Bluesky LinkedIn Facebook Reddit
On this page
  1. Start by Simplifying the Gallery
  2. Isolate the Filter
  3. Handle Dropdown Filters with an "All" Option
  4. Debug Collections with a Count Label
  5. The Core Debugging Principle

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

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

'Project Requests'

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"
)

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
)

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)

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.

Originally posted on DEV.to.

Found this useful?

Bluesky LinkedIn Facebook Reddit

More examples on the Code page. Questions about a snippet? Say hello.

More from the journal in DEV.to

All posts →

Comments

No comments yet. ASCII, code, and plain punctuation are welcome.

Leave a comment

Your email stays private. It is only used if you ask for reply notices. Required fields are marked required.

Tip: **bold**, _italic_, `code`, [text](https://), and > quotes. ASCII punctuation is kept as typed. 0 / 8000