web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

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 776

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
    776 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard