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?
@acmartini2022 - glad to hear it is sorted
Yes it turns out there was a custom key on the table that was causing this. Thank you!
@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.
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?
@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?
WarrenBelz
791
Most Valuable Professional
MS.Ragavendar
410
Super User 2025 Season 2
mmbr1606
275
Super User 2025 Season 2