cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
bssienes
Helper III
Helper III

Power automate flow from a power page in a loop

Hi All,

 

I am calling an flow from power pages within a loop. For the second and third iterations I am getting the following error. Does anybody know how to fix this?

 

bssienes_0-1674670241393.png

 

 

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

1 ACCEPTED SOLUTION

Accepted Solutions
bssienes
Helper III
Helper III

My loop was in Javascript code. I moved the loop to the power automate flow and make a single call from the code. This solved the issue.

View solution in original post

2 REPLIES 2
Fubar
Solution Sage
Solution Sage

The 'client' making the call to your HTTP has timed out (or closed etc)., or you have already sent your response (you don't show the 'loop' in your screen shot if the response is inside the loop then you can't send the response a 2nd time)  You either need to changes the timeout settings on what is calling your HTTP, or find a way to rework what you are doing so that it runs more quickly.

If you have Loops in Flow it will run slow, depending on exactly what you are doing you may be able to use array filtering instead (but it depends on exactly what you are doing).

bssienes
Helper III
Helper III

My loop was in Javascript code. I moved the loop to the power automate flow and make a single call from the code. This solved the issue.

Helpful resources

Top Solution Authors
Users online (4,203)