For Each - Ignore Errors

Process a list by calling a child Flow for each item.  This function is almost identical to the For Each function, with one important difference:  For Each will stop processing more items if an error occurs when processing one of the items in the child Flow. On the other hand, this function continues to process all items even if some hit errors in the child Flow. Here's how to think about it:

  • Use For Each if your Flow is only successful when every child item is processed successfully.

  • Use For Each - Ignore Errors if some items are expected to have errors during normal operation.

As an example of a Flow where some items are expected to have errors - suppose you are sending an email out to a list of email addresses.  Some of those email addresses will probably be out of date, so you may receive an error when trying to send to them.  But that error shouldn't stop you from sending to the rest of the email addresses on your list.  So in this case, For Each - Ignore Errors is a great fit.  You can still replay the child executions, for example, if you want to retry any of the errors. For more details on using this card, please see the For Each topic.

Input Fields

  • list(list of objects): The list to operate on

  • flow(button/object):  The child Flow that will be called once for each item in the list

  • with the following values (dynamically generated):  The inputs defined by the child Flow - these will populate when you select the child Flow using the Choose Flow dialog

  • concurrency(number):  The number of items in the list to process in parallel.  If it is important that the items are processed in sequence, use 1.  Otherwise a higher number like 5 or 10 will cause your Flow to complete sooner.

Output Fields

  • There are no output fields in this card.

See Also

About lists

Functions

About the elements of Okta Workflows