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 / Network Error when usi...
Power Apps
Answered

Network Error when using Patch function: The requested operation is invalid

(1) ShareShare
ReportReport
Posted on by 142

Hi there,

 

I'm trying to patch some data into a sharepoint list, however I get "Network Error when using Patch function: The requested operation is invalid" when trying to patch the People column called Requestee. The other two columns work fine.

 

otherUsers is a variable declared from a button which collects ThisItem in a peoplepicker. I've tried using Office365Users.MyProfileV2() instead and it still happens. No idea why this is happening and the syntax seems correct to me. All help is appreciated thanks.

 

Patch(
 'Access Level Requests',
 Defaults('Access Level Requests'),
 {
 Requestee: {
 '@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",
 Claims: "i:0#.f|membership|" & otherUsers.mail,
 Department: "",
 DisplayName: otherUsers.displayName,
 Email: otherUsers.mail,
 JobTitle: "",
 Picture: ""
 },
 'Requested Access Level': {
 '@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
 Id: 1,
 Value: roleList.Selected.Value
 },
 'Reason for Request': otherUsersReason.Text
 }
)

 

 

Categories:
I have the same question (0)
  • ANB Profile Picture
    7,252 Super User 2026 Season 1 on at

    Hi @aantoniou Can you share the screenshot of Requestee column from your SP list. I wanted to see the setting of the column.

     

    Thanks,

    ANB

  • Akshansh-Sharma Profile Picture
    298 Moderator on at

    Hi @aantoniou ,

     

    can you please give this code a try 

     requestee: {
     Claims: "i:0#.f|membership|" & Lower(UserEmail),
     Department: "",
     DisplayName: User().FullName,
     Email: UserEmail,
     JobTitle: "",
     Picture: User().Image
     }

     

    --------------------------------------------------------------------------------------------------------------------

    Please click Accept as solution if my post helped you solve your issue. If the content was useful in other ways, please consider giving it Thumbs Up 😉

     

    LinkedIn- https://www.linkedin.com/in/akshansharma/

     

  • aantoniou Profile Picture
    142 on at

    Hi ANB,

     

    Thanks for your response.

    Here's the screenshot. 

    aantoniou_0-1720704177522.png

     

  • aantoniou Profile Picture
    142 on at

    Hi Akshansh-Sharma,

     

    This works if I use a string with an email in replacement of UserEmail, however it still doesn't if I use otherUser.Mail or Office365Users.MyProfileV2().mail.

     

    I basically want the Requestee column to be populated with the details of the person selected in my people picker gallery. The button just has Set(otherUser, ThisItem) and it seems to work in other places in the app.

  • Verified answer
    aantoniou Profile Picture
    142 on at

    I found the solution! Turns out I had to use otherUser.UserPrincipleName instead of .Mail as our organisation uses a separate front-facing email address which is what the .Mail option returns.

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 June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 335 Most Valuable Professional

#2
11manish Profile Picture

11manish 166

#3
sannavajjala87 Profile Picture

sannavajjala87 71 Super User 2026 Season 1

Last 30 days Overall leaderboard