[Solved] The ETag of this item does not match the one used for setting content approval status error in Microsoft Flow

In this Microsoft flow, we will discuss how to solve error: 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.

Recently, I was working on Microsoft Flow. As per my requirement, When a new file/document will upload to SharePoint Online Document Library, then the file will go to approve from the approver. Once the document will get approve/reject from the approver, then the user will get an email notification that his/her document has been approved/rejected.

Check Out Microsoft Flow and PowerApps Training Course (Lifetime Access)

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 open by the approver, then the file is not going to approve from the approver.

Below is the error screenshot once 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

The ETag of this item does not match the one used for setting content approval status – Microsoft Flow

To solve this Microsoft Flow error, You have to add a “Set content approval status” action before using “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.

The ETag of this item does not match one used for setting content approval status
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 the “Approve” in the “Action” field and enter the “ETag” value from previous “Set content approval status” which action value is “Submit“.

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

You may like following Microsoft Flow tutorials:

In this Microsoft Flow tutorial, We discussed the solution of an 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.
By using this above solution, You can overcome this type of flow issue.

>