SlideShare a Scribd company logo
1 of 21
Error And Exception
Handling
UiPath Studio
2
3
• Identify and differentiate between the different types of exceptions.
• Describe the common exception handling techniques and explain when they
should be used.
• Use the Try Catch, Throw, and Rethrow activities in your automation projects.
• Use the Retry Scope activities in your automation projects.
• Describe the ContinueOnError Property.
• Use the Global Exception Handler in both attended and unattended
scenarios.
What we will learn in this course
4
Errors are events that a particular program can’t normally deal with. There are
different types of errors, based on what's causing them - for example:
• Syntax errors : Where the compiler/interpreter cannot parse the written code
into meaningful computer instructions.
• User errors : Where the software determines that the user’s input is not
acceptable for some reason.
• Programming errors : Where the program contains no syntax errors but
does not produce the expected results. These types of errors are often called
bugs.
Errors
5
Exceptions are events that are recognized (caught) by the program, categorized,
and handled. More specifically, there is a routine configured by the developer that
is activated when an exception is caught. Sometimes, the handling mechanism
can be simply stopping the execution.
Some of the exceptions are linked to the systems used, while others are linked to
the logic of the business process.
• System Exception : Exception occurred due to system ( web application,
stand alone application etc.) Eg: application not reachable , Ui element not
found etc.
• Business Exception :The exception occurred by business logic.
Exceptions
6
Below is the list of the most common exceptions that you can encounter in projects developed
with UiPath. All of these exception types mentioned below are derived from System.Exception, so
using this generic type in a TryCatch, for example, will catch all types of errors.
• NullReferenceException - Occurs when using a variable with no set value (not initialized).
• IndexOutOfRangeException - Occurs when the index of an object is out of the limits of the collection.
• ArgumentException - Is thrown when a method is invoked and at least one of the passed arguments
does not meet the parameter specification of the called method.
• SelectorNotFoundException - Is thrown when the robot is unable to find the designated selector for an
activity in the target app within the TimeOut period.
• TextNotFoundException - Occurs when the indicated text is not found within the TimeOut period.
• ApplicationException - Describes an error rooted in a technical issue, such as an application that is not
responding.
System Exceptions
7
A business exception mainly refers to information used in an automated process.
Either it may be incomplete or incorrect from a business perspective.
When business exceptions occur, robots stop the process, and it requires human
intervention to address a thrown exception.
• Business rule Exception – Business Exceptions aren't automatically generated as system
exceptions. They must be defined by a developer by using the Throw Activity and handled inside
a TryCatch.
Business Exceptions
8
Question:
User is trying to login into Gmail without credential.
Is a:
A. Business Exception?
B. System Exception?
9
Question:
URL of Gmail suddenly stopped working and user is unable to login
Is a:
A. Business Exception?
B. System Exception?
Now that you've understood the
common exception types, let's learn
about the various exception
handling techniques in
UiPath Studio.
11
TryCatch activity catches a specified exception type in a sequence or activity and
either displays an error notification or dismisses it and continues the execution.
Try-Catch
As a mechanism, TryCatch runs the
activities in the Try block and, if an
error takes place, executes the
activities in the Catches block. The
Finally block is only executed when
no exceptions are thrown or when an
exception is caught and handled in
the Catches block (without being re-
thrown).
12
TryCatch activity catches a specified exception type in a sequence or activity and
either displays an error notification or dismisses it and continues the execution.
Try-Catch, Throw and Rethrow
• We are using Ty Catch activity to catch runtime exceptions and to perform rcovry steps
• We are using Throw activity when we want to throw an exception, even if it is not generated
by an activity
• We cand use Rethrow activities only inside catch blocks and will throw again the exception
that is been initially caught
13
Question:
What is the limit as to how many Catches you can use in a Try Catch
activity?
14
The ContinueOnError is a
property that specifies if the
execution of the activity should
continue even when the activity
throws an error.
This field only supports Boolean
values (True, False). The
default value is False, thus, if
the field is blank and an error is
thrown, the execution of the
project stops. If the value is set
to True, the execution of the
project continues regardless of
any error.
The ContinueOnError Property
Now that we've learned a lot about
errors and exceptions, let's see how
the project behaves when it
encounters an execution error.
16
The Global Exception Handler is a type of workflow designed to determine the process'
behavior when encountering an unexpected exception.
The Global Exception Handler has 2 predefined arguments, that shouldn't be removed:
• errorInfo with the In direction - contains the information about the error that was thrown
and the workflow that failed.
• result with the Out direction - used for determining the next behavior of the process when
it encounters the error.
Action:
•Continue - The exception is re-thrown.
•Ignore - The exception is ignored, and the execution continues from the next activity.
•Retry - The activity which threw the exception is retried.
•Abort - The execution stops after running the current handler.
The Global Exception Handler
17
18
UiPath documentation
TryCatch - UiPath Activities Guide
Logging Levels - UiPath Studio Guide
Retry Scope - UiPath Activities Guide
UI Activities Properties - UiPath Studio Guide
Global Exception Handler - UiPath Studio Guide
Go To Docs
Go To Docs
Go To Docs
Go To Docs
Go To Docs
19
Win Your UiPath Swag
1. Go to https://www.menti.com/alhrpriehpvt
OR
1. Go to https://www.menti.com/
2. Type the code : 89 16 31 0
OR
Scan the QR below –
20
Q&A
21

