cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Titiwai
Helper II
Helper II

The requested operation is invalid

I am trying to use checkbox control topatch data to sharepoint list and received following error:

The requested operation is invalid. Server Response: Save Conflict Your changes conflict with those made concurrently by another user. If you want your changes to be applied, click Back in your Web browser, refresh the page, and resubmit your changes. clientRequestId: 8cec5d9c-6973-45d6-9373-5f1b10c1dfb9 serviceRequestId: 8cec5d9c-6973-45d6-9373-5f1b10c1dfb9

OnCheck property for CheckBox is:

Patch('List Main',First(Filter('List Main', Display=ThisItem.Display)),{Approver: "Approved by "&User().FullName});
Refresh('List Main')

1 ACCEPTED SOLUTION

Accepted Solutions
v-xida-msft
Community Support
Community Support

Hi @Titiwai ,

Based on the error message that you mentioned, I think you have faced a Conflict issue with your Patch formula.

 

The Conflict issue would occur when you and another user are edit same record in your data source at the same time. More details about the Conflict issue when patching data to data source, please check the following article:

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-errors#description

 

As an alternative solution, you should add a Refresh(...) formula before your Patch function to make sure the changes are done within your data source completely. I have made a test on my side, please take a try with the following workaround:

Set the OnCheck property of the Checkbox control to following:

Refresh('List Main');     /* <- Add formula here to your refresh your data source */
Patch(
'List Main',
LookUp('List Main', Display = ThisItem.Display),
{
Approver: "Approved by " & User().FullName
}
);

Please take a try with above solution, then check if the issue is solved.

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-xida-msft
Community Support
Community Support

Hi @Titiwai ,

Based on the error message that you mentioned, I think you have faced a Conflict issue with your Patch formula.

 

The Conflict issue would occur when you and another user are edit same record in your data source at the same time. More details about the Conflict issue when patching data to data source, please check the following article:

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-errors#description

 

As an alternative solution, you should add a Refresh(...) formula before your Patch function to make sure the changes are done within your data source completely. I have made a test on my side, please take a try with the following workaround:

Set the OnCheck property of the Checkbox control to following:

Refresh('List Main');     /* <- Add formula here to your refresh your data source */
Patch(
'List Main',
LookUp('List Main', Display = ThisItem.Display),
{
Approver: "Approved by " & User().FullName
}
);

Please take a try with above solution, then check if the issue is solved.

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Top Solution Authors
Top Kudoed Authors
Users online (67,597)