Request Operation is Invalid. The $top expression "Infinity" is not valid

Although there is an earlier thread on this topic that is marked as resolved, this issue is not resolved for many of us, as creating an entry in the list so that there is at least one did not make the error go away. I have a screen with 3 galleries, each connected to a different SharePoint list from the same site. Depending on who is accessing the app (comparing Lower(User().Email) to a collection of emails), I am filtering the list to display only the most recent 50 entries in the gallery, or only the most recent 50 created by that user. I'm using the same filter on each gallery (though obviously for the corresponding list). When accessing as someone who is allowed (just within the app, no special permissions in SharePoint) to see all of the most recent 50 entries, the error does not come up. But if I access as one of the people whose email is in the collection, I get an error when I click on an item in either of 2 galleries but not in the 3rd gallery. I also get an error when just going to a new form (no item selected) for those two lists from buttons. All the related lists have entries. Of the two that throw the error, one has an item created by that user and the other doesn't (so one gallery has one item and the other doesn't).

Re: Request Operation is Invalid. The $top expression "Infinity" is not valid

Could you please share more details about the Filter you used within your Gallery control?

Based on the issue that you mentioned, I have made a test on my side, and don't have the issue that you mentioned. Have you taken a try to save your SP List records into a Collection, and use the Collection as data source within your app?

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 theOnStartproperty of theAppcontrol to following:

ClearCollect(RecordsCollection, 'YourSPList')

then set theItemsproperty of the Gallery to following:

RecordsCollection

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.

Please also consider submit an assisted support ticket for further help through the following link:

Re: Request Operation is Invalid. The $top expression "Infinity" is not valid

I get the error. It is random, but does not seem to cause any issue. I get it on a large data source of 40,000 plus where I do the collection but sort Decending because of Delgation issues. I also increase the delegations in the settings to 2000. maybe the issue relates to Descending and Increase

Re: Request Operation is Invalid. The $top expression "Infinity" is not valid

OK, I get the error all the time now, but not when I open in Edit. I successfuly got rid the delegation issues and the sort but it still returns the error. It does seem to be related a recent update if there was one (maybe on the Server side). I am using a SharePoint List