Skip to main content
Community site session details

Community site session details

Session Id : IDt7yCF8zNLq2gqxnUse2q
Power Apps - Building Power Apps
Answered

Network error when using Patch function: Conflicts exist with changes on the server, please reload.

Like (0) ShareShare
ReportReport
Posted on 15 Apr 2024 19:58:22 by 24

I have an app that users fill out requests on that get submitted to a dataverse table. When they click submit, this is the formula that is run:

 

 Patch(
 tbDV_ResbalRequests,
 Defaults(tbDV_ResbalRequests),
 {
 RequestType: AppRecord.RequestType,
 ProductCode: ThisRecord[@dvo_productcode],
 ProductClass: AppRecord.ProductClass,
 WarehouseCode: Left(AppRecord.Warehouse,2),
 OrderType: Coalesce(Concat(Filter(orderTypes,selected = true),Left(orderValue,2),", "),Blank()),
 SubmissionStatus: If(varCustServ,
 "Submitted to CSR Manager",
 If(AppRecord.ProductClass in ["RM","FG"],
 "Submitted to Resbal Approver",
 "Resource Master"
 )
 ),
 RequestNote: AppRecord.Notes,
 RequestDate: Text(Today(),"mm/dd/yyyy"),
 RunFlow: "Run",
 RequestorMail: Lower(User().Email),
 RequestorName: User().FullName
 }
 )
);

 

The issue comes when there is already a row on the dataverse table that has the same product code, request type, product class, warehouse code, and order types. That is when I get the error:

 

Network error when using Patch function: Conflicts exist with changes on the server, please reload.

 

 

I don't understand how this can be since I am patching as a new record, using 'Defaults()'. Is there something that I am missing?

 

Categories:
  • Ami K Profile Picture
    15,665 Super User 2024 Season 1 on 16 Apr 2024 at 00:10:09
    Re: Network error when using Patch function: Conflicts exist with changes on the server, please reload.

    @acmartini2022 - glad to hear it is sorted

  • acmartini2022 Profile Picture
    24 on 15 Apr 2024 at 23:53:03
    Re: Network error when using Patch function: Conflicts exist with changes on the server, please reload.

    Yes it turns out there was a custom key on the table that was causing this. Thank you!

  • Verified answer
    Ami K Profile Picture
    15,665 Super User 2024 Season 1 on 15 Apr 2024 at 22:04:56
    Re: Network error when using Patch function: Conflicts exist with changes on the server, please reload.

    @acmartini2022 - I would not expect the error to occur if the Flow is being run after the record has been created.

     

    As mentioned in my first response, I would still identify if there is a specific field which is causing the error first. You can then pinpoint which field is causing the problem and then investigate further.

     

    Another thought - I would also check if you have any unique column value constraint on any of those fields.

  • acmartini2022 Profile Picture
    24 on 15 Apr 2024 at 21:31:43
    Re: Network error when using Patch function: Conflicts exist with changes on the server, please reload.

    There does exist a flow that runs when a row is added in the table, but the app is not explicitly calling the flow so the error should show up in the flow, not the app, right?

  • Ami K Profile Picture
    15,665 Super User 2024 Season 1 on 15 Apr 2024 at 20:44:23
    Re: Network error when using Patch function: Conflicts exist with changes on the server, please reload.

    @acmartini2022 - I do not think the problem has anything to do with a record having the same product code, request type etc.

     

    Could you remove one line from your code, and then run the Patch function, and then keep repeating that until the error disappears. This will help identify which field or fields are causing the problem.

     

    I note your Patch is creating new records, and typically, this error message occurs when you have to separate operations writing to the same record. Do you have a Flow also running?

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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 791 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 410 Super User 2025 Season 2

#3
mmbr1606 Profile Picture

mmbr1606 275 Super User 2025 Season 2

Loading complete