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 failing from col...
Power Apps
Answered

Patch failing from collection?

(0) ShareShare
ReportReport
Posted on by

Hi all,

 

I have an app that acts as a "registration" tool for users to scroll through various training events and sign up for. 

 

I am collection all the data from the gallery (connected to SP List2) and writing it to a new list (SP List3) along with user details.

 

All data is being converted to text and should write back to text columns in SP List 3. 

 

This is the current formula, but I am getting "Network error when using patch function: The requested operation is invalid" error message. 

 

I went back line by line and the patch fails from "Commences from" label.

 

Any insight into what I am doing wrong?

 

ClearCollect(
 ColRegister,
 {
 collocation: lbLoc1.Text,
 coldesc: lbdesc.Text,
 colrequire: lbrequire.Text,
 colcommencefrom: lbcommencefrom.Text,
 colavail: lbavail1,
 coldate: ThisItem.'Date',
 coltime: lbtime1,
 colWL: lbWL1.Text,
 colID: ThisItem.ID,
 colRegistrant: TextInputName_1.Text,
 colEmail: TextInputEmail_1.Text
 }
);
ForAll(
 ColRegister,
 Patch(
 'SP List3',
 Defaults('SP List3'),
 {
 Location: collocation,
 'description': coldesc,
 'requirements': colrequire,
 'Walk commences from': colcommencefrom,
 'Total Availability': colavail,
 'Date': coldate,
 'Time': coltime,
 'Contact': colWL,
 'ID': colID,
 'Registrant (Name)': colRegistrant,
 'Registrant (Email)': colEmail
 }
 )
);
Clear(ColRegister);

 

Thanks 

 

DW 

Categories:
  • Verified answer
    SpongYe Profile Picture
    5,909 Super User 2026 Season 2 on at

    Hello @DGWolfe 

     

    Make sure the data you are passing is the correct type for the field (Commences from" label). If you have number fields and the SPList3 is expecting text you'll need to wrap the number value in a Text() statement, like wise if you're passing text when it is expecting numbers you'll need to wrap the numbers in a Value() statement.

     


    ------------------------------------------------------------------------------------------------------------------------------
    If I have answered your question, please mark your post as Solved. Remember, you can accept more than one post as a solution.

    If you like my response, please give it a Thumbs Up.

  • Verified answer
    DGWolfe Profile Picture
    on at

    @SpongYe thanks, I was missing the Text() in one. How would I resolve a Person column to Text?

  • Nomishahzad Profile Picture
    26 on at

    @DGWolfe  you want to store Person table to text or text to person column in SP?

  • sr17-2011 Profile Picture
    10 on at

    @DGWolfe - Storing data in person or group column is not straightforward as it has schema
    which required more than email ID.  Either get user's profile using Office365Users.UserProfileV2(<emaild>) and bind return to SharePoint column or create new single text column instead of people or group column.

     

    If response helpful, please give it a thumbs up!

  • Nomishahzad Profile Picture
    26 on at

     

     

    'Registrant (Name)':{
     '@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",
     Department: "",
     Claims: "i:0#.f|membership|" & colEmail,
     DisplayName: Office365Users.UserProfileV2(colEmail).displayName,
     Email: colEmail,
     JobTitle: "",
     Picture: ""
     }

     

     

  • DGWolfe Profile Picture
    on at

    @Nomishahzad Thank you!

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

#2
WarrenBelz Profile Picture

WarrenBelz 190 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 135

Last 30 days Overall leaderboard