web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / 502 Bad Gateway , on F...
Power Automate
Unanswered

502 Bad Gateway , on Flow thats been running fine for over a year, 13 days ago stops working

(0) ShareShare
ReportReport
Posted on by 131

So My flow archives work orders, creates a new list item, gets the attachments from the work order, adds them to the archived work order then deletes the work order, until 13 days ago, it worked fine.

 

bad gateway1.pngbad gateway2.png

 

 

 
Categories:
I have the same question (0)
  • v-bacao-msft Profile Picture
    Microsoft Employee on at

     

    Hi @Sighman ,

     

    Could you provide more details of the error message? Please make sure the list and site involved are valid.

    This seems to be a temporary error, please click or tap Resubmit to try the flow again.

    https://docs.microsoft.com/en-gb/power-automate/fix-flow-failures#other-failures

     

    In addition, you can try to use Save as to create a copy of Flow, and then test whether the new Flow can run normally.

    https://flow.microsoft.com/en-us/blog/make-a-copy/

     

    Best Regards,

  • Sighman Profile Picture
    131 on at

    Hi,

     

    I've tried re writing the flow, it is NOT temporary it is failing 14 days straight, test will fail too.

    There is something that Microsoft has changed on the backend.

    A working flow for a year should not stop working overnight.

    There is some permissions error in the background, as if I make the folder for the list item in attachments it works.

    Error:

     

    Content-Type
    application/json
    Expires
    -1
    Body
    { "error": { "code": 502, "source": "canada-001.azure-apim.net", "clientRequestId": "c7050fee-864d-4499-adad-7d8e27936a7a", "message": "BadGateway", "innerError": { "status": 502, "message": "List data validation failed.\r\nclientRequestId: c7050fee-864d-4499-adad-7d8e27936a7a\r\nserviceRequestId: 1ae8579f-4055-a000-31bb-6486807bf3e9", "source": "https://********.sharepoint.com//_api/web/lists(guid'0820d7a3-13a0-488a-a529-987fbd5c725d')/Items(1741)/AttachmentFiles/AddUsingPath(decodedUrl=@f)?@f='Atmosphere+Air-CP+Rail-AC+4_6+-Apr2020.pdf'", "errors": [ "-2130575163", "Microsoft.SharePoint.SPListDataValidationException" ] } } }
  • v-bacao-msft Profile Picture
    Microsoft Employee on at

     

    Hi @Sighman ,

     

    As far as I know, there seem to be no similar issues reported in the forum recently, and my test results here can also add attachments to the list item normally.

     

    Please check whether any changes have been made to the corresponding list or site.

     

    You can also try to create a simple Flow to test whether you can use Flow to add attachments to the list item.

     

    if it works, you could create a new Flow to solve this problem.

     

    Hope this helps.

     

    Best Regards,

  • Sighman Profile Picture
    131 on at

    I write a quick flow to pull an attachment from one list and attach to that list, it works fine.

    I rewrote my flow (3 times) againiagain fails with bad gateway. 

    I've tried many ways of doing this and it fails everytime.

    Doesn't make sense. Nothing has changed with that list, it worked fine until 2 weeks ago.

     

  • v-bacao-msft Profile Picture
    Microsoft Employee on at

     

    Hi @Sighman ,

     

    Does the problem you mentioned still exist? I still cannot reproduce a similar issue here. Please consider contacting MS Support to assist you in solving this problem. Create a support request here: https://admin.powerplatform.microsoft.com/support

     

    Best Regards,

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 250 Super User 2026 Season 1

#2
Expiscornovus Profile Picture

Expiscornovus 222 Most Valuable Professional

#3
Haque Profile Picture

Haque 174

Last 30 days Overall leaderboard