How to continue on for each after throw an exception

Hi guys,

I’m checking a multiple subfolder for 3 folders.
→ if one of them was not found, I throw an business rule exception and send a notification to client
→ But I need to continue the process, searching for other folders and the rest of workflow.´

Any suggestions??

Hi @Luis_Clara ,

You can put foreach body in trycatch block and continue execution.

so I need to have:

→ for each
inside loop → Try catch
inside catch → email for client and the continue activity

?

Hi @Luis_Clara,

A try catch is a safe option in your case if you are not using REFrameworks inbuilt business exception. The approach will be

The workflow continues to execute other activities:

Here is a workflow for reference :
ContinueOnBusinessException.xaml (9.1 KB)