More Related Content

What's hot

Introduction To UiPath | RPA Tutorial For Beginners | RPA Training using Uipa...
Introduction To UiPath | RPA Tutorial For Beginners | RPA Training using Uipa...Introduction To UiPath | RPA Tutorial For Beginners | RPA Training using Uipa...
Introduction To UiPath | RPA Tutorial For Beginners | RPA Training using Uipa...Edureka!
 
UiPath REFramework Overview Developer Series - Part 1 of 4
UiPath REFramework Overview  Developer Series - Part 1 of 4UiPath REFramework Overview  Developer Series - Part 1 of 4
UiPath REFramework Overview Developer Series - Part 1 of 4Diana Gray, MBA
 
Benefits of REFramework.pdf
Benefits of REFramework.pdfBenefits of REFramework.pdf
Benefits of REFramework.pdfCristina Vidu
 
UiPath Excel Automation | UiPath Excel Activities | UiPath Training Essential...
UiPath Excel Automation | UiPath Excel Activities | UiPath Training Essential...UiPath Excel Automation | UiPath Excel Activities | UiPath Training Essential...
UiPath Excel Automation | UiPath Excel Activities | UiPath Training Essential...Edureka!
 
UiPath Studio Session 2 - The Fundamentals of UiPath Studio - Final Slides.pdf
UiPath Studio Session 2 - The Fundamentals of UiPath Studio - Final Slides.pdfUiPath Studio Session 2 - The Fundamentals of UiPath Studio - Final Slides.pdf
UiPath Studio Session 2 - The Fundamentals of UiPath Studio - Final Slides.pdfDiana Gray, MBA
 
Variables, Data Types and Activities in UiPath | Basics of UiPath | UiPath Tu...
Variables, Data Types and Activities in UiPath | Basics of UiPath | UiPath Tu...Variables, Data Types and Activities in UiPath | Basics of UiPath | UiPath Tu...
Variables, Data Types and Activities in UiPath | Basics of UiPath | UiPath Tu...Edureka!
 
Familiarization with UiPath Studio.pptx
Familiarization with UiPath Studio.pptxFamiliarization with UiPath Studio.pptx
Familiarization with UiPath Studio.pptxApurbaSamanta9
 
Introduction to UiPath licensing model
Introduction to UiPath licensing modelIntroduction to UiPath licensing model
Introduction to UiPath licensing modelVibhor Shrivastava
 
Certification preparation - Error Handling and Troubleshooting recap.pptx
Certification preparation - Error Handling and Troubleshooting recap.pptxCertification preparation - Error Handling and Troubleshooting recap.pptx
Certification preparation - Error Handling and Troubleshooting recap.pptxRohit Radhakrishnan
 
Introduction to RPA_SummerSchool _ Welcome to the world of automation using U...
Introduction to RPA_SummerSchool _ Welcome to the world of automation using U...Introduction to RPA_SummerSchool _ Welcome to the world of automation using U...
Introduction to RPA_SummerSchool _ Welcome to the world of automation using U...Diana Gray, MBA
 
