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 tran...
Power Automate
Answered

Bad Gateway error transition from microsoft to powerautomate

(0) ShareShare
ReportReport
Posted on by 14

HI all, 

 

I am getting this error on my flow since 4th july , any help is appreciated

 

 "statusCode": 504,
    "headers": {
        "Pragma": "no-cache",
        "x-ms-datasourceerror": "True",
        "x-ms-request-id": "0194aa17-482b-45b6-9cf5-badf86d2397b;681d3313-04d6-496d-9d80-9580603f40d2;91200983-df63-4039-bcd5-f0052774c3cc;c6a3c3e2-a892-4fe2-b7ea-558296072d8f",
        "Strict-Transport-Security": "max-age=31536000; includeSubDomains",
        "X-Content-Type-Options": "nosniff",
        "X-Frame-Options": "DENY",
        "Timing-Allow-Origin": "*",
        "x-ms-apihub-cached-response": "true",
        "x-ms-apihub-obo": "true",
        "Cache-Control": "no-store, no-cache",
        "Date": "Thu, 07 Jul 2022 10:41:56 GMT",
        "Content-Length": "666",
        "Content-Type": "application/json",
        "Expires": "-1"
    },
    "body": {
        "error": {
            "code": 504,
            "source": "asia-001.azure-apim.net",
            "clientRequestId": "2f5fdedd-4b20-4f70-9b4b-2b6680e44b2a",
            "message": "BadGateway",
            "innerError": {
                "status": 504,
                "message": "Request to Graph API has timed out.\r\nclientRequestId: 2f5fdedd-4b20-4f70-9b4b-2b6680e44b2a\r\nserviceRequestId: 0194aa17-482b-45b6-9cf5-badf86d2397b;681d3313-04d6-496d-9d80-9580603f40d2;91200983-df63-4039-bcd5-f0052774c3cc;c6a3c3e2-a892-4fe2-b7ea-558296072d8f",
                "error": {
                    "message": "Request to Graph API has timed out."
                },
                "source": "excelonline-sea.azconn-sea-001.p.azurewebsites.net"
            }
        }
    }
}
Categories:
  • AS-06081019-0 Profile Picture
    1,738 Super User 2024 Season 1 on at

    Could you please share your flow screenshot and the action throwing the error?

  • Verified answer
    Vikas2284 Profile Picture
    14 on at

    Thanks, i found multiple editions of the target excel file open, closing them resolved the issue

     

     

  • matheustudela Profile Picture
    11 on at

    Hello, we have the same error since 18/7 and Excel file has no editions open. 

    Do you have any further tips ? 

     

    {
      "error": {
        "code": 504,
        "source": "flow-apim-europe-001-northeurope-01.azure-apim.net",
        "clientRequestId": "d3928106-9f95-479a-a070-fbf10ae67de9",
        "message": "BadGateway",
        "innerError": {
          "status": 504,
          "message": "Request to Graph API has timed out.\r\nclientRequestId: d3928106-9f95-479a-a070-fbf10ae67de9\r\nserviceRequestId: af20b465-fd0b-4e41-a509-7c54e5559e20;88f34bee-e2b4-4441-a269-369d7d96b7a9;876bac26-1d3a-4ef1-9748-a5b676322ec3;f9697079-bbf8-422f-b965-1d00fcb59842;598658d1-2bfe-4f17-8364-207d355679e3",
          "error": {
            "message": "Request to Graph API has timed out."
          },
          "source": "excelonline-we.azconn-we-003.p.azurewebsites.net"
        }
      }
    }
  • AS-06081019-0 Profile Picture
    1,738 Super User 2024 Season 1 on at

    @matheustudela seems to be a temporary error, please try to update the connection of the corresponding action or re-create the connection, and then re-submit the Flow.

  • matheustudela Profile Picture
    11 on at

    Thanks @Ankesh_49 , I have already deleted and re-created connections yesterday, but error persists.

  • AS-06081019-0 Profile Picture
    1,738 Super User 2024 Season 1 on at

    @matheustudela are you trying to update the values cell by cell in your flow?

  • matheustudela Profile Picture
    11 on at

    @Ankesh_49 we are adding a new row into Excel.

  • Verified answer
    AS-06081019-0 Profile Picture
    1,738 Super User 2024 Season 1 on at

    @matheustudela 

    Please try troubleshooting:

     

    1. Look into see if you are correctly connected to the Excel Table.  Ensure that you have a step "Get a row" prior to "Add a Row" step. Once you add "Get a row" and identity which table you want to "Add a Row". By running flow at this point will serve as a checkpoint to ensure that you will be able to utilize output information in to  "Add Row". 

    2. Try to disconnect your "Excel Online" connector and reconnect.  Same for other connectors depends how you have your flow setup. 

    3. it is getting bad gateway due to a lot of formula/tabs in the excel.

    4. Change the approach to update the excel in batches for range of values. It should work.

    https://docs.microsoft.com/en-us/office/dev/scripts/resources/samples/write-large-dataset?view=office-scripts

     

    Hope it helps!!

     

    Cheers,

    Ankesh

    --------------------------------

    If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

  • matheustudela Profile Picture
    11 on at

    Thanks @Ankesh_49  I've first reduced some formulas and now it's running fine. I had a lot indeed. Thank you so much.

  • AS-06081019-0 Profile Picture
    1,738 Super User 2024 Season 1 on at

    @matheustudela  Could you please mark both as solution. So that other users find it handy. 

    Thanks

    Ankesh

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 425

#2
11manish Profile Picture

11manish 323 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 274

Last 30 days Overall leaderboard