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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / HTTP status code 504 G...
Power Automate
Unanswered

HTTP status code 504 Gateway Timeout

(0) ShareShare
ReportReport
Posted on by 289

Hi Guys,

I recently got some help with a Reminder Loop , and since I implemented the solution my flow has been failing with error message:

The execution of template action 'Respond_to_a_PowerApp_or_flow' 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.

It doesn't always fail, but when it does it's only the last action (respond to power app or flow) that fails and the rest of the actions complete successfully.

Here is what my flow looks like:

flow.jpg

Here is a screenshot of the error I am getting:

Annotation 2021-07-05 185922.jpg

Please help 😟

Categories:
I have the same question (0)
  • Gristy Profile Picture
    2,429 on at

    Seeing as the approval action could run for 30 days - would it not be better to update a status in a data source and have power apps check that data source when the user is interacting with it?

  • v-LilyW-msft Profile Picture
    Microsoft Employee on at

    Hi @JimJim 

    Does your flow running longer than 1 minute?
    These long running flows called from Power Apps will time out after one minute.
    Please refer to link below to see if it could helps.

    https://sharepains.com/2019/10/10/calling-long-running-flows-in-powerapps/

    Best Regards

    If my solution helps, then please consider Accept it as the solution to help the other members find it more quickly.

  • JimJim Profile Picture
    289 on at

    Hi @v-LilyW-msft ,

    My flow isn't being called by Power Apps, it gets called from a parent flow which runs on schedule every hour. Before I edited my reminder loop the flows would run for days without this issue, now all of a sudden it is failing

    Edit: When the flow doesn't fail, I notice that it skips the 'respond to power app or flow' action, like so:

    respond to flow skipped.jpg

    But sometimes I get this error message instead:

    Annotation 2021-07-05 185922.jpg

    The trouble is that there doesn't seem to be any consistency between completing successfully and completing with error

  • JimJim Profile Picture
    289 on at

    Just to add an observation...

    For the purposes of testing, I set my reminder loop to run every 1 minute and send the reminder email every 5 minutes. After I respond to the approval it takes a few seconds to complete the rest of the flow, if I approve it just before the next reminder increment and the reminder loop finished before the rest of the flow, this is when I get the error message. However, if the flow reaches the 'respond to power app or flow' before the reminder loop finishes then it completes successfully.

    I have no ides why this happens or if this is the expected behaviour, but in production the reminder loop will increment much less frequently and I don't expect this to be an issue

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 875

#2
Valantis Profile Picture

Valantis 817

#3
Haque Profile Picture

Haque 481

Last 30 days Overall leaderboard