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 / Patch updates collecti...
Power Apps
Answered

Patch updates collection but not sharepoint list with more than 2000 records

(1) ShareShare
ReportReport
Posted on by 13
I have a sharepoint list (ASPRO Calendar - Stephen) that now has more than 2000 records so I have created a collection (Stephen_col) from two separate filtered collections (Stephen_col_1 and Stephen_col_2) based on an ID column that is present in the sharepoint list. This all works fine.
 
The sharepoint list/collection populates a power app page that is built to resemble a table with names down the left side and dates up the top but each cell of the table is built up of individual buttons which show some data related to that date and person
 
The issue I have is these buttons are supposed to change a Choice column in the Sharepoint List (column name = Completed) from either blank or No to Yes and back to No if it is clicked again on an existing record. This Patch formula works fine when I referenced the sharepoint list directly when it had less than 2000 records but once I introduced the collection element it is now not working.
 
I have created a text label to show the value of the Completed column once the button has been pressed and this does change to Yes or back to No when the button is pressed but the sharepoint list does not get updated
 
The OnSelect formula for the button is this:
If(LookUp(Stephen_col,Name.DisplayName=HOAP_LM_1.Text && Text(StartTime,"dd/mm/yyyy")=HOAP_Lbl_SundayDate.Text,Completed.Value)="No"||"",
Patch(Stephen_col, LookUp(Stephen_col,ID = LookUp(Stephen_col,Name.DisplayName=HOAP_LM_1.Text && Text(StartTime,"dd/mm/yyyy")=HOAP_Lbl_SundayDate.Text,ID)),{Completed: {Value: "Yes"}}),
Patch(Stephen_col, LookUp(Stephen_col,ID = LookUp(Stephen_col,Name.DisplayName=HOAP_LM_1.Text && Text(StartTime,"dd/mm/yyyy")=HOAP_Lbl_SundayDate.Text,ID)),{Completed: {Value: "No"}}))
 
 
HOAP_LM_1 is a Label with a name in it
HOAP_Lbl_SundayDate is a label with a date in it
 
Any help would be appreciated as I have been searching for an answer for a while for this
 
Categories:
I have the same question (0)
  • Suggested answer
    Michael E. Gernaey Profile Picture
    53,963 Moderator on at
    Hi,
     
    You are probably having an issue due to Delegation. Possibly in your LookUp due to you using Text conversions.
     
    Can you please show us a screenshot of the Code Window and the Delegation issues you are receiving.
     
    Here is my Guess at your problem without you sharing more.
     
    You are converting a DateTime, to Text so that you can compare that to the Text Value of the SundayDate, but that is not going to be delegatable.
     
    So you need to pre-create that value like this
     
    With(
        {SundayDateValue: DateTimeValue(InsertedYourTextInputTextHere) },
    
        Now in your Queries, do not use Text to convert StartTime, do
    
        StartTime = SundayDateValue
        // Also note I used DateTimeValue, but you can just do DateValue if you just 
        // want the Date without time.
    );
     
  • RP-05081034-0 Profile Picture
    13 on at
    Thanks for your response FLMike
     
    I am not getting any delegation warnings on any of the formulas in this box which is the Sunday box (see screenshot below). In the other boxes that don't use the collection reference (Monday to Saturday) I get the following delegation warning for the date text formulas:
     
     
    Screenshot of formula for Sunday using collection:
     
    Screenshot of formula for Monday using Sharepoint list reference:
     
     
     
  • Verified answer
    RP-05081034-0 Profile Picture
    13 on at
    I have been shown a simpler method by colleague to achieve the same result which doesn't result in any errors so there is no need to try and solve this one
     
    Thank you for your help

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 842

#2
Valantis Profile Picture

Valantis 563

#3
Haque Profile Picture

Haque 402

Last 30 days Overall leaderboard