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 / Hello , Need help on 5...
Power Apps
Answered

Hello , Need help on 500k row limit in Power Apps

(0) ShareShare
ReportReport
Posted on by 70

Hello,

 

I have a powerapp , using a Collection at AppStart to collect records from my Sharepoint library.

 

The Sharepoint library currently has 560 rows.

 

Then i have a text field to input which is a Application ID , I key in the Application ID and hit a search button , which will retreive rest of the columns from sharepoint lib - (Customer (choice field) , name (text) , place Itext), source (choice))

 

Also i added a column ID from sharepoint View , when i search for Application ID which has assigned ID in sharepoint over 500 (520) and hit search button i dont get any results , when i use an Application ID which has ID in sharepoint say 400 i will get the results.

 

I Know if can change the setting in powerapps to 2000 , but my data set will grow beyond 2000 in next few days .

 

Need help to solve this issue urgently.

 

On Start APP CODE IS

 

Concurrent(
ClearCollect(VarCollection1, Filter('Wheeler Docs', ID >= 1 && ID <= 500)),
ClearCollect(VarCollection2, Filter('Wheeler Docs', ID >= 501 && ID <= 600)));ClearCollect(CollectK, VarCollection1, VarCollection2)

 

Search Button Code is

 

UpdateContext({CustomerNameVar:First(Filter(CollectK,ApplicationNumber=TextInput1_AppID_2.Text)).Customer});
UpdateContext({NameVar:First(Filter(CollectK,ApplicationNumber=TextInput1_AppID_2.Text)).Name});UpdateContext({DocSourceVar1:First(Filter(CollectK,ApplicationNumber=TextInput1_AppID_2.Text)).SourceSystem});UpdateContext({PlaceVar:First(Filter(CollectK,ApplicationNumber=TextInput1_AppID_2.Text)).Place})

 

Thanks & Regards

Categories:
  • WarrenBelz Profile Picture
    156,528 Most Valuable Professional on at

    Hi @bsoleti , 

    I posted a solution to this recently.

    Happy to help further with any clarification.

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

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

    Hi @bsoleti ,

     

    SharePoint only supports the equal ('=') operation for delegation on an ID field, so your filter functions are not delegable.

    The workaround is to create a new Number column and copy the ID field via MS flow, and then Filter the sharepoint based on that delegable number column so that your scenario would work.

    1. Create a new Automated flow from blank triggered when a file is created (properties only)(since you mentioned Sharepoint library)

    2. Add a Update file properties action, set Id column and Number column to ID from the output of triggerSnipaste_2020-06-10_15-47-09.png

    This flow will automatically synchronize Id value to Number column for these new created items.

    For these existing items, you can synchronize them by PowerApps UpdateIf function.

    UpdateIf('SP Library', true, {NumberColumn: ID})

    Note: the UpdateIf function is not delegable, you need to increase the threshold to 2000, since you said that 'The Sharepoint library currently has 560 rows.' 

    When all items ID values have been synchronized the NumberColumn, modify the App.OnStart property as follows:

    Concurrent(
    ClearCollect(VarCollection1, Filter('Wheeler Docs', NumberColumn >= 1 && NumberColumn <= 500)),
    ClearCollect(VarCollection2, Filter('Wheeler Docs', NumberColumn >= 501 && NumberColumn <= 600)));
    ClearCollect(CollectK, VarCollection1, VarCollection2)

    Hope this helps.

    Sik

  • WarrenBelz Profile Picture
    156,528 Most Valuable Professional on at

    @v-siky-msft ,

    Not sure why you repeated the solution link I posted by another method, but you are correct, that is the process. It can also be done very simply buy a SharePoint Designer workflow (yes, we still use those).

    @bsoleti , happy to elaborate further if required.

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

  • Verified answer
    bsoleti Profile Picture
    70 on at

    Hello Sik,

     

    Thanks for your feedback . As i am new to Power Apps i have some questions if you don't mind.

     

    1) Should i create a new column in my existing sharepoint Library as below ?

     

     

    2) i started creating a new flow as below , but how do i an item to assign the ID to the NumColumn like you have shown

     

     

    3) After the flow is created and saved , how is it triggered ? as its automatic meaning i wont be calling from my app correct ?

     

    4) Where do i call this Update function from ?

     

    For these existing items, you can synchronize them by PowerApps UpdateIf function.

    UpdateIf('SP Library', true, {NumberColumn: ID})

    Note: the UpdateIf function is not delegable, you need to increase the threshold to 2000, since you said that 'The Sharepoint library currently has 560 rows.' 

     

    When all items ID values have been synchronized the NumberColumn, modify the App.OnStart property as follows:

     

     

    Thanks & Regards

     

     

     

     
  • bsoleti Profile Picture
    70 on at

    Sorry with Attathment now

     

    Thanks

     

  • v-siky-msft Profile Picture
    Microsoft Employee on at

    Hi @bsoleti ,

     

    1) Should i create a new column in my existing sharepoint Library as below ?

    Yes, that's right.  you need to create a new Number type column.

     

    2) i started creating a new flow as below , but how do i an item to assign the ID to the NumColumn like you have shown

    If the NumList column has been created in Wheeler Docs library, the NumList field should should appear in the Update file properties. Then go to NumList field, select add Dynamics content, select ID from the output of  trigger 'When a file is created (properties only)'.

    Snipaste_2020-06-11_10-50-04.png

     

    3) After the flow is created and saved , how is it triggered ? as its automatic meaning i wont be calling from my app correct ?

    Yes, it is automatically triggered. When a new item or files created in library, the NumList column will be updated with the ID value.

     

    4) Where do i call this Update function from ?

    The UpdateIf formula should be called in PowerApps canvas app, its intention is to update NumList column of all existing items with its corresponding ID value.

    In canvas app, you need to add the sharepoint connection to data source, add a button, and then set the UpdateIf formulas to the OnSelect property of button. When this is all done, preview your app, click the button, and the update will start.

     

    Hope this helps.
    Sik

  • bsoleti Profile Picture
    70 on at

    Mr.Sik & Warren,

     

    Thanks very much for your help. I was able to resolve my issue with your advice and guidance.

     

    Regards

     

  • bsoleti Profile Picture
    70 on at

    Hello Sik,

     

    The solution you have provided seems to work. I am facing an issue with the Documents uploaded to the sharepoint.

     

    The issue is that in sharepoint the Modified By column is displaying always my name , instead of the user's name who actually uploaded the document. I want the correct user name in the modified by column who actually uplaoded the doc via the power apps screen and flow.

     

    The problem is the flow i created to generate the Unique Id for the document is mapped to the NumList , which is a Number column in sharepoint . The flow uploads the document with metadata into the sharepoint and the next version creates the NumList ID from file update properties on the flow and updates the Modified By column with my ID . I dont want this. How can i resolve this ?

     

    bsoleti_0-1610404294859.png

     

     

    Any advice to resolve this appreciated

     

    Thanks

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 409 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 252 Most Valuable Professional

Last 30 days Overall leaderboard