Skip to main content
Community site session details

Community site session details

Session Id : ve9Cja+Y+2wKMTkdsxndxK
Power Automate - Using Flows
Unanswered

Flow error- HTTP status code 504 Gateway Timeout

Like (2) ShareShare
ReportReport
Posted on 25 Sep 2019 22:02:03 by 66

Hi, I keep getting these email from flow that my flow has failed but when i look in to the flow history I do not see any failed flow instance form this week. The flow works most of the times but has 3-4 failed instances in last month. I am not using any gateway or on-prem connection in the flow.

 

The latest failed instance I see if from a week ago with the following error-

 

"The execution of template action 'Respond_to_PowerApps' is failed: the client application timed out waiting for a response from service. This means that workflow took longer to respond than the alloted timeout value. The connection maintained between the client application and service will be closed and client application will get an HTTP status code 504 Gateway Timeout."

 

Any suggestion, what could be causing this error?

 

This flow is using powerapps template to check user permissions in a sharepoint group, if the user is SP group A they can see the the full PowerApp form with all fields, and if the user is in Group B they can only see limited fields in powerapps.

 

Any ideas/suggestions are welcome.

  • IAmIntractable Profile Picture
    270 on 17 Oct 2024 at 14:48:35
    Flow error- HTTP status code 504 Gateway Timeout
    It's funny that the issue has not yet been clearly defined. The error occurs when the calling app (or flow) starts a flow then is not listening anymore. This can be caused by a long running flow (not appropriate to be called from an App) or browser issue. For example, you call the flow at the start of an app but quickly close the app window. Flow will fail.
     
    You have to add an action after the "Respond to an app or flow" action with a run after that checks for an error. I use a compose. This will let the flow continue to the end but not impede the reporting of other errors.
  • HarshaVardhini Profile Picture
    4 on 03 Jan 2024 at 10:30:39
    Re: Flow error- HTTP status code 504 Gateway Timeout

    I found a working solution. The problem happens from the flow taking more than or equal to 120 seconds, causing the response to fail due to a timeout error. To resolve this, it's necessary to enable Asynchronous Response in the response settings.

     

    Image for reference: 

    HarshaVardhini_0-1704277674523.png

     

  • Kalebe_Abrantes Profile Picture
    2 on 29 Dec 2023 at 16:39:01
    Re: Flow error- HTTP status code 504 Gateway Timeout

    Any solution for this issue?

  • venusagarla1 Profile Picture
    2 on 07 Dec 2023 at 09:35:29
    Re: Flow error- HTTP status code 504 Gateway Timeout

    Me too facing the same issue

  • steve_hendy Profile Picture
    375 on 23 Oct 2023 at 09:38:34
    Re: Flow error- HTTP status code 504 Gateway Timeout

    no sir, I still have regular failures of my flow.

  • Jorgen_VDB Profile Picture
    4 on 20 Oct 2023 at 12:34:37
    Re: Flow error- HTTP status code 504 Gateway Timeout

    Have you found a solution to this problem?

     

  • steve_hendy Profile Picture
    375 on 08 Sep 2023 at 07:20:07
    Re: Flow error- HTTP status code 504 Gateway Timeout

    Still have random failures almost daily on my flow which runs frequently every day.

  • JAWL Profile Picture
    391 on 07 Sep 2023 at 23:35:18
    Re: Flow error- HTTP status code 504 Gateway Timeout

    Steve, are you still facing the same error on and off these days? Your flow is accessing on-prem data gateway? 

     

    I have a flow successfully ran within 11s and annoyed by this out-of-the-blue error which I have no idea. Anyone is facing this issue and any workaround?

    JAWL_0-1694129653496.png

     

  • steve_hendy Profile Picture
    375 on 18 May 2023 at 06:57:31
    Re: Flow error- HTTP status code 504 Gateway Timeout

    Short answer no, sometimes it works but I get daily fails on that and another similar flow.  As I said it only runs for a few seconds.

  • Community Power Platform Member Profile Picture
    on 17 May 2023 at 20:27:13
    Re: Flow error- HTTP status code 504 Gateway Timeout

    Hi @steve_hendy , were you able to find a solution to this?

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1

Featured topics

Restore a deleted flow