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 / CountRows() giving an ...
Power Apps
Answered

CountRows() giving an error: The Data returned by service is invalid.

(0) ShareShare
ReportReport
Posted on by 377

Hi All,

I imported the excel data into one of my CDS entities. I verified I am the System Admin. I have verified that the Enhanced Delegate for CDS setting is set to 'ON' on my Canvas app advanced settings.

 

I just added a label to a blank Canvas app and connected to the entity in question and on the label1.text, I have it as 'CountRows('[name of the entity]') within single quotes.  But I still get the above error I have indicated in the Subject line.

 

Can you please let me know what I am doing wrong?  I am doing all this, because I have no other way to verify if all 68.000 rows from that Excel file did get ported over into that entity.  If there is any other way I can do a count check, please let me know that as well. 

 

Thanks in advance!

 

 

 

 

 

Categories:
  • Verified answer
    mdevaney Profile Picture
    29,993 Moderator on at

    @rprahalad 

    I think even if you figure out the issue COUNTROWS is not delegation-friendly.  It can only count 2,000 rows, far fewer from the 68,000 rows you are inserting.  

     

    My advice would be to head on over the the Flow forums and ask how to batch upload values from a spreadsheet there.  There is no such limitation in Flow.

     

    Link to Power Automate Community
    https://powerusers.microsoft.com/t5/Get-Help-with-Power-Automate/ct-p/FL_GeneralDiscussions


    ---
    Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

  • rprahalad Profile Picture
    377 on at

    I shall do that! Thanks much, @mdevaney ! I will mark this as Answer, as it suddenly opened my way of thinking a few things within PowerApps. I am very new to it and so, this helped. 

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 432 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 347

#3
WarrenBelz Profile Picture

WarrenBelz 254 Most Valuable Professional

Last 30 days Overall leaderboard