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 / 500 record limitations
Power Apps
Answered

500 record limitations

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi,

 

In my app, I have a screen which shows all the records that the current user have submitted.

 

OnVisible of the screen: Set(FilteredWorkOrders,Filter('[dbo].[Test]',SubmittedBy=UserEmail, Deleted = false));Refresh('[dbo].[Test]');

 

Items of the gallery: SortByColumns(Search(FilteredWorkOrders, TextInput6.Text, "Description"),"id",If(SortDescending1,Descending,Ascending))

 

OnSelect of Gallery: Set(CurentUser, User());ResetForm(EditForm1);Navigate(CreateScreen, ScreenTransition.Fade);Set(selected,Gallery1.Selected)

 

Users who have submitted more than 500 records are not able to see the 501th and more. I tried changing the limit to 2000 by going to file- setting- advanced settings- value=2000 but I dont see all the details of the app as expected. Its causing more issues.

 

Is there a better way for me to fix this ? Any advise is much appreciated.

Categories:
  • PowerAddict Profile Picture
    7,316 Most Valuable Professional on at

    I believe you are running into the infamous delegation issues. Are you getting a delegation warning in your Items property of the gallery? One suggestion is to collect all your data in a collection and then use the same formula that you have. 

     

    ClearCollect(FilteredWorkOrdersCollection, FilteredWorkOrders) (may be use this in the OnStart property of the app)

     

    And then use this collection as your source for the gallery. 

     

    OnVisible of the screen: Set(FilteredWorkOrdersCollection,Filter('[dbo].[Test]',SubmittedBy=UserEmail, Deleted = false));Refresh('[dbo].[Test]');

     

    Items of the gallery: SortByColumns(Search(FilteredWorkOrdersCollection, TextInput6.Text, "Description"),"id",If(SortDescending1,Descending,Ascending))

     

    ---
    If you like this reply, please give kudos. And if this solves your problem, please accept this reply as the solution. Thanks!

    Hardit(Haman)

  • asdeev Profile Picture
    Microsoft Employee on at

    Thanks for your response.

     

    However I am still getting an issue with the solution you provided. It says "The formula contains 'Ident' where 'Data' is expected. I have attached a screenshot of the error which is OnVisible property of the screen.

     

    Any help please? 

    issue.PNG
  • PowerAddict Profile Picture
    7,316 Most Valuable Professional on at

    Just try with the updated Gallery items property. What are you using the OnScreen visible expression for? The main idea is to change your datasource to the collection rather than connecting it directly to the Work Orders. 

     

    ---
    If you like this reply, please give kudos. And if this solves your problem, please accept this reply as the solution. Thanks!

    Hardit(Haman)

  • Verified answer
    v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @asdeev ,

    Have you taken a try to use a Collection to store your Filter result instead of a variable?

     

    Please consider take a try with the following workaround:

    Set the OnVisible property of the screen to following:

    ClearCollect(
     FilteredWorkOrders,
     Filter('[dbo].[Test]', SubmittedBy = UserEmail, Deleted = false)
    );
    Refresh('[dbo].[Test]')

    Then use the FilteredWorkOrders collection as data source in your Gallery.

    Note: Please make sure you have set the "Data row limit for Non-delegable queries" option to maximum value -- 2000 within Advanced settings of App setting.

     

    In addition, if the amount of your SQL Table records is more than 2000, you could consider bulk-load your SQL Table records into multiple separated collections in your app, then merge these collections into a single one collection, then use the single one collection as data source in your app.

    Please check and see if the solution mentioned in following thread would help in your scenario:

    https://powerusers.microsoft.com/t5/Building-Power-Apps-Formerly/Pulling-in-large-ish-SQL-tables/m-p/243777#M71518

    Note: If you want to use above alternative solution, you need to define a Row Index type column (e.g. 1,2,3,4,5,6, ....) in your SQL Table firstly.

     

    Best regards,

  • asdeev Profile Picture
    Microsoft Employee on at

    Thanks!! that worked!

  • TechnicalPanda Profile Picture
    41 on at

    How To Get More Than 2000 Items Sum In PowerApps Using Power Automate And SharePoint

    https://technicalpandas.blogspot.com/2023/09/how-to-get-more-than-2000-items-sum-in.html

    **************************************************************************************************

    Performing Easy CRUD Operation In PowerApps Using Modern Gallery Control On SharePoint List

    https://technicalpandas.blogspot.com/2023/09/performing-easy-crud-operation-in.html

    **************************************************************************************************

    How To Create Editable Grid Using Gallery & Modern Controls In Power Apps

    https://technicalpandas.blogspot.com/2023/09/how-to-create-editable-grid-using.html

  • takolota1 Profile Picture
    4,980 Moderator on at

    There is now an alternative method to get around SP delegation limits by delegating extra operations to Power Automate: https://powerusers.microsoft.com/t5/Community-App-Samples/Large-SP-List-Delegation-Workaround-App/m-p/2330721#M1370

  • TechnicalPanda Profile Picture
    41 on at

    100% Issue Solved

     

    How To Get More Than 2000 Record In Collection In PowerApps

     

    Refer below blog: 

     

    https://technicalpandas.blogspot.com/2023/09/how-to-get-more-than-2000-record-in.html

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 397 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 354

#3
WarrenBelz Profile Picture

WarrenBelz 232 Most Valuable Professional

Last 30 days Overall leaderboard