Skip to main content

Notifications

Power Automate - Using Flows
Unanswered

Flow error- HTTP status code 504 Gateway Timeout

(2) ShareShare
ReportReport
Posted on 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
    IAmIntractable 227 on at
    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
    HarshaVardhini 4 on at
    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
    Kalebe_Abrantes 2 on at
    Re: Flow error- HTTP status code 504 Gateway Timeout

    Any solution for this issue?

  • venusagarla1 Profile Picture
    venusagarla1 2 on at
    Re: Flow error- HTTP status code 504 Gateway Timeout

    Me too facing the same issue

  • steve_hendy Profile Picture
    steve_hendy 363 on at
    Re: Flow error- HTTP status code 504 Gateway Timeout

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

  • Jorgen_VDB Profile Picture
    Jorgen_VDB 4 on at
    Re: Flow error- HTTP status code 504 Gateway Timeout

    Have you found a solution to this problem?

     

  • steve_hendy Profile Picture
    steve_hendy 363 on at
    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
    JAWL 391 on at
    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
    steve_hendy 363 on at
    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.

  • 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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,636

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,942

Leaderboard

Featured topics

Restore a deleted flow