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?
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.
Solved! Go to Solution.
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).