Flow Designer 'For Each' logic error

Amed M
Mega Contributor

Hi, need assistance understanding the error I'm getting here or why it's occurring.  I'm attempting to make a flow that migrates a set of stories from ServiceNow to Jira via the Jira Spoke application.

I start with 'Look up Records' which finds the 118 records.  But then when using flow logic 'For Each' item in Look up Records, it only runs the first iteration and errors out thereafter.

find_real_file.png

find_real_file.png

find_real_file.png

find_real_file.png

Attached is the log information above 4 errors

1 ACCEPTED SOLUTION

Amed M
Mega Contributor

Hi, Thank you for the quick responses.  I actually figured out why the 'for each' was only running on first iteration.  

For the step "Look Up Jira Test User ...", It was was erroring out on first iteration so I had to select "don't fail on error" for this step in the flow.

This allowed the "for each" to continue. 

I have a new problem now, however.  It seems that my flow takes too long to execute and am getting a "Gateway Timeout" error.  When I go to the 'executions', the status is "Cancelled".

The flow did manage to create 100 of the expected 118 Jira issues.

 

Thanks again for the assistance.  Any guidance on the 'Gateway Timeout' part would be greatly appreciated.  I will be trying to figure it out in the meantime.

 

 

View solution in original post

10 REPLIES 10

Amed M
Mega Contributor

Nevermind guys.  Thank you.  I figured this one out. Thanks again.

Good that it's solved, don't forget to close this thread by marking your own answer as correct.

Hi Amed,

 

I am also facing the same issue with for each loop. Could you share the resolution steps you have followed. this will help me to resolve the issue.

 

Thanks,

Bharathi N

Hi Bharathi, I wrote above but perhaps not too clearly.  In the Flow action 'Look up Records' there is an option you must select to stop this from happening: 'Don't fail on error'.  Hope that helps.

kaybiz
Tera Contributor

What was the fix for the gateway timeout error? I'm getting the same thing.