cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
homol
Advocate I
Advocate I

Excel Script - Bad Gateway error

I have a Power Automate flow that is collating a fair bit of financial data and then passing this information as JSON into an Excel Script action.  The Excel script is laying in this data and also setting up a number of calculations as it goes.  This is pretty important to me, as the end user would want to see the math that's going into different cells.  Whenever I have a particularly large JSON object to pass into the script, I get the following:

 

{
  "error": {
    "code"504,
    "source""unitedstates-002.azure-apim.net",
    "clientRequestId""23bf5646-e701-4037-8b1a-766296ce4064",
    "message""BadGateway",
    "innerError": {
      "status"504,
      "message""Request to Graph API has timed out.\r\nclientRequestId: 23bf5646-e701-4037-8b1a-766296ce4064",
      "error": {
        "message""Request to Graph API has timed out."
      },
      "source""excelonline-eus2.azconn-eus2.p.azurewebsites.net"
    }
  }
}
 
My understanding is that the formula cells are what makes all this time out.  I'd really like to try and keep these formulas in the Excel.  Is there any other workaround to this issue, like extending the timout for the Excel script action?  It's extremely frustrating to have spent so much time getting this Excel script to sing with my Power Automate flow just to see it fail as soon as it has a little bit of real data.
0 REPLIES 0

Helpful resources

Announcements
MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

New Process Advisor Capabilities carousel.png

Read the blog for the latest news

Read the latest about new experiences and capabilities in the Power Automate product blog.

PA Survey Carousel Image.png

We want to hear from you!

If you are a small business ISV/Reseller, share your thoughts with our research team.

AI Builder AMA June 7th carousel (up on May 25th, take down June 8th) (1).png

'Ask Microsoft Anything' about AI Builder!

The AI Builder team invite you to ask questions and provide helpful answers at our next AMA.

Top Solution Authors
Users online (1,485)