When I searched for the above message I quite quickly found a post telling me that there is something wrong with a connection:https://powerusers.microsoft.com/t5/General-Flow-Discussion/Error-from-ASE-token-exchange-timeout/td-p/61375This of course is a worrying issue if the flow has been working before and it has been working since the failure.Then I found another failure on the same trigger.
BadRequest. Http request failed: the timeout was reached.I guess that this could happen when the connector is overloaded or when SharePoint Online is unavailable. I’ve done some tests flooding flow, but I didn’t get to see these kind of failures. So I’m assuming that this happens when SharePoint Online is struggling for some other reason.So how do we handle these problems?The obvious answer would be to set the configure run after the trigger. But this option is not available
I’ll get started by stating that these failures are often difficult or impossible to reproduce. I decided to use the When a new email arrives trigger as it allows me to specify an invalid email folder and save the flow.I now created two scope steps after my trigger ( hoping that the first one would be skipped and therefore the second one could run on failure of the previous scope. But this will not work as the next step is not skipped. The flow is simply terminated on the failed trigger.
So what do we do?When I looked at my flow history, I was surprised not to see my flow run. It looks like when testing a flow ( using the test option in the flow editor) and a trigger fails there is no flow history created.
This could be down to the way the flow is triggered. Where before something did actually trigger the flows and in this case I’m starting the flow myself and the triggering object doesn’t really exist.As All my flows run using the same account, I should be notified
And even when looking at the Show all activity screens I’m not getting any alerts. Well at least not the ones that are caused by the trigger failures.So far the only place I’ve seen where you can find out about trigger failures seemed to be the Analytics part of Microsoft Flow. Although that has an 1 hour delay.
As you can see from the above screenshot I have seen the following failures on my trigger:- BadRequest. Http request failed: the timeout was reached.
- BadGateway
- Internal server error
- Error from ASE:token exchange failure.
- The underlying connection was closed: An unexpected error occurred on a receive.
- Http request failed: the timeout was reached.
It looks like the notifications are updated at the same interval as the Analytics reports in Flow.I’ve created an idea to improve this on the flow community site. Please upvote the flow trigger error handling idea Frequently asked questions
Why did the usual Try Catch scopes not catch the trigger failure?
In the author’s test, the failed trigger terminated the flow before the following scopes ran. Configure run after was not available on the trigger itself.
Where did the author find evidence of trigger failures?
The June 2018 investigation found them in analytics and later in notifications, rather than reliably in the immediately visible run or activity views.
What kind of delay should I infer from this article?
It reports delayed analytics and notifications in that historical test. It should not be read as a current service-level promise for trigger-failure reporting.
