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

Anil Lande
Kilo Patron

Hi,

Can you please share your flow configuration? one of error is 'Record Not found'. 

 

Thanks,

Anil Lande

Please appreciate the efforts of community contributors by marking appropriate response as correct answer and helpful, this may help other community users to follow correct solution in future.
Thanks
Anil Lande

OlaN
Giga Sage
Giga Sage

Hi,

There seems to be differences between the flow design (image1), and the flow execution (image2)

There is an if statement in image2, that is not shown in image1.

As Anil already mentioned, please share the complete (and latest) Flow configuration, to enable us to help you.

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.

 

 

Niranjan2
Tera Contributor

Hi Amed,
I'm facing similar issue ('Gateway Timeout'), would you mind sharing the resolution for the gateway timeout?