cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Anonymous
Not applicable

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
Highlighted
Anonymous
Not applicable

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
Highlighted
Community Support
Community Support

Re: Graph API BadGateway Error

Hi @Anonymous ,

 

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.
Highlighted
Anonymous
Not applicable

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. 

Highlighted
Community Support
Community Support

Re: Graph API BadGateway Error

Hi @Anonymous ,

 

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.
Highlighted
Anonymous
Not applicable

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

Highlighted
New Member

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. 

Highlighted
Frequent Visitor

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
Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Upcoming Events

Experience what’s next for Power Automate

See the latest Power Automate innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Community Conference

Power Platform Community Conference

Find your favorite faces from the community presenting at the Power Platform Community Conference!

Top Solution Authors
Top Kudoed Authors
Users online (5,471)