cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
PowerAddict
Level 10

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? 

PowerAddict
Level 10

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
thirdimage

Power Automate Community User Group Member Badge

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

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors (Last 30 Days)
Users online (4,721)