web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / PowerApps debugger not...
Power Apps
Unanswered

PowerApps debugger not making sense.

(1) ShareShare
ReportReport
Posted on by 894

I have run this over & over. My OnVisible runs a flow to get a collection. The collection is clearly visible in View:

colDeliveryDetails.png

This is the line of code that gets it:

If(
 First(colRowCount).rowcount > 0,
 Notify("Delivery records: " & First(colRowCount).rowcount);
 ClearCollect(
 colDeliveryDetails,
 IPL_GoodsInBatchDeliveries.Run(
 First(colItems).thOurRef,
 First(colItems).stCode
 )
 );
 Notify("Delivery record (1) ID: " & First(colDeliveryDetails).ID);
 ,
 Notify("Delivery records: " & First(colRowCount).rowcount);
 Clear(colDeliveryDetails)
 );

When I run it, it displaiys the notification: Delivery records: 1.

delivery records 1.png

The record should be visible in the gallery:

deliveries gallery.JPG

The message in red, 'There are no deliveries to display' is driven by this line:

If(CountRows(galDeliveryDetails.AllItems) = 0,"There are no deliveries to display")

In the debugger, the value manages to be both true and false at the same time!!!

countrows is 1.JPG

Value is 1

So why is this message displayed, and the gallery items missing?

Categories:
  • zmorek Profile Picture
    3,272 on at

    I ran into this the other day and I found the solution but I can't find the post in my history. Try using IsEmpty instead of CountRows; it had to do something with CountRows still counting a table as having a record, because the table still exists/has a blank record. IsEmpty checks if the table is empty.

    (Again, the reason is from memory, so that could be more or less correct)

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 248 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 192 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 135

Last 30 days Overall leaderboard