cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
asdeev
Level: Powered On

500 record limitations

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.

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: 500 record limitations

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...

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,

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.

View solution in original post

5 REPLIES 5
Super User
Super User

Re: 500 record limitations

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
Level: Powered On

Re: 500 record limitations

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? 

Super User
Super User

Re: 500 record limitations

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)

Community Support Team
Community Support Team

Re: 500 record limitations

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...

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,

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.

View solution in original post

asdeev
Level: Powered On

Re: 500 record limitations

Thanks!! that worked!

Helpful resources

Announcements
Better Together’ Contest Finalists Announced!

'Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Join THE global Microsoft Power Platform event series

Attend for two days of expert-led learning and innovation on topics like AI and Analytics, powered by Dynamic Communities

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

thirdimage

Microsoft Business Applications Virtual Launch

Join us for the Microsoft Business Applications Virtual Launch Event on Thursday, April 2, 2020, at 8:00 AM PST.

thirdimage

Community Summit North America

Innovate, Collaborate, Grow - The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (9,728)