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 Patch function: Conflicts exist with changes on the server, please reload.

(0) ShareShare
ReportReport
Posted on 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:
I have the same question (0)
  • Ami K Profile Picture
    15,679 Super User 2024 Season 1 on at

    @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?

  • acmartini2022 Profile Picture
    24 on at

    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?

  • Verified answer
    Ami K Profile Picture
    15,679 Super User 2024 Season 1 on at

    @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 at

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

  • Ami K Profile Picture
    15,679 Super User 2024 Season 1 on at

    @acmartini2022 - glad to hear it is sorted

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 319 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard