cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
PeterKuehlian
Level: Powered On

ETAG mismatch Error

Hi

 

I have embeded an approval workflow in our SharePoint document library based on flows.

 

It does pretty much what it is supposed to do. However I do have one problem:

 

At the end of the workflow I want to set the approval status of the document to either approved or rejected. Unfortunately that does not work. I have troubles with the ETag.

 

Here is the Error:

 

{

  "error": {

    "code": 502,

    "source": "flow-apim-europe-001-francecentral-01.azure-apim.net",

    "clientRequestId": "ca960cb9-4a5a-4445-a0c3-8a6ade77783b",

    "message": "BadGateway",

    "innerError": {

      "status": 500,

      "message": "Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))\r\nclientRequestId: ca960cb9-4a5a-4445-a0c3-8a6ade77783b\r\nserviceRequestId: 2941c99e-2057-8000-db55-a179f50d1bb4"

    }

  }

}

 

 

Unfortunetly this does not occour always. Just sometimes. 

  • When a collegue of mine has to approve something and I send the approval, it does work.
  • When I send the approval to myself, it does work. 
  • As soon as the approval is sent to me by a collegue, it does not work. 
  • Collegue to Collegue does work sometimes, but not always. 

 

 

Best regards.

Peter

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: ETAG mismatch Error

Hi @PeterKuehlian ,

 

Could you share screenshots of Flow configuration?

You could use Get file metadata to get Etag instead of using Tags from trigger.

Also from the error message and the scenario you describe, this seems to be related to access rights.

I guess the account of the connection configured by Set content approval status action is yours, so it is up to you to set Approval Status of the current file.

But if you don't have enough permissions, there is not able to access the file and rely on this action to set the Status.

 

Best Regards,

Community Support Team _ Barry
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

2 REPLIES 2
Community Support Team
Community Support Team

Re: ETAG mismatch Error

Hi @PeterKuehlian ,

 

Could you share screenshots of Flow configuration?

You could use Get file metadata to get Etag instead of using Tags from trigger.

Also from the error message and the scenario you describe, this seems to be related to access rights.

I guess the account of the connection configured by Set content approval status action is yours, so it is up to you to set Approval Status of the current file.

But if you don't have enough permissions, there is not able to access the file and rely on this action to set the Status.

 

Best Regards,

Community Support Team _ Barry
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

PeterKuehlian
Level: Powered On

Re: ETAG mismatch Error

Hi Barry Cao

 

Thanks, it was a problem with my permission management. 

 

I put my collegues in the contributor class on sharepoint. Because of that, they were not allowed to update the approval status. 

 

My solution now is to give approval rights to my contributor class - seems to work pretty well. 

 

Thank you for your help

Peter

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Kudoed Authors (Last 30 Days)
Users online (4,696)