Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Answered

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

(1) ShareShare
ReportReport
Posted on by 123

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
 }
)

 

 

  • Verified answer
    aantoniou Profile Picture
    123 on at
    Re: Network Error when using Patch function: The requested operation is invalid

    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.

  • aantoniou Profile Picture
    123 on at
    Re: Network Error when using Patch function: The requested operation is invalid

    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.

  • aantoniou Profile Picture
    123 on at
    Re: Network Error when using Patch function: The requested operation is invalid

    Hi ANB,

     

    Thanks for your response.

    Here's the screenshot. 

    aantoniou_0-1720704177522.png

     

  • Akshansh-Sharma Profile Picture
    281 Super User 2025 Season 1 on at
    Re: Network Error when using Patch function: The requested operation is invalid

    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/

     

  • ANB Profile Picture
    7,075 Super User 2025 Season 1 on at
    Re: Network Error when using Patch function: The requested operation is invalid

    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

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,645 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,997 Most Valuable Professional

Leaderboard