Automate CRM systems through APIs with the new UiPath Integration Service
Automate CRM systems through APIs with the new UiPath Integration ServiceAutomate CRM systems through APIs with the new UiPath Integration Service
Automate CRM systems through APIs with the new UiPath Integration ServiceDiana Gray, MBA
 
Enhanced Reframework Session_16-07-2022.pptx
Enhanced Reframework Session_16-07-2022.pptxEnhanced Reframework Session_16-07-2022.pptx
Enhanced Reframework Session_16-07-2022.pptxRohit Radhakrishnan
 
UI path Interview Question
UI path Interview Question UI path Interview Question
UI path Interview Question ganesh kumar
 
UiPath 2022.10 Release – Updates with StudioX, Activities and Robot Assistant...
UiPath 2022.10 Release – Updates with StudioX, Activities and Robot Assistant...UiPath 2022.10 Release – Updates with StudioX, Activities and Robot Assistant...
UiPath 2022.10 Release – Updates with StudioX, Activities and Robot Assistant...Rohit Radhakrishnan
 
Overview of UiPath Insights.pdf
Overview of UiPath Insights.pdfOverview of UiPath Insights.pdf
Overview of UiPath Insights.pdfCristina Vidu
 
UiPath Automation Cloud Robots - Best Practises session 2.pptx
UiPath Automation Cloud Robots - Best Practises session 2.pptxUiPath Automation Cloud Robots - Best Practises session 2.pptx
UiPath Automation Cloud Robots - Best Practises session 2.pptxRohit Radhakrishnan
 
What is UiPath RPA Architecture | UiPath Studio, Robot & Orchestrator | Edureka
What is UiPath RPA Architecture | UiPath Studio, Robot & Orchestrator | EdurekaWhat is UiPath RPA Architecture | UiPath Studio, Robot & Orchestrator | Edureka
What is UiPath RPA Architecture | UiPath Studio, Robot & Orchestrator | EdurekaEdureka!
 
UiPath Summer School Session1
UiPath Summer School Session1 UiPath Summer School Session1
UiPath Summer School Session1 Cristina Vidu
 

What's hot (20)

Introduction To UiPath | RPA Tutorial For Beginners | RPA Training using Uipa...
Introduction To UiPath | RPA Tutorial For Beginners | RPA Training using Uipa...Introduction To UiPath | RPA Tutorial For Beginners | RPA Training using Uipa...
Introduction To UiPath | RPA Tutorial For Beginners | RPA Training using Uipa...
 
UiPath REFramework Overview Developer Series - Part 1 of 4
UiPath REFramework Overview  Developer Series - Part 1 of 4UiPath REFramework Overview  Developer Series - Part 1 of 4
UiPath REFramework Overview Developer Series - Part 1 of 4
 
Benefits of REFramework.pdf
Benefits of REFramework.pdfBenefits of REFramework.pdf
Benefits of REFramework.pdf
 
UiPath Excel Automation | UiPath Excel Activities | UiPath Training Essential...
UiPath Excel Automation | UiPath Excel Activities | UiPath Training Essential...UiPath Excel Automation | UiPath Excel Activities | UiPath Training Essential...
UiPath Excel Automation | UiPath Excel Activities | UiPath Training Essential...
 
UiPath Studio Session 2 - The Fundamentals of UiPath Studio - Final Slides.pdf
UiPath Studio Session 2 - The Fundamentals of UiPath Studio - Final Slides.pdfUiPath Studio Session 2 - The Fundamentals of UiPath Studio - Final Slides.pdf
UiPath Studio Session 2 - The Fundamentals of UiPath Studio - Final Slides.pdf
 
Variables, Data Types and Activities in UiPath | Basics of UiPath | UiPath Tu...
Variables, Data Types and Activities in UiPath | Basics of UiPath | UiPath Tu...Variables, Data Types and Activities in UiPath | Basics of UiPath | UiPath Tu...
Variables, Data Types and Activities in UiPath | Basics of UiPath | UiPath Tu...
 
