Neo
Neo

Reputation: 16239

Logic app nested forloop error The workflow run action 'Response' has type 'Response' that could not be nested under an action of type 'foreach'

I Have simple logic app which call HTTP and process data.

After adding this forloop i'm facing an issue with below error -

The workflow run action 'Response' has type 'Response' that could not be nested under an action of type 'foreach'.

Why unable to use response in nested for loop.

After adding all code into main for loop it is throwing this error.

enter image description here

Upvotes: 0

Views: 3575

Answers (1)

Mandar Dharmadhikari
Mandar Dharmadhikari

Reputation: 1119

The reason for this is simple jn a two way http request response type of logic app, you can only send one response for a request. If suppose that logic app allowed you to send response in a for each loop, it then would mean that each time the flow enters the loop, then logic app would send a response.this in theory is not possible any client which initiates a request to a httpend point closes the connection once a favorable response has been received. This is the reason you cannot put the response shape in for each loop

Upvotes: 1

Related Questions