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

Network Error when using the patch function. The requested operation is invalid

(0) ShareShare
ReportReport
Posted on by 61

Dear All,

 

I am having error described in title. It worked fine when i started to build the app. After I have released for users, user cannot patch the record and I (as developer) cannot also patch the record for Person column only. Other column types worked fine. Required permission to perform the operation like Read/Write access to SP list is in placed. Here is my patch function in the app.

 

Patch('SharePointList', LookUp('SharePointList', ID = varSelectedItem), {Title:txtAccountName.Text, TYPE: {Value: txtAccountType.Text}, Owner:{Claims: "i:0#.f|membership|" & If(IsBlank(cbOwnerName.Selected.Mail), LookUp('SharePointList', ID = varSelectedItem).Owner.Email),
Department: cbOwnerName.Selected.Department,
DisplayName: cbOwnerName.Selected.DisplayName,
Email: cbOwnerName.Selected.Mail,
JobTitle: cbOwnerName.Selected.JobTitle,
Picture: ""}, Team: {Value: ddTeam.Selected.Value}, Description: txtDescription.Text, 'Interactive Logon?': Radio1.Selected, StillUseOrNot: Radio1_1.Selected});

 

I have no idea how to fix the issue. Any idea what went wrong ?

 

Any support is highly appreciated.

 

Best Regards,

Zayar

Categories:
I have the same question (0)
  • Verified answer
    WarrenBelz Profile Picture
    153,117 Most Valuable Professional on at

    Hi @zayarminaye ,

    The first thing to try is getting the calculation out of the patch as below

    With(
     {
     _Mail:
     Coalesce(
     cbOwnerName.Selected.Mail, 
     LookUp(
     'SharePointList', 
     ID = varSelectedItem
     ).Owner.Email
     )
     }, 
     Patch(
     'SharePointList', 
     {
     ID: varSelectedItem,
     Title: txtAccountName.Text, 
     TYPE: {Value: txtAccountType.Text}, 
     Owner:
     {
     Claims: "i:0#.f|membership|" & Lower(_Mail),
     Department: cbOwnerName.Selected.Department,
     DisplayName: cbOwnerName.Selected.DisplayName,
     Email: cbOwnerName.Selected.Mail,
     JobTitle: cbOwnerName.Selected.JobTitle,
     Picture: ""
     }, 
     Team: {Value: ddTeam.Selected.Value}, 
     Description: txtDescription.Text, 
     'Interactive Logon?': Radio1.Selected, 
     StillUseOrNot: Radio1_1.Selected
     }
     )
    );

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    MVP (Business Applications)   Visit my blog Practical Power Apps

  • zayarminaye Profile Picture
    61 on at

    Hi @WarrenBelz , Sir, It worked like a charm. Thank you so much for your solution. Appreciate it.

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 765 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 272

Last 30 days Overall leaderboard