Tuesday
So currently I have a for each loop iterating through a list of records in a Values array. The issue is if I have an array with 5 items and the third one fails (for instance a required field is missing) then the for each loop seems to stop and the final two items are not processed in the for each loop.
Is there an easy way to make it so that, if a record fails, the for each loop continues with the next record? I have tried using a Monitor branch however the only option I have is the DO NOT RETRY (that or retry multiple times) and this doesn't always seem to allow the for each loop to continue iterating.
Solved! Go to Solution.
Tuesday
Hi @PhilipMasters,
Cannot exactly say from the Image shared.
Trigger/Scheduler -> Monitor Block -> Repeat For -> Monitor Block1 -> Error Block1 End -> Repeat For End -> Error Block End.
Would look something like above flow.
Regards,
Prudvi
Tuesday
Hi @PhilipMasters,
Could you try adding another Monitor Block where you are performing the Logic inside Repeat For, if it fails you can capture the error and Repeat For will process the next records in the list.
Regards,
Prudvi
Tuesday
Hi sorry, do you mean like this? Or an additional monitor block on top of this?
Tuesday
Hi @PhilipMasters,
Cannot exactly say from the Image shared.
Trigger/Scheduler -> Monitor Block -> Repeat For -> Monitor Block1 -> Error Block1 End -> Repeat For End -> Error Block End.
Would look something like above flow.
Regards,
Prudvi
Tuesday - last edited Tuesday
@PhilipMasters
Yes you can do it this way
you can write a logic inside the field which you want to map
Formula Mode:
Datapill.present? ? Datapill : "null value"
--> You can try this in the field which is mandatory. The above formula checks whether the given datapill has some value or not if it has value, it maps the datapill if not the field is filled with "null value" ... so the for-loop execution won't stop.
Connect with me on LinkedIn: https://www.linkedin.com/in/bhagya-sri-58847123a/