In this tutorial, I will explain how to fix the error, the resource has changed since the caller last read it usually an etag mismatch that comes in Power Automate. The exact error message comes as “The ETag of this item does not match the one used for setting content approval status. The contents of the item may have changed before the action was completed.”
the resource has changed since the caller last read it; usually an etag mismatch
Recently, I was working on flow in Power Automate. As per my requirement, When a new file/document is uploaded to SharePoint Online Document Library, then the file will go for approval by an approver. Once the document is approved/rejected by the approver, the user will get an email notification that his/her document has been approved/rejected.
Since I am uploading the file to SharePoint Online Document Library, It is going for approval from the approver. Here, in my case, Approval works if the file is not open by the approver before it is approved. Once the file is opened by the approver, then the file will not be approved by the approver.
Below is the error screenshot once the file is open before it is approved.
“{“Etag”:”\”{0261844A-9530-4840-9A79-1AF2A7946910},6\””,”Message”:”The ETag of this item does not match the one used for setting content approval status. The contents of the item may have changed before the action was completed.”
The ETag of this item does not match the one used for setting content approval status – Power Automate
To solve this error, You have to add a “Set content approval status” action before using the “Condition” action. In this “Set content approval status” action, you need to set the field values as below:
- Site Address: Provide your Site Address URL.
- Library Name: Specify the name of your Document Library.
- Id: Enter the document Id (metadata ID) from the Dynamic content.
- Action: Select the action as “Submit” from the drop-down.
- Comments: Enter comments from the approval action using Dynamic content.
- ETag: Enter the ETag of the file/folder from the Get file metadata action.
You can follow the below screenshot.
While the condition is approved, Take another “Set content approval status” action. In this action, all field values are the same as like previous one content approval status.
Here, you just need to select “Approve” in the “Action” field and enter the “ETag” value from the previous “Set content approval status” in which the action value is “Submit“.
This is how to fix the error as: ” {“Etag”:”\”{0261844A-9530-4840-9A79-1AF2A7946910},6\””,”Message”:”The ETag of this item does not match the one used for setting content approval status. The contents of the item may have changed before the action was completed.” I hope you got to know now, how to fix the error, “the resource has changed since the caller last read it usually an etag mismatch”.
You may also like:
- Microsoft Flow: The execution of template action ‘Switch’ failed: The result of the evaluation of ‘scope’ action expression ‘@triggerBody()?[‘ApprovalStatus’] is not valid.
- An entry without a type name was found, but no expected type was specified. to allow entries without type information, the expected type must also be specified when the model is specified
Hello Everyone!! I am Bhawana a SharePoint MVP and having about 10+ years of SharePoint experience as well as in .Net technologies. I have worked in all the versions of SharePoint from wss to Office 365. I have good exposure in Customization and Migration using Nintex, Metalogix tools. Now exploring more in SharePoint 2016 🙂 Hope here I can contribute and share my knowledge to the fullest. As I believe “There is no wealth like knowledge and no poverty like ignorance”
Thank you, Bhawana! I’ve been trying to resolve this for days and no other solutions helped.
dunno if “get file metadata” wasn’t available back then, but by using it you avoid generating extra overhead and get the current ETag
Perfect:)
it does not work for me, anyone say diffrrent bullshit and diffrent method