Articles → UiPath → Retry Scope Activity In Uipath
Retry Scope Activity In Uipath
Purpose
Retry Scope
- Action → The activity to be executed should be placed here
- Condition → Checks the condition that needs to be met
Click to Enlarge
- NumberOfRetries → Number of times the "Retry Scope" activity will try to execute the activity
- RetryInterval → Specifies the time (in seconds) between the 2 retries
Scenario
Implementation
- Drag and drop the "Retry Scope" activity
- Specify the "NumberOfRetries" as 3 and "RetryInterval" as 5 seconds in the properties window
Click to Enlarge
- 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
Click to Enlarge
- In the "Condition", drag and drop the "Element Exists" activity to check if the file exists or not
Click to Enlarge
- Rename the file "karan.txt" to "karan1.txt"
- Save and run the bot
Output
Click to Enlarge