cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Vikas2284
New Member

Bad Gateway error transition from microsoft to powerautomate

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"
            }
        }
    }
}
2 ACCEPTED SOLUTIONS

Accepted Solutions
Vikas2284
New Member

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

 

 

View solution in original post

Ankesh_49
Super User
Super User

@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=offic...

 

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.

View solution in original post

10 REPLIES 10
Ankesh_49
Super User
Super User

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

Vikas2284
New Member

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

 

 

matheustudela
Regular Visitor

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"
    }
  }
}
Ankesh_49
Super User
Super User

@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.

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

Ankesh_49
Super User
Super User

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

@Ankesh_49 we are adding a new row into Excel.

Ankesh_49
Super User
Super User

@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=offic...

 

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.

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

Ankesh_49
Super User
Super User

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

Thanks

Ankesh

Helpful resources

Announcements
Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Users online (5,910)