Jump to Error Sequence

I would like to set up my workflow so that if the Bot stalls at any point and fails to continue, it jumps to another sequence that takes a screenshot and sends an email.

What would be the best way to capture all of these stalls…try/catch? Continue on error?

Looking for any suggestions. Thanks

Hi @jpreziuso

In that case, you could follow the next steps:

  1. Add a Try Catch activity
  2. Put your sequence inside the Try block, in case that your sequence fails at any point, TryCatch activity takes you to the Catch block
  3. Inside yout catch block, add a new type of exception (i.e. System.Exception) to catch any error that the sequence could send, and inside the exception you can add your Take Screenshot sequence, or invoke one


The entire sequence is going to be skipped since the error to the end. And the process is going to continue from Try Catch activity.

In case that you want to continue from the same point that the error was sended, and keeps on the same sequence, I recommend you to use and Global Exception Handler instead of Try Catch activity.



1 Like

This is exactly what I set up so hopefully it works! Thank you!