Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Unanswered

SharePoint Flow Bad gateway and error status code 500 or 502

(0) ShareShare
ReportReport
Posted on by

I'm developing flows for our SharePoint site. The particular flow looks like the following image. A form is submitted, an existing item called and a variable incremented based on the "get item". A new item is then generated with user information from the form, an existing item updated and email sent to the appropriate person for action.

 

 

Until 1 day ago this Flow was operating as intended. I made some changes to the form by adding more questions, then added the same details to columns on a SharePoint list to accommodate the new answers. Then I modified the Flow to handle this information appropriately.

 

I only added 3 new pieces of information, all of which were text and I've reviewed the data types to ensure that I've not inadvertently set a data type to numerical or an integer or something silly.

 

The Flow will no longer run and it fails at the "create item" stage above - which is the list item receiving much of the data from the user form. 

 

Details are shown below - indicating a bad gateway and error code of 502. However some instances throw an error of 500. The error does not appear to be consistent.

 

 

 

In trying to remedy the issue I've;

- Modified data types throughout the form and list entries

- Tried not inputting any data into some fields in the form in case there was a data type mismatch

- Removed the new form questions, List columns and subsequently the new items added to the Flow

- Restarted my machine

- Cleared cache in Google Chrome (after reading other possible troubleshooting relating to cache and error 500/502)

 

None of these actions have provided any resolution, irrespective of changing back to the original configuration (which was working only 2 days ago).

 

Can I get more information on what is likely to cause a bad gateway, error 500 or error 502?

 

Thanks

  • NeilP Profile Picture
    8 on at
    Re: SharePoint Flow Bad gateway and error status code 500 or 502

    I'm having the same issues with my flows too yesterday and today. In my case I think it's that Flow isn't talking to OneDrive. Hopefully it gets resolved soon...

  • Community Power Platform Member Profile Picture
    on at
    Re: SharePoint Flow Bad gateway and error status code 500 or 502

    Hi,

     

    I've attempted to re-run the flow around 10 times. None of them are successful. I've also reverted the flow to the original condition, when it was last operational. This did not yield a result.

     

    Neither of these courses of action provide any improvement.

     

    What does error 500 / 502 actually mean? When you say it's a transient error - what do you actually mean? Is there a better course of action than "try turning it off and on again"?

  • v-zhos-msft Profile Picture
    on at
    Re: SharePoint Flow Bad gateway and error status code 500 or 502

    Hi @Anonymous ,

    If the error code 500 or 502 appears, the failure is temporary or transient.Click or tap Resubmit to try the flow again.

    I suggest you reconfigure and save the flow.

    Then take a test to check whether it will work.

    Best Regards,

    Community Support Team _ Zhongys

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

  • v-zhos-msft Profile Picture
    on at
    Re: SharePoint Flow Bad gateway and error status code 500 or 502

    Hi @Anonymous ,

    If the error code 500 or 502 appears, the failure is temporary or transient.Click or tap Resubmit to try the flow again.

    I suggest you reconfigure and save the flow.

    Then take a test to check whether it will work.

    Best Regards,

    Community Support Team _ Zhongys

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 566 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 516 Super User 2025 Season 1

#3
stampcoin Profile Picture

stampcoin 492