Hi all, I want to jump to another activity when have some error for example: I’ve activity A,B,C,D… How to jump to D(skip B and C) when A have some error? Please help me to do this idea.
Thanks.
Hi all, I want to jump to another activity when have some error for example: I’ve activity A,B,C,D… How to jump to D(skip B and C) when A have some error? Please help me to do this idea.
Thanks.
Have each sequence or step separate…
And after the sequence complete check if there are any errors for this you can surround the whole step with try catch in catch block set error variable to true…so if variable is true go to stepD else go to step B here you can use flow chart and call each sequence and check for conditions
Cheers
If your activities are bigger logics you can put them in separate workflows and invoke them in Flowchart type of workflow.
In Flow Decision you can check if the earlier sequence failed or not and accordingly add arrow to next steps.
Thanks,
Ashok ![]()
In UiPath, handling errors and controlling the workflow based on specific conditions is straightforward using activities like Try Catch and Throw, along with the appropriate flow control activities. Here’s how you can achieve the desired behavior of jumping from Activity A directly to Activity D when an error occurs:
Step-by-Step Implementation:
1. Create a Flowchart
2. Add Activities to the Flowchart
3. Wrap Activity A in a Try Catch
4. Configure the Try Catch
5. Add a Decision Activity
6. Configure the Decision Activity
7. Connect Activities Based on the Decision
Hi, Glad to see that you are a part of the automation journey with UiPath.
To answer your query, below methods can be tried:
a) You can make use of conditional blocks to handle such situations. In your case, for A, B, C & D scenarios, create separate workflows. In the main workflow you can call these sub flows. For eg: If there is an error in scenario A, then call the D workflow in then part.
b) You can make use of Try Catch Block. The logic you write in Try throws an error then you can trigger the required actions you want to perform in the Catch block.
c) Throw an exception. You can use the Throw activity to do this and it will skip the steps you want and directly execute the D block in your case.
Hope the above solutions help you to proceed ahead.
Thanks,
Shruti Basutkar