The resource has changed since the caller last read it usually an etag mismatch in Power Automate

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.

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.
See also  Power Automate Desktop Mathematical Operations

You can follow the below screenshot.

The ETag of this item does not match one used for setting content approval status

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“.

the resource has changed since the caller last read it usually an etag mismatch

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:

  • dunno if “get file metadata” wasn’t available back then, but by using it you avoid generating extra overhead and get the current ETag

  • >