Familiarization with UiPath Studio.pptx
Familiarization with UiPath Studio.pptxFamiliarization with UiPath Studio.pptx
Familiarization with UiPath Studio.pptx
 
UiPath Devops.pptx
UiPath Devops.pptxUiPath Devops.pptx
UiPath Devops.pptx
 
Introduction to UiPath licensing model
Introduction to UiPath licensing modelIntroduction to UiPath licensing model
Introduction to UiPath licensing model
 
Certification preparation - Error Handling and Troubleshooting recap.pptx
Certification preparation - Error Handling and Troubleshooting recap.pptxCertification preparation - Error Handling and Troubleshooting recap.pptx
Certification preparation - Error Handling and Troubleshooting recap.pptx
 
Ui path| RPA
Ui path| RPAUi path| RPA
Ui path| RPA
 
Introduction to RPA_SummerSchool _ Welcome to the world of automation using U...
Introduction to RPA_SummerSchool _ Welcome to the world of automation using U...Introduction to RPA_SummerSchool _ Welcome to the world of automation using U...
Introduction to RPA_SummerSchool _ Welcome to the world of automation using U...
 
Automate CRM systems through APIs with the new UiPath Integration Service
Automate CRM systems through APIs with the new UiPath Integration ServiceAutomate CRM systems through APIs with the new UiPath Integration Service
Automate CRM systems through APIs with the new UiPath Integration Service
 
Enhanced Reframework Session_16-07-2022.pptx
Enhanced Reframework Session_16-07-2022.pptxEnhanced Reframework Session_16-07-2022.pptx
Enhanced Reframework Session_16-07-2022.pptx
 
UI path Interview Question
UI path Interview Question UI path Interview Question
UI path Interview Question
 
UiPath 2022.10 Release – Updates with StudioX, Activities and Robot Assistant...
UiPath 2022.10 Release – Updates with StudioX, Activities and Robot Assistant...UiPath 2022.10 Release – Updates with StudioX, Activities and Robot Assistant...
UiPath 2022.10 Release – Updates with StudioX, Activities and Robot Assistant...
 
Overview of UiPath Insights.pdf
Overview of UiPath Insights.pdfOverview of UiPath Insights.pdf
Overview of UiPath Insights.pdf
 
UiPath Automation Cloud Robots - Best Practises session 2.pptx
UiPath Automation Cloud Robots - Best Practises session 2.pptxUiPath Automation Cloud Robots - Best Practises session 2.pptx
UiPath Automation Cloud Robots - Best Practises session 2.pptx
 
What is UiPath RPA Architecture | UiPath Studio, Robot & Orchestrator | Edureka
What is UiPath RPA Architecture | UiPath Studio, Robot & Orchestrator | EdurekaWhat is UiPath RPA Architecture | UiPath Studio, Robot & Orchestrator | Edureka
What is UiPath RPA Architecture | UiPath Studio, Robot & Orchestrator | Edureka
 
UiPath Summer School Session1
UiPath Summer School Session1 UiPath Summer School Session1
UiPath Summer School Session1
 

Similar to Exception Handling in UiPath.pptx

Java Exceptions and Exception Handling
 Java  Exceptions and Exception Handling Java  Exceptions and Exception Handling
Java Exceptions and Exception HandlingMaqdamYasir
 
Lecture 1 Try Throw Catch.pptx
Lecture 1 Try Throw Catch.pptxLecture 1 Try Throw Catch.pptx
Lecture 1 Try Throw Catch.pptxVishuSaini22
 
Exception handling
Exception handlingException handling
Exception handlingMinal Maniar
 
Lecture 3.1.1 Try Throw Catch.pptx
Lecture 3.1.1 Try Throw Catch.pptxLecture 3.1.1 Try Throw Catch.pptx
Lecture 3.1.1 Try Throw Catch.pptxsunilsoni446112
 
Exception handling in java
Exception handling in javaException handling in java
Exception handling in javaKavitha713564
 
Exception handling
Exception handlingException handling
Exception handlingpooja kumari
 
Exception Handling Exception Handling Exception Handling
Exception Handling Exception Handling Exception HandlingException Handling Exception Handling Exception Handling
Exception Handling Exception Handling Exception HandlingAboMohammad10
 
