We have a flow that uses the When an event is added, updated or deleted (V3) connector that points to a shared calendar.
The shared calendar receives thousands of invitations per day, and approximately every 3 to 4 weeks it generates a "Bad Gateway" error, with message "Request failed. Try again later.":
"body": {
"error": {
"code": 502,
"source": "flow-apim-unitedstates-002-westus-01.azure-apim.net",
"clientRequestId": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"message": "BadGateway",
"innerError": {
"status": 502,
"message": "Request failed. Try again later.\r\nclientRequestId: xxxxxxxxxxxxxxxxxxxxxxxxxxxx\r\nserviceRequestId: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"error": {
"message": "Request failed. Try again later."
},
"source": "office365-scus.azconn-scus-001.p.azurewebsites.net"
}
}
}
Once this error occurs, all subsequent triggers fail until the connector is removed & recreated. The errors usually happen overnight and remain until somebody recreates the connector the next morning. This causes us to miss out on thousands of updates from the calendar. (The Analytics from our latest error show over 1000 errored triggers.)
We have noticed that prior to the first Bad Gateway error, the flow receives thousands of triggers within a very short timeframe (1 to 2 minutes.) Usually these are ActionType = 'deleted'. My assumption is that Outlook/Exchange is doing a purge of old data.
I believe the real problem is the flow trigger is overloaded and can't handle all the updates.
What can be done to prevent the Bad Gateway errors?
Can they be captured and at least send an email when an error occurs?
I have thought about using a Trigger Condition to exclude ActionType = 'deleted', but in the Settings the Split is Off, which allows multiple updates per trigger. (This is necessary for other parts of the flow to work properly.)
Can someone from Microsoft confirm what's actually happening?
Thank you