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 / Bad Gateway error - tr...
Power Automate
Unanswered

Bad Gateway error - trigger When a file is created or modified (properties only)

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I am trying to trigger a flow when a file modified, however the flow fails on the trigger - can someone advise?

 

2017-08-03_11-57-41.png

OUTPUTS

Headers
 
{ "Pragma": "no-cache", "x-ms-request-id": "19f3fef5-13e2-406a-87e3-1bf4c2c6598a", "Timing-Allow-Origin": "*", "Cache-Control": "no-cache", "Date": "Thu, 03 Aug 2017 10:40:33 GMT", "Set-Cookie": "ARRAffinity=6f8192aeb45a330cdb5f642ecc217dcd76db8eb70939a923860f458883127859;Path=/;HttpOnly;Domain=sharepointonlineconnectionprovider-westus.tip0-westus.p.azurewebsites.net", "Server": "Microsoft-IIS/8.0,Microsoft-HTTPAPI/2.0", "X-AspNet-Version": "4.0.30319", "X-Powered-By": "ASP.NET", "Content-Length": "293", "Content-Type": "application/json; charset=utf-8", "Expires": "-1" }
 
Body
 
{ "status": 502, "message": "Unknown Error\r\nclientRequestId: 19f3fef5-13e2-406a-87e3-1bf4c2c6598a", "source": "https://tenant.sharepoint.com/Documents/EH/_api/SP.APIHubConnector.GetUpdatedListItems", "errors": [ "-1", "Microsoft.SharePoint.Client.UnknownError" ] }
 

 

 

 

Categories:
  • v-yamao-msft Profile Picture
    Microsoft Employee on at

    Hi cc_onetowatch,

     

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


    This documentation could be a reference for you:
    https://flow.microsoft.com/en-us/documentation/fix-flow-failures/


    I have tested this trigger on my side by creating a simple flow. The flow ran succeed when a file was created or modified.
    3.PNG


    Please also consider to delete the old SharePoint connection and recreate the connection to see if it will work. Please try it again on your side and feel free reply if you need more help.

     

    Best regards,
    Mabel Mao

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at
    Thanks for your reply,

    There is no option to resubmit and also the flow does not run every time the file is modified or created.
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @v-yamao-msft

    Okay so this is not a solution but I created a new library and added a document - created the workflow which ran without errors - 

     

    The library that I am working with has 5 managed metadata columns - couyld this be the cause of the issue and if so is there a fix/workaround??

  • Per_Johansson Profile Picture
    26 on at

    The error(Bad gateway 500,502) might also occur when there is something missing or wrongly input into the different actions composing the flow. I for instance set a value that didn't exist in the corresponding Sharepoint list which made the flow fail with this error.

     

    A tip: If a error occurs you can troubleshoot it inside the view looking at a more detailed error message. It's on the same page as the one where you resend the flow.

  • SPMPKC Profile Picture
    6 on at

    I had this same error when I tried to repoint a Flow to an identical list that I had created by saving the original list as a  template.   The problem came from the original list having metadata columns.  The BadGateway error was indicating the metadata columns were an issue in creating the item.   In the end I deleted all of those columns on the destination and recreated them, repointed them to the metadata, and then edited the flow and reselect everything.  This took hours to resolve because it was not clear from the error message what the problem was because the inner error was 500 and read like the parameters, or data, that I was trying to put in the destination metadata column was beyond what was allowed. I had to make step by step changes and though a process of elimination figured out what had to be the problem.  It was a very tedious process that took hours.

  • GabrielStJohn Profile Picture
    Microsoft Employee on at

    Hello, @Anonymous!

    Thank you for posting on the Flow Community Forum! Have you had an opportunity to apply @SPMPKC‘s recommendation to adapt your Flow? If yes, and you find that solution to be satisfactory, please go ahead and click “Accept as Solution” so that this thread will be marked for other users to easily identify!

    Thank you for being an active member of the Flow Community!

    -Gabriel
    Flow Community Manager

  • Lamp-Fiend67 Profile Picture
    2 on at

    Morning, 

     

    I have  a flow that failed of bad gateway yesterday and today it's still trying to send a test flow. We're 20 minutes in. 

    I know OneDrive and online word has been having issues since this morning but TEAMS and Onenote do not seem to be affected. Is this  all related to the issue with onedrive?

     

    Thank you, 

    ~Amy

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 445

#2
11manish Profile Picture

11manish 345 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 300

Last 30 days Overall leaderboard