Showing results for 
Search instead for 
Did you mean: 
New Member

Flow fails occasionally with 503 - BadGateway

Hey folks,


my hotfolder flow fails occasionally (maybe 40 %) with the error BadGateway at the trigger stage.

When the error occurs the flow is actually not failing, instead the error appears above the "all runs" table saying "There's a problem with the flow's trigger."

When I follow the "Fix the trigger" link it shows "ServiceUnavailable."

Trigger wirh error messageTrigger wirh error message


Most of the time it works fine, so I don't think there's anything wrong with the flow config or authentication, otherwise I would expect it to fail all the time.


My flow simply checks a SharePoint folder for new files ("when file is created in folder"), then creates a copy of that files on different locations (others folders on SharePoint) and deletes the trigger file in the end.


Any ideas how to approach this issue?


Best regards,


Super User II
Super User II

HI @iTerradmin 


Indeed it's a strange issue. Sometimes the connections can break, but 40% is a lot.


Here are some suggestions to try to clean the issues. I know these are "turn it off and back on again" solutions but let's try something to see if it works:

  1. Re-connect in the Data > Connections - Sometimes, connections may act up, and re-setting them could do the trick.
  2. Export and re-import the Flow as New - This will force you to map to new connections and could solve the issue.


Have you tried any of these? I know these are not durable solutions, but if they fix your issue, it's worth a try.


If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.


Dual Super User II
Dual Super User II

Hey @iTerradmin 


I have seen such issues with flows that are created as templates or as copies. You might want to either export the flow as a package and re-import it or delete the trigger of the flow and add one again. 


Hope this Helps!


If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

Helpful resources

Process Advisor

Introducing Process Advisor

Check out the new Process Advisor community forum board!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Users online (71,955)