Showing results for 
Search instead for 
Did you mean: 
Level: Powered On

MS flows: step fails with bad gateway error


My MS flow was working fine and it suddenly throws Bad Gateway error for the flows that has "SharePoint 'when a file is created'" property. Any idea why this is failing? Other flows that doesn't have this property works fine.MSFlow_BadGateway.png

Level 8

Re: MS flows: step fails with bad gateway error

HI @geemadhas,


Unfortunatley I think we have all experienced an intermittent "Bad Gateway" error from time to time.  How long has this been happening?  Have you changed the schema (fields) in your SharePoint library at all?  Sometimes a simple field rename requires you to re-intialize the calls to SharePoint in Flow before things work as expected again.


If not, and if the error is actually intermittent and doesn't keep happening, I suggest implementing some error handling in your Flow.  That way you can be alerted to the issues your Flow is having in real time.


Here's a blog post from the Flow blog on error handling:

Here's a great--and very thorough-- post from MVP Rob Windsor:


Take care!


If you found this helpful, consider giving it a thumbs up!

Level: Powered On

Re: MS flows: step fails with bad gateway error

no changes done to SharePoint fields. It started giving bad gateway error for all the flows that has the file component associated to it. 

Helpful resources


Power Platform Online Conference

Speakers, submit your sessions now! Call for speakers ends Feb. 10!


New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!


Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!


Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!


Microsoft Learn

Learn how to build the business apps that you need.


Power Platform World Tour

Find out where you can attend!


Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Kudoed Authors (Last 30 Days)
Users online (3,591)