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 / The data source suppli...
Power Apps
Unanswered

The data source supplied to the function is invalid. Bulk Patch update collection

(0) ShareShare
ReportReport
Posted on by 831

I am trying patch a collection with another collection but I am getting the error, "The data source supplied to the function is invalid"

 

 

//Created a duplication of data source with old codes
ClearCollect(colColourCodes,ColourCodes);

//Created an duplication of data source that is empty
ClearCollect(colCodeNo, Defaults(ColourCodes));
Clear(colCodeNo); 


//Gets all the codes that are stored in a string and creates a list
ClearCollect(
 colCodeNo,
 ForAll(
 ForAll(
 Split(lblCodes.Text, ","), {Result: ThisRecord.Value}) As row,
 With({
 recAC: Find("'", row.Result)
 },
 {
 Approval_Code: Mid(row.Result, recAC+1, 8),
 Available: "y",
 RequestID: Blank()
 }
 )
 )
);

//Error occurs when bulk patching
Patch(colColourCodes, colCodeNo);

 

Not sure why the error is occurring given I created both collections with the same data source.

Categories:
I have the same question (0)
  • rpersad Profile Picture
    831 on at

    Any feedback is appreciated.

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 893

#2
Valantis Profile Picture

Valantis 571

#3
11manish Profile Picture

11manish 482

Last 30 days Overall leaderboard