Hello,
I'm creating a custom approval workflow which allows employees to use the 'Start an Approval' Action to approve or reject items on a SharePoint Online List.
My flow is always erroring out on the 'Set Content Approval Status' step. However, it appears to be doing what it's supposed to: it properly sets the Approved/Rejected status on the SharePoint List, and it adds the comments.
However, it also starts showing that it's 'retrying' up to 4 times, and it always ends with the following error:
Outputs Details
4 Retries - Details:
1st Retry:
Retry 2-4 (Start and end times differ, but same error):
Status Code: 502
Key Value
Pragma | no-cache |
x-ms-request-id | 331802e6-ec27-4875-94cc-3e9bd72e825d |
Timing-Allow-Origin | * |
Cache-Control | no-cache |
Date | Tue, 16 Jan 2018 19:59:19 GMT |
Set-Cookie | ARRAffinity=622c74dd20820a29ad038bb6f18c30fe85f84009541dc1341e4efd23c045ffea;Path=/;HttpOnly;Domain=sharepointonlineconnectionprovider-westus.tip0-westus.p.azurewebsites.net |
X-AspNet-Version | 4.0.30319 |
X-Powered-By | ASP.NET |
Content-Length | 373 |
Content-Type | application/json; charset=utf-8 |
Expires | -1 |
Body:
{ "message": "The current state of the item is Denied and the following action Reject cannot be implemented\"\r\nclientRequestId: 331802e6-ec27-4875-94cc-3e9bd72e825d", "status": 502, "source": "https://[domain].sharepoint.com/teams/pm/_api/SP.APIHubConnector.SetApprovalStatus", "errors": [ "-1", "Microsoft.SharePoint.SPConnectorException" ] }
Anyone know why this is happening?