Error and Exception handling is one of the critical aspects of bot development which makes workflow more robust and prevents potential failures of bot execution. This session will be more on how to handle such errors and exceptions in the UiPath workflow.
Agenda :
1. Introduction on Error and Exception Handling in UiPath
2. Common Exceptions that occur
3. UiPath Activities to handle exceptions
4. The Global Exception Handler
Key-TakeAways:
Will get to know how to anticipate, detect and handle exceptions in the processes built with UiPath.
Assignment Day 6:
1.Your task is to automate the calculation of the SUM of two fields in an Excel file (Cash In and Cash Out) and input it in the third column. Unfortunately, the file has accumulated a lot of errors over time.
2.A simple workflow will throw System.Exception because the robot will try to perform math calculations with Int32 variables that contain letters.
3.Create a workflow that takes as input the excel file and adds the value of Cash In value and Cash Out value for each row on the Sum column. If the calculation of the Sum of them is successful, set the Status to Success, otherwise set it to either Cash In wrong or Cash Out wrong.
4.Use Try Catch blocks to catch exceptions when trying to convert Cash In and Cash Out values.
5.Include a Global Exception Handler so that if any other application or system exception occurs it can be handled with this exception handler.
Learning Resources:
1. https://docs.uipath.com/activities/docs/try-catch
2. https://docs.uipath.com/studio/v2020.10/docs/logging-levels
3. https://docs.uipath.com/activities/docs/retry-scope
4. https://docs.uipath.com/studio/v2020.10/docs/ui-activities-properties
5. https://docs.uipath.com/studio/v2020.10/docs/global-exception-handler
RSVP for Day 7: https://community.uipath.com/events/details/uipath-learners-presents-rpa-developer-kickstarter-day-7-email-automation/