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

Gallery not fetching items from Sharepoint list

I have a sharepoint list called ListA. I have added a gallery container in my canvas app and when I add ListA as the data source, it shows the following error on the gallery :

"The requested operation is invalid. Server Response: The $top expression infinity is not valid"


Kindly find the screenshot attached below

Not applicable

Hi @sufiyan_akhtar 


Please refer to - 


As of now, add a dummy record in the SP List to avoid this error.



Community Support
Community Support

Hi @sufiyan_akhtar ,

Based on the issue that you mentioned, I have made a test on my side, and don't have the issue that you mentioned.


The user @PowerGell54 has faced same issue with you, please check the alternative solution within the following thread:


On your side, please consider save your SP List records into a Collection, then use the Collection as data source in your app instead of the Original SP List data source.

Set the OnStart property of the App control to following:

ClearCollect(RecordsCollection, 'YourSPList')

then set the Items property of the Gallery to following:


If the issue still exists, please consider remove the SP list connection from your app, then re-create a new one from your app, then try above solution, check if the issue is solved.


Also please check if there are records existed in your SP List, if not, please add a record into your SP List in your SP List page directly, then refresh the SP List data source in your app, check if the issue is solved.


Please take a try with above alternative solution, then check if the issue is solved. I would also post this issue to my product team, if this issue is solved, I would reply here.


Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

@v-xida-msft  Hi, this bug still are on. MS Team must do something 'cause many of users around the word are just getting crazy

Not applicable

Hi @bemvilac_brito have you tried either of the above solutions? 



Helpful resources


Experience what’s next for Power Apps

Join us for an in-depth look at the new Power Apps features and capabilities at the free Microsoft Business Applications Launch Event.

Power Apps Community Call

Power Apps Community Call: February

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

New Power Super Users


We are excited to announce the Power Apps Super Users!

New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

Top Solution Authors
Top Kudoed Authors
Users online (78,733)