cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
nshan
Level: Powered On

Graph API BadGateway Error

I have a basic flow to add new rows into Excel online. It has been working fine since May but recently I noticed a lot of failed Flows with the below error.  Can you please help resolve this ?

 

{
  "error": {
    "code": 502,
    "source": "flow-apim-msmanaged-na-westus2-01.azure-apim.net",
    "clientRequestId": "f65a73ea-5a5b-4bdf-8290-e045274b2087",
    "message": "BadGateway",
    "innerError": {
      "status": 502,
      "message": "Graph API is currently unavailable.\r\nclientRequestId: f65a73ea-5a5b-4bdf-8290-e045274b2087",
      "source": "excelonline-eus2.azconn-eus2.p.azurewebsites.net"
    }
  }
}
1 ACCEPTED SOLUTION

Accepted Solutions
nshan
Level: Powered On

Re: Graph API BadGateway Error

I removed the formulae from the table in Excel where the data was inserted by Flow. 

I incorporated the formula based calculations into the Flow itself and updated so that all the data is added at once.

 

Now its running properly for the same set of data that failed before and its faster too. 

So, removing the formulae from the sheet seems to have resolved it for now.

View solution in original post

6 REPLIES 6
Community Support Team
Community Support Team

Re: Graph API BadGateway Error

Hi @nshan ,

 

Could you share the screenshot of the Flow configuration and the details of the error message? Which action has this problem?

The Error message shows that the Graph API is currently unavailable. It seems that this is a temporary error.

Please try to reconfigure the action first, then resubmit the Flow to see if a similar issue still exists.

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
nshan
Level: Powered On

Re: Graph API BadGateway Error

Base.png

This is my basic setup. When http posts data in json format, it picks up data list and adds them in loop one by one in each row of excel online.

This file has reached 4MBs / 14000+ rows. I have derived some PIVOT tables and charts in a sheet in the same file based on this data.

I tried to manually re run some failed flows. Some flows with less data passed and some big ones failed (but havent had any issues like this so far, even with a big list of 30+rows)

 

I dont know if any of these could cause this issue. 

Every failed error shows BadGateway as the reason. 

Community Support Team
Community Support Team

Re: Graph API BadGateway Error

Hi @nshan ,

 

Thank for your reply.

What is the run result of this Flow before, is there a success?

If it can be successfully run before, according to the error message, it seems that the corresponding service is temporarily unavailable.

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
nshan
Level: Powered On

Re: Graph API BadGateway Error

I removed the formulae from the table in Excel where the data was inserted by Flow. 

I incorporated the formula based calculations into the Flow itself and updated so that all the data is added at once.

 

Now its running properly for the same set of data that failed before and its faster too. 

So, removing the formulae from the sheet seems to have resolved it for now.

View solution in original post

sherpajosh
Level: Power Up

Re: Graph API BadGateway Error

I am getting the same error in my flow. However, the table the data is being added to has no calculations. But I am still getting the error that the Graph API is currently unavailable. 

 

Sometimes rows are added, the rows that are getting added are either blank or the row has multiple duplicates of the same data. 

syed_sme
Level: Powered On

Re: Graph API BadGateway Error

I'm seeing the same issue here. My flow which is taking MS Forms response and inserting into an excel file (table) has been working for over a month but is throwing this error now in the last 24hrs. There are now formulas or complicated steps in the flow.

 

The number of records is less than 300 and the file size is <1mb. I've reinserted the action "Add a row into a table" and resubmitted the failed flow but still the same error....

 

"code": 502,
"message": "BadGateway",
"innerError": {
"status": 502,
"message": "Graph API is currently unavailable.\r\nclientRequestId:.....
"error": {
"message": "Graph API is currently unavailable."

 

Any help/suggestion would be extremely appreciated.

 

 

Helpful resources

Announcements
firstImage

Better Together Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

firstImage

Incoming: New and improved badges!

Look out for new contribution recognition badges coming SOON!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Community Summit North America

The top training and networking event across the globe for Microsoft Business Applications

Users online (9,656)