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 The data ret...
Power Apps
Answered

CountRows The data returned by the service is invalid

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi there,

 

I have a couple of CDS entities which I'm using to supply Power Apps. When I use the CountRows function I get an error advising "The data returned by the service is invalid". There are currently only 3 rows in the table so its not a delegation issue.

 

To troubleshoot, I have added the following to the Default Value of a Text Box which fails:

 

CountRows('Houses')

 

With Houses being the name of the Entity.

 

This works when I point to Entities which are auto generated by Power Apps, but does not work for my custom entities.

 

Your help is much appreciated.

 

Richard

I have the same question (0)
  • Verified answer
    EricRegnier Profile Picture
    8,720 Most Valuable Professional on at

    Hi @Anonymous,

    Seems like your missing privileges on those custom entities. You'll need to edit an existing security role (or create a new one) to grant privilege on those entities. Make sure you edit the role(s) that are assigned on the user that is used in the CDS Connector.

    Cheers

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at
    Thanks for the advice, this seems to have worked!

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 541

#2
WarrenBelz Profile Picture

WarrenBelz 434 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 289

Last 30 days Overall leaderboard