Articles → UiPath → Retry Scope Activity In Uipath

Retry Scope Activity In Uipath






Purpose





Retry Scope




  1. Action → The activity to be executed should be placed here
  2. Condition → Checks the condition that needs to be met
  3. Picture showing the Retry Scope activity with Action and Condition section
    Click to Enlarge




  1. NumberOfRetries → Number of times the "Retry Scope" activity will try to execute the activity
  2. RetryInterval → Specifies the time (in seconds) between the 2 retries

Scenario





Implementation




  1. Drag and drop the "Retry Scope" activity
  2. Specify the "NumberOfRetries" as 3 and "RetryInterval" as 5 seconds in the properties window
  3. Picture showing the properties window of the Retry Scope activity
    Click to Enlarge

  4. In the "Action", drag and drop the "Read Text File" and "Message Box" activities. The purpose of the message box is to display the content of the text file
  5. Picture showing the Read Text File activity inside the Action section of the Retry Scope activity
    Click to Enlarge

  6. In the "Condition", drag and drop the "Element Exists" activity to check if the file exists or not
  7. Picture showing the Element Exists activity in the Condition section of the Retry Scope activity
    Click to Enlarge

  8. Rename the file "karan.txt" to "karan1.txt"
  9. Save and run the bot

Output




Picture showing the text of the file when read using the Retry Scope activity
Click to Enlarge


Posted By  -  Karan Gupta
 
Posted On  -  Tuesday, February 9, 2021

Query/Feedback


Your Email Id
 
Subject
 
Query/FeedbackCharacters remaining 250