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. Conflicts with existing changes on the server.

(0) ShareShare
ReportReport
Posted on by 920 Super User 2024 Season 1

Hi,

 

Do you know why I am getting error "Network error when using Patch Function. Conflicts with existing changes on the server." 

 

On the OnSucesss Property of my form I have this -Would this be causing it as I am using the Status field multiple times?

 

If(DataCardValue1.Selected.Value="Closed" And DataCardValue40_1.Selected.Value<>"To Be Determined",Patch('test',Self.LastSubmit,{'Status':{Value:"With SM"}}));

If(DataCardValue40_1.Selected.Value="No impact" Or DataCardValue40_1.Selected.Value="Minor Update",Patch('test',Self.LastSubmit,{'Status':{Value:"Closed"}}));

If(DataCardValue1.Selected.Value="Closed" And DataCardValue48.Text = "Approve" ,Patch('test',Self.LastSubmit,{'Status':{Value:"Closed"}}));

 

 

Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    154,534 Most Valuable Professional on at

    HI @wonka1234 ,

    Firstly try this

    If(
     (
     DataCardValue1.Selected.Value = "Closed" And
     (
     DataCardValue40_1.Selected.Value <> "To Be Determined" Or
     DataCardValue48.Text = "Approve" 
     )
     ) Or
     DataCardValue40_1.Selected.Value= "No impact" Or 
     DataCardValue40_1.Selected.Value= "Minor Update",
     Patch(
     'test',
     Self.LastSubmit,
     {'Status': {Value:"Closed"}}
     )
    )

    but are you sure the error is on the OnSuccess as normally SubmitForm would produce this error type.

     

    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

  • wonka1234 Profile Picture
    920 Super User 2024 Season 1 on at

    @WarrenBelz  Im actually not %100 sure. After running it with the open monitor I am seeing the below:

     

    wonka1234_0-1712106578384.png

     

    I assume this is happening from clicking a button with an onselect property of Submit(Form) and the onsuccess of that form is triggered.

     

    How can I verify?

     

    Also I noticed your code didnt include the With SM part of the code.

     

  • Verified answer
    WarrenBelz Profile Picture
    154,534 Most Valuable Professional on at

    @wonka1234 ,

    Missed that bit - see below

    With(
     {
     _Data:
     If(
     DataCardValue40_1.Selected.Value <> "To Be Determined" Or
     DataCardValue48.Text = "Approve",
     "With SM",
     DataCardValue40_1.Selected.Value= "No impact" Or 
     DataCardValue40_1.Selected.Value= "Minor Update" Or
     (
     DataCardValue1.Selected.Value = "Closed" And 
     DataCardValue48.Text = "Approve"
     ),
     "Closed"
     )
     },
     If(
     !IsBlank(_Data),
     Patch(
     'test',
     Self.LastSubmit,
     {'Status': {Value: _Data}}
     )
     )
    )

    however the easy way is to delete the OnSuccess and just submit the form and see if you get the error. Does the form submission write to the Status field ?

     

    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

  • wonka1234 Profile Picture
    920 Super User 2024 Season 1 on at

    @WarrenBelz  Okay so 

    1) I removed all onsuccess when submitting the form, No error!

    2) Putting your code into the onsuccess and then submitting works without error! How is this happening?

     

    I need to make sure your code functions as my code but i dont understand it

  • WarrenBelz Profile Picture
    154,534 Most Valuable Professional on at

    @wonka1234 ,

    Based on what you posted, the logic is the same. I simplified it as far as the Patch goes by pre-calculating the value to be patched.

     

    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

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 545 Most Valuable Professional

#2
Haque Profile Picture

Haque 314

#3
Kalathiya Profile Picture

Kalathiya 234 Super User 2026 Season 1

Last 30 days Overall leaderboard