SlideShare a Scribd company logo
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

Benefits of REFramework.pdf
Benefits of REFramework.pdfBenefits of REFramework.pdf
Benefits of REFramework.pdf
Cristina Vidu
 
Variables Arguments and control flow_UiPath.ppt
Variables Arguments and control flow_UiPath.pptVariables Arguments and control flow_UiPath.ppt
Variables Arguments and control flow_UiPath.ppt
Rohit Radhakrishnan
 
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
Rohit Radhakrishnan
 
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
Diana Gray, MBA
 
Ui path| RPA
Ui path| RPAUi path| RPA
Ui path| RPA
gokul krishna
 
UiPath Community_Process Mining.pdf
UiPath Community_Process Mining.pdfUiPath Community_Process Mining.pdf
UiPath Community_Process Mining.pdf
RohitRadhakrishnan8
 
UiPath Email Automation | UiPath Tutorial | RPA Training Using UiPath | Edureka
UiPath Email Automation | UiPath Tutorial | RPA Training Using UiPath | EdurekaUiPath Email Automation | UiPath Tutorial | RPA Training Using UiPath | Edureka
UiPath Email Automation | UiPath Tutorial | RPA Training Using UiPath | Edureka
Edureka!
 
UiPath Test Suite
UiPath Test Suite UiPath Test Suite
UiPath Test Suite
Cristina Vidu
 
UiPath Citrix Automation | Image and Text Automation in UiPath | UiPath Train...
UiPath Citrix Automation | Image and Text Automation in UiPath | UiPath Train...UiPath Citrix Automation | Image and Text Automation in UiPath | UiPath Train...
UiPath Citrix Automation | Image and Text Automation in UiPath | UiPath Train...
Edureka!
 
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 23.4 Product Release Updates
UiPath 23.4 Product Release UpdatesUiPath 23.4 Product Release Updates
UiPath 23.4 Product Release Updates
DianaGray10
 
End-to-End SAP business process and test automation with UiPath
End-to-End SAP business process and test automation with UiPathEnd-to-End SAP business process and test automation with UiPath
End-to-End SAP business process and test automation with UiPath
Vibhor Shrivastava
 
UiPath Studio Web
UiPath Studio WebUiPath Studio Web
UiPath Studio Web
Cristina Vidu
 
Unlock the Power of UiPath AI Center API
Unlock the Power of UiPath AI Center APIUnlock the Power of UiPath AI Center API
Unlock the Power of UiPath AI Center API
DianaGray10
 
Familiarization with UiPath Studio.pptx
Familiarization with UiPath Studio.pptxFamiliarization with UiPath Studio.pptx
Familiarization with UiPath Studio.pptx
ApurbaSamanta9
 
Orchestrator - Practical Approach to host UiPath Orchestrator
Orchestrator - Practical Approach to host UiPath OrchestratorOrchestrator - Practical Approach to host UiPath Orchestrator
Orchestrator - Practical Approach to host UiPath Orchestrator
Vibhor Shrivastava
 
Introduction to UiPath licensing model
Introduction to UiPath licensing modelIntroduction to UiPath licensing model
Introduction to UiPath licensing model
Vibhor Shrivastava
 
UiPath Summer School Session1
UiPath Summer School Session1 UiPath Summer School Session1
UiPath Summer School Session1
Cristina Vidu
 
Automation Hub Best practices - Getting Started.pdf
Automation Hub Best practices - Getting Started.pdfAutomation Hub Best practices - Getting Started.pdf
Automation Hub Best practices - Getting Started.pdf
Cristina Vidu
 
UiPath Community Event - Build more mature automations with Unattended Robots
UiPath Community Event - Build more mature automations with Unattended RobotsUiPath Community Event - Build more mature automations with Unattended Robots
UiPath Community Event - Build more mature automations with Unattended Robots
TomaszGaczynski
 

What's hot (20)

Benefits of REFramework.pdf
Benefits of REFramework.pdfBenefits of REFramework.pdf
Benefits of REFramework.pdf
 
Variables Arguments and control flow_UiPath.ppt
Variables Arguments and control flow_UiPath.pptVariables Arguments and control flow_UiPath.ppt
Variables Arguments and control flow_UiPath.ppt
 
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
 
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
 
Ui path| RPA
Ui path| RPAUi path| RPA
Ui path| RPA
 
UiPath Community_Process Mining.pdf
UiPath Community_Process Mining.pdfUiPath Community_Process Mining.pdf
UiPath Community_Process Mining.pdf
 