Introduction to java exceptions
Introduction to java exceptionsIntroduction to java exceptions
Introduction to java exceptionsSujit Kumar
 
Exception handling chapter15
Exception handling chapter15Exception handling chapter15
Exception handling chapter15Kumar
 
Exception handling in Java
Exception handling in JavaException handling in Java
Exception handling in JavaAnkit Rai
 
Ch-1_5.pdf this is java tutorials for all
Ch-1_5.pdf this is java tutorials for allCh-1_5.pdf this is java tutorials for all
Ch-1_5.pdf this is java tutorials for allHayomeTakele
 
UNIT III 2021R.pptx
UNIT III 2021R.pptxUNIT III 2021R.pptx
UNIT III 2021R.pptxRDeepa9
 
UNIT III 2021R.pptx
UNIT III 2021R.pptxUNIT III 2021R.pptx
UNIT III 2021R.pptxRDeepa9
 
Chap2 exception handling
Chap2 exception handlingChap2 exception handling
Chap2 exception handlingraksharao
 
Java-Unit 3- Chap2 exception handling
Java-Unit 3- Chap2 exception handlingJava-Unit 3- Chap2 exception handling
Java-Unit 3- Chap2 exception handlingraksharao
 

Similar to Exception Handling in UiPath.pptx (20)

Exception handling in java
Exception handling  in javaException handling  in java
Exception handling in java
 
Java Exceptions and Exception Handling
 Java  Exceptions and Exception Handling Java  Exceptions and Exception Handling
Java Exceptions and Exception Handling
 
Lecture 1 Try Throw Catch.pptx
Lecture 1 Try Throw Catch.pptxLecture 1 Try Throw Catch.pptx
Lecture 1 Try Throw Catch.pptx
 
Exception handling
Exception handlingException handling
Exception handling
 
Exception handling
Exception handlingException handling
Exception handling
 
Lecture 3.1.1 Try Throw Catch.pptx
Lecture 3.1.1 Try Throw Catch.pptxLecture 3.1.1 Try Throw Catch.pptx
Lecture 3.1.1 Try Throw Catch.pptx
 
Exception handling in java
Exception handling in javaException handling in java
Exception handling in java
 
Exception handling
Exception handlingException handling
Exception handling
 
Exception Handling Exception Handling Exception Handling
Exception Handling Exception Handling Exception HandlingException Handling Exception Handling Exception Handling
Exception Handling Exception Handling Exception Handling
 
Introduction to java exceptions
Introduction to java exceptionsIntroduction to java exceptions
Introduction to java exceptions
 
Exception handling chapter15
Exception handling chapter15Exception handling chapter15
Exception handling chapter15
 
Exception handling in Java
Exception handling in JavaException handling in Java
Exception handling in Java
 
Ch-1_5.pdf this is java tutorials for all
Ch-1_5.pdf this is java tutorials for allCh-1_5.pdf this is java tutorials for all
Ch-1_5.pdf this is java tutorials for all
 
UNIT III 2021R.pptx
UNIT III 2021R.pptxUNIT III 2021R.pptx
UNIT III 2021R.pptx
 
UNIT III 2021R.pptx
UNIT III 2021R.pptxUNIT III 2021R.pptx
UNIT III 2021R.pptx
 
Chap2 exception handling
Chap2 exception handlingChap2 exception handling
Chap2 exception handling
 
Java-Unit 3- Chap2 exception handling
Java-Unit 3- Chap2 exception handlingJava-Unit 3- Chap2 exception handling
Java-Unit 3- Chap2 exception handling
 
Maheen oop
Maheen oopMaheen oop
Maheen oop
 
Exception handling
Exception handlingException handling
Exception handling
 
CS3391 -OOP -UNIT – III NOTES FINAL.pdf
CS3391 -OOP -UNIT – III  NOTES FINAL.pdfCS3391 -OOP -UNIT – III  NOTES FINAL.pdf
CS3391 -OOP -UNIT – III NOTES FINAL.pdf
 

More from ApurbaSamanta9

