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 / Can the clearcollect f...
Power Apps
Answered

Can the clearcollect function read a table with with 10000 lines and more?

(0) ShareShare
ReportReport
Posted on by

Dear Experts, 

 

I have created a collection to get following details from a SharePoint List, 

 

  • Item name
  • Item type
  • Received Qty

Can the Collection function read all my list data where it has more than 10000?

 

I do not want to show all of them in my app, but I have some sum operations using the collection, so it is very important to read all data while creating the collection. 

 

Thank you, 

Osmand

Categories:
  • eka24 Profile Picture
    20,925 on at

    Take a close look on this Post that addresses that:
    https://powerusers.microsoft.com/t5/Building-Power-Apps/ClearCollect-for-more-than-2000-records/m-p/145718

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    Hi @OsmandFernando 

    Can you filter down from your 10000 items list to see only the items you want without using a collection, For example by using a combobox or dropdown for the item names or item types.  To test this,   Put two labels on the screen CountRows(Distinct(Yourlist,Itemname))  and CountRows(Distinct(Yourlist,Itemtype))  if neither of them are > 2000 you don't need a collection, and you can sum Received Qty of  filtered list for itemname and itemtype from the list itself without a collection.  If the number is > 2000 you will need to follow @eka24 's suggestion.  If you get a number of 500 in your CountRows, you will need to increase the data row limit to 2000 in File>Settings>Advanced Settings>Data row limit from 500 to 2000.

    FYI, if your lists are > 5000 items, you should consider using Sql or Common Data Service instead of SharePoint.  There are many more delegatable functions in Sql including aggregate functions like Sum() and Avg(). 

  • OsmandFernando Profile Picture
    on at

    Thank you @Drrickryp for our reply, What are the cons if I use SharePoint with more than 5k items?

  • Verified answer
    Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    Hi @OsmandFernando 

    There are some service limitations on large lists in SharePoint itself. https://docs.microsoft.com/en-us/office365/servicedescriptions/sharepoint-online-service-description/sharepoint-online-limits 

    From within PowerApps, the problems mostly relate to delegation limits on certain formulas that can be used in CDS and SQL but not SharePoint.  I discussed it here with @wyotim  in this thread. https://powerusers.microsoft.com/t5/Building-Power-Apps/limitations-powerApps/td-p/161732 

    Please note that you are asking for my opinion and others might disagree but my opinion is based on my personal experience with databases. My initial experience was in MS Access where I started with desktop in 2003, I moved to server, then to the cloud with WebApps and when this was deprecated, I moved my data to SharePoint and then started using PowerApps 3 years ago.  Some of my tables are 40K +.  I found the delegation limits of SharePoint restrictive and ultimately settled on CDS.  I have been very happy with that decision and found it was well worth the aggravation of moving my tables and relationships from SharePoint.  Others have found SQL to be equally practical.  SharePoint is free but both CDS and SQL as associated with increased costs so that has to be considered.   If I was starting with a new app and knew that the volume of data would ramp up over time, I would definitely start with CDS or SQL as the backend data source, knowing that the app could be extended to handle millions of records if necessary.  

    I would use Excel On line solely to learn the ropes and not for a serious app requiring multiple tables with relationships.  A decent app can be developed with SharePoint but I suspect that as you explore using it, you will find that the restrictions on delegatable formulas to become irritating to work around.

  • OsmandFernando Profile Picture
    on at

    Dear @Drrickryp Thank you very much for taking time for me an provided valuable details, that helped a lot. 

     

    One last question, is there a limitation with CDS as well to pull data? (like we have with SP List as 2000) 

     

    Osmand

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @OsmandFernando 

    To really understand how PowerApps works, you must understand the concept of delegation. The more functions that you can delegate to the server, the better and faster your apps will run. Please see https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/delegation-overview This may not sound like the answer to your question but it really is.

  • OsmandFernando Profile Picture
    on at

    Thank you all for your answers. I have been asking this because of the following requirement I have, 

     

    I have a list of Inventory Issued and Inventory receipts. I want get the sum of Inventory receipt and issued based on the Item name field. When I try the Sum with the table we have the deligation warning, it is understandable. 

     

    What I have done was created two collections for receipt and issued and do the sum for it. Now I understand even with that I will not get the correct Sum , please correct me if I am wrong. 

     

    The option I can use here as suggested by @Drrickryp  create the collection by adding sets, 2000 then next 2000 then next 2000 etc etc. 

     

    Is there any other way that I can get this without doing the collection as above?

     

    The bottom line is, 

    I want to know

    - total receipt did so far based on the Item name

    - total issued so far based on the item name

    - Total receipt - Total issued = Balance inventory based on the item name (I have done this as I mentioned above but the concern data limitation)

     

    Hope dear experts understand my concern. 

     

    powerapps lover, 

    Osmand

     

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 248 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 192 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 135

Last 30 days Overall leaderboard