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:
Duration: 1s
Start time: 2018-01-16T19:57:54.0902707Z
End time: 2018-01-16T19:57:55.2933899Z
Status: InternalServerError
Client request ID: 4ab2d389-9889-453e-b8bb-df35a746f33b
Service request ID: 4ab2d389-9889-453e-b8bb-df35a746f33b
Retry 2-4 (Start and end times differ, but same error):
Duration: 1s
Start time: 2018-01-16T19:58:32.8113726Z
End time: 2018-01-16T19:58:33.4832728Z
Status: BadGateway
Client request ID: 1c144d55-a01a-47e6-ba12-c38d0279fac5
Service request ID: 1c144d55-a01a-47e6-ba12-c38d0279fac5
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?