As with all UiPath projects, we will start by creating the project:
- Create a new UiPath project in Studio, called rpachallenge, and open the Main workflow.
- Within the Main sequence, let's add a Try Catch activity to handle any exceptions. We will add the automation to the Try block in the next section.
- For now, let's handle any exceptions in the Catches block. Go ahead and add a new catch for Exception. This will handle any system exceptions. Add a Message box activity with the "RPA Challenge Failed due to this Error:"+ exception.Message text.
Your workflow so far should look like this:
Now that we have handled the exception, let's get into the meat of the automation.