cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
btonrich
Frequent Visitor

CountRows The data returned by the service is invalid

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

1 ACCEPTED SOLUTION

Accepted Solutions
EricRegnier
Super User II
Super User II

Hi @btonrich,

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

 

View solution in original post

2 REPLIES 2
EricRegnier
Super User II
Super User II

Hi @btonrich,

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

 

View solution in original post

Thanks for the advice, this seems to have worked!

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Top Solution Authors
Top Kudoed Authors
Users online (3,865)