UiPath Development Best Practices.pptx
UiPath Development Best Practices.pptxUiPath Development Best Practices.pptx
UiPath Development Best Practices.pptxApurbaSamanta9
 
Debugging in UiPath.pptx
Debugging in UiPath.pptxDebugging in UiPath.pptx
Debugging in UiPath.pptxApurbaSamanta9
 
UI Automation with UiPath.pptx
UI Automation with UiPath.pptxUI Automation with UiPath.pptx
UI Automation with UiPath.pptxApurbaSamanta9
 
Introducing Excel Automation.pptx
Introducing Excel Automation.pptxIntroducing Excel Automation.pptx
Introducing Excel Automation.pptxApurbaSamanta9
 
Variables, Arguments & Imports.pptx
Variables, Arguments & Imports.pptxVariables, Arguments & Imports.pptx
Variables, Arguments & Imports.pptxApurbaSamanta9
 
Types of Workflow.pptx
Types of Workflow.pptxTypes of Workflow.pptx
Types of Workflow.pptxApurbaSamanta9
 
Automation Vidyalaya - Introduction to RPA & UiPath.pptx
Automation Vidyalaya - Introduction to RPA & UiPath.pptxAutomation Vidyalaya - Introduction to RPA & UiPath.pptx
Automation Vidyalaya - Introduction to RPA & UiPath.pptxApurbaSamanta9
 

More from ApurbaSamanta9 (9)

UiPath Development Best Practices.pptx
UiPath Development Best Practices.pptxUiPath Development Best Practices.pptx
UiPath Development Best Practices.pptx
 
Debugging in UiPath.pptx
Debugging in UiPath.pptxDebugging in UiPath.pptx
Debugging in UiPath.pptx
 
UiPath Logs.pptx
UiPath Logs.pptxUiPath Logs.pptx
UiPath Logs.pptx
 
UI Automation with UiPath.pptx
UI Automation with UiPath.pptxUI Automation with UiPath.pptx
UI Automation with UiPath.pptx
 
Email Automation.pptx
Email Automation.pptxEmail Automation.pptx
Email Automation.pptx
 
Introducing Excel Automation.pptx
Introducing Excel Automation.pptxIntroducing Excel Automation.pptx
Introducing Excel Automation.pptx
 
Variables, Arguments & Imports.pptx
Variables, Arguments & Imports.pptxVariables, Arguments & Imports.pptx
Variables, Arguments & Imports.pptx
 
Types of Workflow.pptx
Types of Workflow.pptxTypes of Workflow.pptx
Types of Workflow.pptx
 
Automation Vidyalaya - Introduction to RPA & UiPath.pptx
Automation Vidyalaya - Introduction to RPA & UiPath.pptxAutomation Vidyalaya - Introduction to RPA & UiPath.pptx
Automation Vidyalaya - Introduction to RPA & UiPath.pptx
 

Recently uploaded

Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxRoyAbrique
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991RKavithamani
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfchloefrazer622
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 

Recently uploaded (20)

Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 

