web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Answered

Bad gate way/ gateway time out on excel functions

(0) ShareShare
ReportReport
Posted on by

HI All, 

 

I keep getting Error 504 - Gateway timeout or Bad gateway. It doesn't happen the same step every time but it is always on the excel actions. 

 

MannOnion_0-1651408731695.pngMannOnion_1-1651408802182.png

 

The users will be visiting sites and reporting issues that they find (one issue per form submission). This should then update various excel tables all in the same workbook. 

 

Tables 

Responses - This contains a list of all the planned visits. Each submission will update the completion time and the user's email address.

Required - This contains a list of issues that the helpdesk needs to log tickets for. Each has a unique identifier generated by the flow (Vendor_Quarter_issue number)

Resolved - A list of issues the user has resolved during their visit or has advised the site to report to another vendor. 

 

MannOnion_2-1651410069075.png

 

The condition checks the form responses to a question asking if the issue was resolved or reported to another vendor. 

 

If yes :

There is a second condition based on the same form question that adds a row to the "resolved" table using the form responses. If the condition is not met the output is identical except for one manually typed entry. 

 

 

If No:

There is a second condition based on the same form question. If the condition is met then a row is added to the "required" table using a combination of the form responses and the variables that were created earlier in the flow. If it is not met then no further action is taken as only the "responses" table needs to be updated and it gets updated earlier in the flow. 

 

To try and resolve this issue I have: 

  • Added the variables to remove unnecessary "apply to each" actions. 
  • Reset my O365 password.
  • Deleted all Excel connectors and recreated them.
  • Reduced the size of the excel file down to 556kb
  • Reduced the amount of "list rows in a table" functions from 4 to 1 
  • Reduced the amount of "update a row" actions from 4 to 1 
  • Deleted all of the excel actions and recreated them. 

 

This flow worked during a pilot on 14/4/2022, a user-submitted 15 responses and all of them were processed correctly.  The flow stopped working sometime between 14/4/2022 and 26/4/2022 despite no changes being made. 

 

Despite the flow previously working I have followed every suggestion I can find to streamline and optimise the flow to no avail. 

 

Does anyone have a different diagnosis or further suggestions to simplify this flow? 

I have the same question (0)
  • Verified answer
    Community Power Platform Member Profile Picture
    on at
    Re: Bad gate way/ gateway time out on excel functions

    I have solved the issue.

     

    I copied the Required table and then changed the flow to point at the new table and t worked without issues. 

  • v-qiaqi@microsoft.com Profile Picture
    on at
    Re: Bad gate way/ gateway time out on excel functions

    Hi @Anonymous,

    Glad that you have resolved your problem.

    Could you please mark your reply as answer to help more users?

    Thanks for your cooperation.

  • JeremyOakes Profile Picture
    15 on at
    Re: Bad gate way/ gateway time out on excel functions

    This is so frustrating that it appears to be the fix to every single Bad Gateway problem I've encountered. I have 2 tables in an excel file. One table works flawlessly every time. The second table in the flow is where the problems happen with the bad gateway. I'm the only member of my organization managing flows and such and if this happens at a future time, I hope I'm still here to manage this for them.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 788 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 452 Moderator

#3
developerAJ Profile Picture

developerAJ 302

Last 30 days Overall leaderboard