UiPath Email Automation | UiPath Tutorial | RPA Training Using UiPath | Edureka
UiPath Email Automation | UiPath Tutorial | RPA Training Using UiPath | EdurekaUiPath Email Automation | UiPath Tutorial | RPA Training Using UiPath | Edureka
UiPath Email Automation | UiPath Tutorial | RPA Training Using UiPath | Edureka
 
UiPath Test Suite
UiPath Test Suite UiPath Test Suite
UiPath Test Suite
 
UiPath Citrix Automation | Image and Text Automation in UiPath | UiPath Train...
UiPath Citrix Automation | Image and Text Automation in UiPath | UiPath Train...UiPath Citrix Automation | Image and Text Automation in UiPath | UiPath Train...
UiPath Citrix Automation | Image and Text Automation in UiPath | UiPath Train...
 
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 23.4 Product Release Updates
UiPath 23.4 Product Release UpdatesUiPath 23.4 Product Release Updates
UiPath 23.4 Product Release Updates
 
End-to-End SAP business process and test automation with UiPath
End-to-End SAP business process and test automation with UiPathEnd-to-End SAP business process and test automation with UiPath
End-to-End SAP business process and test automation with UiPath
 
UiPath Studio Web
UiPath Studio WebUiPath Studio Web
UiPath Studio Web
 
Unlock the Power of UiPath AI Center API
Unlock the Power of UiPath AI Center APIUnlock the Power of UiPath AI Center API
Unlock the Power of UiPath AI Center API
 
Familiarization with UiPath Studio.pptx
Familiarization with UiPath Studio.pptxFamiliarization with UiPath Studio.pptx
Familiarization with UiPath Studio.pptx
 
Orchestrator - Practical Approach to host UiPath Orchestrator
Orchestrator - Practical Approach to host UiPath OrchestratorOrchestrator - Practical Approach to host UiPath Orchestrator
Orchestrator - Practical Approach to host UiPath Orchestrator
 
Introduction to UiPath licensing model
Introduction to UiPath licensing modelIntroduction to UiPath licensing model
Introduction to UiPath licensing model
 
UiPath Summer School Session1
UiPath Summer School Session1 UiPath Summer School Session1
UiPath Summer School Session1
 
Automation Hub Best practices - Getting Started.pdf
Automation Hub Best practices - Getting Started.pdfAutomation Hub Best practices - Getting Started.pdf
Automation Hub Best practices - Getting Started.pdf
 
UiPath Community Event - Build more mature automations with Unattended Robots
UiPath Community Event - Build more mature automations with Unattended RobotsUiPath Community Event - Build more mature automations with Unattended Robots
UiPath Community Event - Build more mature automations with Unattended Robots
 

Similar to Exception Handling in UiPath.pptx

Exception handling in java
Exception handling  in javaException handling  in java
Exception handling in java
Elizabeth alexander
 
Java Exceptions and Exception Handling
 Java  Exceptions and Exception Handling Java  Exceptions and Exception Handling
Java Exceptions and Exception Handling
MaqdamYasir
 
Lecture 1 Try Throw Catch.pptx
Lecture 1 Try Throw Catch.pptxLecture 1 Try Throw Catch.pptx
Lecture 1 Try Throw Catch.pptx
VishuSaini22
 
Exception handling
Exception handlingException handling
Exception handling
Abhishek Pachisia
 
Exception handling
Exception handlingException handling
Exception handling
Minal 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.pptx
sunilsoni446112
 
Exception handling in java
Exception handling in javaException handling in java
Exception handling in java
Kavitha713564
 
Exception handling
Exception handlingException handling
Exception handling
pooja kumari
 
Exception Handling Exception Handling Exception Handling
Exception Handling Exception Handling Exception HandlingException Handling Exception Handling Exception Handling
Exception Handling Exception Handling Exception Handling
AboMohammad10
 
Introduction to java exceptions
Introduction to java exceptionsIntroduction to java exceptions
Introduction to java exceptions
Sujit Kumar
 
Exception handling chapter15
Exception handling chapter15Exception handling chapter15
Exception handling chapter15
Kumar
 
Exception handling in Java
Exception handling in JavaException handling in Java
Exception handling in Java
Ankit 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 all
HayomeTakele
 
UNIT III 2021R.pptx
UNIT III 2021R.pptxUNIT III 2021R.pptx
UNIT III 2021R.pptx
RDeepa9
 
UNIT III 2021R.pptx
UNIT III 2021R.pptxUNIT III 2021R.pptx
UNIT III 2021R.pptx
RDeepa9
 
Chap2 exception handling
Chap2 exception handlingChap2 exception handling
Chap2 exception handling
raksharao
 
Java-Unit 3- Chap2 exception handling
Java-Unit 3- Chap2 exception handlingJava-Unit 3- Chap2 exception handling
Java-Unit 3- Chap2 exception handling
raksharao
 
Maheen oop
Maheen oopMaheen oop
Maheen oop
mahshah212
 
Exception handling
Exception handlingException handling
Exception handling
Karthik Sekar
 
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
AALIM MUHAMMED SALEGH COLLEGE OF ENGINEERING
 

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.pptx
ApurbaSamanta9
 
Debugging in UiPath.pptx
Debugging in UiPath.pptxDebugging in UiPath.pptx
Debugging in UiPath.pptx
ApurbaSamanta9
 
UI Automation with UiPath.pptx
UI Automation with UiPath.pptxUI Automation with UiPath.pptx
UI Automation with UiPath.pptx
ApurbaSamanta9
 
Email Automation.pptx
Email Automation.pptxEmail Automation.pptx
Email Automation.pptx
ApurbaSamanta9
 
Introducing Excel Automation.pptx
Introducing Excel Automation.pptxIntroducing Excel Automation.pptx
Introducing Excel Automation.pptx
ApurbaSamanta9
 
Variables, Arguments & Imports.pptx
Variables, Arguments & Imports.pptxVariables, Arguments & Imports.pptx
Variables, Arguments & Imports.pptx
ApurbaSamanta9
 
Types of Workflow.pptx
Types of Workflow.pptxTypes of Workflow.pptx
Types of Workflow.pptx
ApurbaSamanta9
 
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
ApurbaSamanta9
 

More from ApurbaSamanta9 (8)

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
 
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

SYBCOM SEM III UNIT 1 INTRODUCTION TO ADVERTISING
SYBCOM SEM III UNIT 1 INTRODUCTION TO ADVERTISINGSYBCOM SEM III UNIT 1 INTRODUCTION TO ADVERTISING
SYBCOM SEM III UNIT 1 INTRODUCTION TO ADVERTISING
Dr Vijay Vishwakarma
 
Principles of Roods Approach!!!!!!!.pptx
Principles of Roods Approach!!!!!!!.pptxPrinciples of Roods Approach!!!!!!!.pptx
Principles of Roods Approach!!!!!!!.pptx
ibtesaam huma
 
Views in Odoo - Advanced Views - Pivot View in Odoo 17
Views in Odoo - Advanced Views - Pivot View in Odoo 17Views in Odoo - Advanced Views - Pivot View in Odoo 17
Views in Odoo - Advanced Views - Pivot View in Odoo 17
Celine George
 
The basics of sentences session 10pptx.pptx
The basics of sentences session 10pptx.pptxThe basics of sentences session 10pptx.pptx
The basics of sentences session 10pptx.pptx
heathfieldcps1
 
2024 KWL Back 2 School Summer Conference
2024 KWL Back 2 School Summer Conference2024 KWL Back 2 School Summer Conference
2024 KWL Back 2 School Summer Conference
KlettWorldLanguages
 
AI Risk Management: ISO/IEC 42001, the EU AI Act, and ISO/IEC 23894
AI Risk Management: ISO/IEC 42001, the EU AI Act, and ISO/IEC 23894AI Risk Management: ISO/IEC 42001, the EU AI Act, and ISO/IEC 23894
AI Risk Management: ISO/IEC 42001, the EU AI Act, and ISO/IEC 23894
PECB
 
Credit limit improvement system in odoo 17
Credit limit improvement system in odoo 17Credit limit improvement system in odoo 17
Credit limit improvement system in odoo 17
Celine George
 
Final_SD_Session3_Ferriols, Ador Dionisio, Fajardo.pptx
Final_SD_Session3_Ferriols, Ador Dionisio, Fajardo.pptxFinal_SD_Session3_Ferriols, Ador Dionisio, Fajardo.pptx
Final_SD_Session3_Ferriols, Ador Dionisio, Fajardo.pptx
shimeathdelrosario1
 
Split Shifts From Gantt View in the Odoo 17
Split Shifts From Gantt View in the  Odoo 17Split Shifts From Gantt View in the  Odoo 17
Split Shifts From Gantt View in the Odoo 17
Celine George
 
Lecture_Notes_Unit4_Chapter_8_9_10_RDBMS for the students affiliated by alaga...
Lecture_Notes_Unit4_Chapter_8_9_10_RDBMS for the students affiliated by alaga...Lecture_Notes_Unit4_Chapter_8_9_10_RDBMS for the students affiliated by alaga...
Lecture_Notes_Unit4_Chapter_8_9_10_RDBMS for the students affiliated by alaga...
Murugan Solaiyappan
 
Webinar Innovative assessments for SOcial Emotional Skills
Webinar Innovative assessments for SOcial Emotional SkillsWebinar Innovative assessments for SOcial Emotional Skills
Webinar Innovative assessments for SOcial Emotional Skills
EduSkills OECD
 
Configuring Single Sign-On (SSO) via Identity Management | MuleSoft Mysore Me...
Configuring Single Sign-On (SSO) via Identity Management | MuleSoft Mysore Me...Configuring Single Sign-On (SSO) via Identity Management | MuleSoft Mysore Me...
Configuring Single Sign-On (SSO) via Identity Management | MuleSoft Mysore Me...
MysoreMuleSoftMeetup
 
NAEYC Code of Ethical Conduct Resource Book
NAEYC Code of Ethical Conduct Resource BookNAEYC Code of Ethical Conduct Resource Book
NAEYC Code of Ethical Conduct Resource Book
lakitawilson
 
Book Allied Health Sciences kmu MCQs.docx
Book Allied Health Sciences kmu MCQs.docxBook Allied Health Sciences kmu MCQs.docx
Book Allied Health Sciences kmu MCQs.docx
drtech3715
 
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
marianell3076
 
Bedok NEWater Photostory - COM322 Assessment (Story 2)
Bedok NEWater Photostory - COM322 Assessment (Story 2)Bedok NEWater Photostory - COM322 Assessment (Story 2)
Bedok NEWater Photostory - COM322 Assessment (Story 2)
Liyana Rozaini
 
How to Show Sample Data in Tree and Kanban View in Odoo 17
How to Show Sample Data in Tree and Kanban View in Odoo 17How to Show Sample Data in Tree and Kanban View in Odoo 17
How to Show Sample Data in Tree and Kanban View in Odoo 17
Celine George
 
BRIGADA ESKWELA OPENING PROGRAM KICK OFF.pptx
BRIGADA ESKWELA OPENING PROGRAM KICK OFF.pptxBRIGADA ESKWELA OPENING PROGRAM KICK OFF.pptx
BRIGADA ESKWELA OPENING PROGRAM KICK OFF.pptx
kambal1234567890
 
ENGLISH-7-CURRICULUM MAP- MATATAG CURRICULUM
ENGLISH-7-CURRICULUM MAP- MATATAG CURRICULUMENGLISH-7-CURRICULUM MAP- MATATAG CURRICULUM
ENGLISH-7-CURRICULUM MAP- MATATAG CURRICULUM
HappieMontevirgenCas
 
Unlocking Educational Synergy-DIKSHA & Google Classroom.pptx
Unlocking Educational Synergy-DIKSHA & Google Classroom.pptxUnlocking Educational Synergy-DIKSHA & Google Classroom.pptx
Unlocking Educational Synergy-DIKSHA & Google Classroom.pptx
bipin95
 

Recently uploaded (20)

SYBCOM SEM III UNIT 1 INTRODUCTION TO ADVERTISING
SYBCOM SEM III UNIT 1 INTRODUCTION TO ADVERTISINGSYBCOM SEM III UNIT 1 INTRODUCTION TO ADVERTISING
SYBCOM SEM III UNIT 1 INTRODUCTION TO ADVERTISING
 
Principles of Roods Approach!!!!!!!.pptx
Principles of Roods Approach!!!!!!!.pptxPrinciples of Roods Approach!!!!!!!.pptx
Principles of Roods Approach!!!!!!!.pptx
 
Views in Odoo - Advanced Views - Pivot View in Odoo 17
Views in Odoo - Advanced Views - Pivot View in Odoo 17Views in Odoo - Advanced Views - Pivot View in Odoo 17
Views in Odoo - Advanced Views - Pivot View in Odoo 17
 
The basics of sentences session 10pptx.pptx
The basics of sentences session 10pptx.pptxThe basics of sentences session 10pptx.pptx
The basics of sentences session 10pptx.pptx
 
2024 KWL Back 2 School Summer Conference
2024 KWL Back 2 School Summer Conference2024 KWL Back 2 School Summer Conference
2024 KWL Back 2 School Summer Conference
 
AI Risk Management: ISO/IEC 42001, the EU AI Act, and ISO/IEC 23894
AI Risk Management: ISO/IEC 42001, the EU AI Act, and ISO/IEC 23894AI Risk Management: ISO/IEC 42001, the EU AI Act, and ISO/IEC 23894
AI Risk Management: ISO/IEC 42001, the EU AI Act, and ISO/IEC 23894
 
Credit limit improvement system in odoo 17
Credit limit improvement system in odoo 17Credit limit improvement system in odoo 17
Credit limit improvement system in odoo 17
 
Final_SD_Session3_Ferriols, Ador Dionisio, Fajardo.pptx
Final_SD_Session3_Ferriols, Ador Dionisio, Fajardo.pptxFinal_SD_Session3_Ferriols, Ador Dionisio, Fajardo.pptx
Final_SD_Session3_Ferriols, Ador Dionisio, Fajardo.pptx
 
Split Shifts From Gantt View in the Odoo 17
Split Shifts From Gantt View in the  Odoo 17Split Shifts From Gantt View in the  Odoo 17
Split Shifts From Gantt View in the Odoo 17
 
Lecture_Notes_Unit4_Chapter_8_9_10_RDBMS for the students affiliated by alaga...
Lecture_Notes_Unit4_Chapter_8_9_10_RDBMS for the students affiliated by alaga...Lecture_Notes_Unit4_Chapter_8_9_10_RDBMS for the students affiliated by alaga...
Lecture_Notes_Unit4_Chapter_8_9_10_RDBMS for the students affiliated by alaga...
 
Webinar Innovative assessments for SOcial Emotional Skills
Webinar Innovative assessments for SOcial Emotional SkillsWebinar Innovative assessments for SOcial Emotional Skills
Webinar Innovative assessments for SOcial Emotional Skills
 
Configuring Single Sign-On (SSO) via Identity Management | MuleSoft Mysore Me...
Configuring Single Sign-On (SSO) via Identity Management | MuleSoft Mysore Me...Configuring Single Sign-On (SSO) via Identity Management | MuleSoft Mysore Me...
Configuring Single Sign-On (SSO) via Identity Management | MuleSoft Mysore Me...
 
NAEYC Code of Ethical Conduct Resource Book
NAEYC Code of Ethical Conduct Resource BookNAEYC Code of Ethical Conduct Resource Book
NAEYC Code of Ethical Conduct Resource Book
 
Book Allied Health Sciences kmu MCQs.docx
Book Allied Health Sciences kmu MCQs.docxBook Allied Health Sciences kmu MCQs.docx
Book Allied Health Sciences kmu MCQs.docx
 
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
 
Bedok NEWater Photostory - COM322 Assessment (Story 2)
Bedok NEWater Photostory - COM322 Assessment (Story 2)Bedok NEWater Photostory - COM322 Assessment (Story 2)
Bedok NEWater Photostory - COM322 Assessment (Story 2)
 
How to Show Sample Data in Tree and Kanban View in Odoo 17
How to Show Sample Data in Tree and Kanban View in Odoo 17How to Show Sample Data in Tree and Kanban View in Odoo 17
How to Show Sample Data in Tree and Kanban View in Odoo 17
 
BRIGADA ESKWELA OPENING PROGRAM KICK OFF.pptx
BRIGADA ESKWELA OPENING PROGRAM KICK OFF.pptxBRIGADA ESKWELA OPENING PROGRAM KICK OFF.pptx
BRIGADA ESKWELA OPENING PROGRAM KICK OFF.pptx
 
ENGLISH-7-CURRICULUM MAP- MATATAG CURRICULUM
ENGLISH-7-CURRICULUM MAP- MATATAG CURRICULUMENGLISH-7-CURRICULUM MAP- MATATAG CURRICULUM
ENGLISH-7-CURRICULUM MAP- MATATAG CURRICULUM
 
Unlocking Educational Synergy-DIKSHA & Google Classroom.pptx
Unlocking Educational Synergy-DIKSHA & Google Classroom.pptxUnlocking Educational Synergy-DIKSHA & Google Classroom.pptx
Unlocking Educational Synergy-DIKSHA & Google Classroom.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