Exception Handling in UiPath.pptx

  • 2. 2
  • 3. 3 • Identify and differentiate between the different types of exceptions. • Describe the common exception handling techniques and explain when they should be used. • Use the Try Catch, Throw, and Rethrow activities in your automation projects. • Use the Retry Scope activities in your automation projects. • Describe the ContinueOnError Property. • Use the Global Exception Handler in both attended and unattended scenarios. What we will learn in this course
  • 4. 4 Errors are events that a particular program can’t normally deal with. There are different types of errors, based on what's causing them - for example: • Syntax errors : Where the compiler/interpreter cannot parse the written code into meaningful computer instructions. • User errors : Where the software determines that the user’s input is not acceptable for some reason. • Programming errors : Where the program contains no syntax errors but does not produce the expected results. These types of errors are often called bugs. Errors
  • 5. 5 Exceptions are events that are recognized (caught) by the program, categorized, and handled. More specifically, there is a routine configured by the developer that is activated when an exception is caught. Sometimes, the handling mechanism can be simply stopping the execution. Some of the exceptions are linked to the systems used, while others are linked to the logic of the business process. • System Exception : Exception occurred due to system ( web application, stand alone application etc.) Eg: application not reachable , Ui element not found etc. • Business Exception :The exception occurred by business logic. Exceptions
  • 6. 6 Below is the list of the most common exceptions that you can encounter in projects developed with UiPath. All of these exception types mentioned below are derived from System.Exception, so using this generic type in a TryCatch, for example, will catch all types of errors. • NullReferenceException - Occurs when using a variable with no set value (not initialized). • IndexOutOfRangeException - Occurs when the index of an object is out of the limits of the collection. • ArgumentException - Is thrown when a method is invoked and at least one of the passed arguments does not meet the parameter specification of the called method. • SelectorNotFoundException - Is thrown when the robot is unable to find the designated selector for an activity in the target app within the TimeOut period. • TextNotFoundException - Occurs when the indicated text is not found within the TimeOut period. • ApplicationException - Describes an error rooted in a technical issue, such as an application that is not responding. System Exceptions
  • 7. 7 A business exception mainly refers to information used in an automated process. Either it may be incomplete or incorrect from a business perspective. When business exceptions occur, robots stop the process, and it requires human intervention to address a thrown exception. • Business rule Exception – Business Exceptions aren't automatically generated as system exceptions. They must be defined by a developer by using the Throw Activity and handled inside a TryCatch. Business Exceptions
  • 8. 8 Question: User is trying to login into Gmail without credential. Is a: A. Business Exception? B. System Exception?
  • 9. 9 Question: URL of Gmail suddenly stopped working and user is unable to login Is a: A. Business Exception? B. System Exception?
  • 10. Now that you've understood the common exception types, let's learn about the various exception handling techniques in UiPath Studio.
  • 11. 11 TryCatch activity catches a specified exception type in a sequence or activity and either displays an error notification or dismisses it and continues the execution. Try-Catch As a mechanism, TryCatch runs the activities in the Try block and, if an error takes place, executes the activities in the Catches block. The Finally block is only executed when no exceptions are thrown or when an exception is caught and handled in the Catches block (without being re- thrown).
  • 12. 12 TryCatch activity catches a specified exception type in a sequence or activity and either displays an error notification or dismisses it and continues the execution. Try-Catch, Throw and Rethrow • We are using Ty Catch activity to catch runtime exceptions and to perform rcovry steps • We are using Throw activity when we want to throw an exception, even if it is not generated by an activity • We cand use Rethrow activities only inside catch blocks and will throw again the exception that is been initially caught
  • 13. 13 Question: What is the limit as to how many Catches you can use in a Try Catch activity?
  • 14. 14 The ContinueOnError is a property that specifies if the execution of the activity should continue even when the activity throws an error. This field only supports Boolean values (True, False). The default value is False, thus, if the field is blank and an error is thrown, the execution of the project stops. If the value is set to True, the execution of the project continues regardless of any error. The ContinueOnError Property
  • 15. Now that we've learned a lot about errors and exceptions, let's see how the project behaves when it encounters an execution error.
  • 16. 16 The Global Exception Handler is a type of workflow designed to determine the process' behavior when encountering an unexpected exception. The Global Exception Handler has 2 predefined arguments, that shouldn't be removed: • errorInfo with the In direction - contains the information about the error that was thrown and the workflow that failed. • result with the Out direction - used for determining the next behavior of the process when it encounters the error. Action: •Continue - The exception is re-thrown. •Ignore - The exception is ignored, and the execution continues from the next activity. •Retry - The activity which threw the exception is retried. •Abort - The execution stops after running the current handler. The Global Exception Handler
  • 17. 17
  • 18. 18 UiPath documentation TryCatch - UiPath Activities Guide Logging Levels - UiPath Studio Guide Retry Scope - UiPath Activities Guide UI Activities Properties - UiPath Studio Guide Global Exception Handler - UiPath Studio Guide Go To Docs Go To Docs Go To Docs Go To Docs Go To Docs
  • 19. 19 Win Your UiPath Swag 1. Go to https://www.menti.com/alhrpriehpvt OR 1. Go to https://www.menti.com/ 2. Type the code : 89 16 31 0 OR Scan the QR below –
  • 21. 21