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 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
    155,752 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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 483

#2
WarrenBelz Profile Picture

WarrenBelz 399 Most Valuable Professional

#3
11manish Profile Picture

11manish 327

Last 30 days Overall leaderboard