Showing results for 
Search instead for 
Did you mean: 
Helper I
Helper I

Error "Data returned by the service is invalid"

I am building a canvas app and use fields of the entity Cursussen on a screen. I've added a label that shows the total number of records in the entity, I've used the code Text(CountRows(Cursussen)). Then I get the error "Data returned by the service is invalid"


What am I doing wrong?

Dual Super User II
Dual Super User II

Hi @EllenHeijmans 


I am able to replicate the issue mentioned by you. Can you try to update the expression to: Text(CountIf(Cursussen,true))


Hope this Helps!


If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

Thanks @yashag2255, that works. But is there a reason why CountRows doesn't work? I've used it before, with no problems. 

Helpful resources

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

Power Apps Community Call

Monthly Power Apps Community Call

Did you miss the call?? Check out the Power Apps Community Call here!


Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Power Platform ISV STudio

Power Platform ISV Studio

ISV Studio is the go-to Power Platform destination for ISV’s to monitor & manage applications post-AppSource publish.

Top Solution Authors
Top Kudoed Authors
Users online (34,821)