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
Unanswered

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

(0) ShareShare
ReportReport
Posted on by 2

Hi,

I am struggling with this error “Network Error when using Patch function: The requested operation is invalid”. It occurs when I am clicking the button in powerapps component on sharepoint page. The button calls a few patch functions. I’ve noticed that this one causes the problem:

 

Patch(List1,LookUp(List1,Title="Current"),{Lecture:

{Claims: "i:0#.f|membership|" & Lower(lecture_choice.Selected.Mail),

DisplayName: lecture_choice.Selected.DisplayName,

Email: lecture_choice.Selected.Mail,

Department: lecture_choice.Selected.Department,

JobTitle: lecture_choice.Selected.JobTitle,

Picture: ""}});

UpdateIf('List2', true, {lecturer:

{Claims: "i:0#.f|membership|" & Lower(lecture_choice.Selected.Mail),

DisplayName: lecture_choice.Selected.DisplayName,

Email: lecture_choice.Selected.Mail,

Department: lecture_choice.Selected.Department,

JobTitle: lecture_choice.Selected.JobTitle,

Picture: ""}});

 

What can I do to fix that problem?

Categories:
  • WarrenBelz Profile Picture
    156,921 Most Valuable Professional on at

    Hi @MaksymalnyMaks ,

    What exactly are you trying to do with the UpdateIf function as you have not specified a criteria to update. If you just want a new record, I suggest you use Patch.

     

    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

  • MaksymalnyMaks Profile Picture
    2 on at

    In my powerapp I created a listbox allowing admin to choose person who will be a lecturer. I have a sharepointlist with all participants. When the Admin changes a lecturer, I need to update lecturer value for every participant who has already been assigned to the session (is in the list). This is the functionality of the update in my code.

  • WarrenBelz Profile Picture
    156,921 Most Valuable Professional on at

    @MaksymalnyMaks ,

    That was what I was asking - what records do you want to update - you currently have true - you need to specify the relationship between the list box selected items and the relevant field in Lecturer. Something like (this is only an example)

    UpdateIf(
     'List2', 
     Name in ListBox.SelectedItems,
     {
     lecturer:
     {
     Claims: . . . . .
     }
     }
    )

     

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

#2
WarrenBelz Profile Picture

WarrenBelz 207 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 169

Last 30 days Overall leaderboard