Let's add Error handler: Try and Error handler:Ā Catch to catch any errors. To do that, look up Error handler and then drag and drop the TryĀ action. We will add all of the automation logic in this Try block in the next few sections.Ā
Before we do that, we'll add the Catch action beneathĀ Try. In the CatchĀ action's properties, set theĀ Exception type as AllErrors. Create a String variable called errorMesage to store the error message:
InĀ the Catch block, let's also add a Message Box with the message Following error occurred $errorMessage$. Finally, click theĀ Save buttonĀ at the top to save the bot so far, before we open and read the user request PDF file.