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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Flow error- HTTP statu...
Power Automate
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.

Categories:
I have the same question (0)
  • v-bacao-msft Profile Picture
    on at

     

    Hi @anka ,

     

    It seems that this seems to be a temporary error, please try to update the connection of the corresponding action or re-create the connection, and then re-submit the Flow.

     

    If the problem persists, please provide a screenshot of the Flow configuration so that we can do a more accurate analysis.

     

    Best Regards,

  • KaareM Profile Picture
    2 on at

    Hi Anka. 

    We are facing the same issue right now, for us it seems that it is due to there is a very short limit on how long a flow can run before the 'respond to power apps' times out. 
    The only 'documentation' I could find was this: 
    https://veenstra.me.uk/2019/10/10/calling-long-running-flows-in-powerapps/

    I'm currently facing it when my flow runs for more than 95 seconds. 

  • Community Power Platform Member Profile Picture
    on at

    I am getting the same error as well.  It seems any flow running longer than 2 min will not be able to send a response.

     

    I do know there is options for an asynchronous response, but there is no documentation on the  Response action that describes how to setup or use this functionality and instead only has a vague description of its capabilities.

    If further clarification could be done about either the asynchronous response and/or ability to change the timeout value that would be great.

  • gergoe Profile Picture
    61 on at

    Nowadays (since the COVID-19 pandemic started) this is very common and the weird thing is this:timeout.png

    The whole runtime of an “Apply to each” action took 4 minutes, while it only had a single sub action which took zero seconds, and the number of items to loop through is one

    If my math is correct, one times 0 seconds is 0 seconds.

  • Community Power Platform Member Profile Picture
    on at

    @gergoeWhen you use controls like "Apply to Each" it creates sub-processes, or internal sub-flows to handle each loop.  The delay could be the time it takes to allocate these resources.  I have also seen that it can be very inefficient at times.

  • Interlock Profile Picture
    85 on at

    There's a blog post on the Response action by the very fabulous Brian Dang here: https://powerapps.microsoft.com/en-us/blog/return-an-array-from-flow-to-powerapps-response-method/

     

    I found the video very helpful, and I got the Response action working.  BUT!... it didn't help at all with the timeout issue I'm afraid.

  • MM-JMPBBS Profile Picture
    2 on at

    @Anonymous Do you have a recommendation for how to handle the need to loop through an indeterminate amount of steps (i.e. each Sales Order can have 1 to many Sales Lines)?

     

    And if this works 99% of the time and literally can fail on a single loop it seems the inefficiency is the overall platform and not the Flow. 

     

    Any advice is greatly appreciated.

  • steve_hendy Profile Picture
    385 on at

    I have a flow that fails several times a week but not every time it runs.  It typically takes 4 s to run so its not a time out issue.  I have a PowerApps form that triggers the flow to run.  I'm wondering, if a user closes the form before the flow responds to the form request, if that would cause this error message?  If it does what can I do to handle the error?

  • steve_hendy Profile Picture
    385 on at

    here is my flow to get all the comments in all the versions of a sharepoint item

    steve_hendy_0-1675938948350.png

     

  • steve_hendy Profile Picture
    385 on at

    so how do I fix this?

    steve_hendy_0-1681460208716.png

     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard