Articles → UiPath → Global Handler In Uipath

Global Handler In Uipath






Purpose





How Many Global Handler Files Can Be Added In The Single Project?





How To Add The Global Handler File?




Picture showing the Global Handler submenu in New menu
Click to Enlarge


Different Activities Inside The Global Handler




  1. LogError
  2. Picture showing the logerror activity in Global Handler
    Click to Enlarge

  3. Choose Next Behavior - Here, we can specify the number of retry whenever error occurs. The "result" argument specifies the behavior of the process when an error occurs
  4. Picture showing the choose next behavior activity in Global Handler
    Click to Enlarge



Example




  1. Add a message box activity inside the global handler and display the value of the "result" argument
  2. Picture showing setting up the retry count
    Click to Enlarge

  3. Execute the "Open Application" activity with the invalid application name. The purpose of writing the invalid application name is to trigger an exception
  4. Picture showing open application activity for opening the invalid application
    Click to Enlarge



Output


Picture showing the error messages when an application encounters an error
Click to Enlarge


Posted By  -  Karan Gupta
 
Posted On  -  Sunday, January 3, 2021

Query/Feedback


Your Email Id  
 
Subject 
 
Query/FeedbackCharacters remaining 250