#uipathcommunity #uipathlearner #uipathrpa #uipathtutorial #
Try Catch and Finally Workflow : –
Try catch is the main back bone of the code. Wherever it feels like there is possibility of error Try Catch is the activity which can help you to capture your error and handle it nicely so that your process will not interrupt, and other transaction will complete.
Catches a specified exception type in a sequence or activity, and either displays an error notification or dismisses it and continues the execution.
The activity has three main sections:
Try – holds the activity that could throw an exception.
Catches – specifies the exception type and, optionally, holds an activity that informs the user about the found exception.
Finally – holds an activity that should be executed only if no error occurred or if the error was already caught.
There is no limit to how many Catches you can use in a Try Catch activity.
Keep in mind that this activity requires at least two of the three fields to be in use. You cannot run it only with the Try field completed.