How to avoid 'Handle invalid' error when the system gets locked while the Ui Path script is running in attended mode

Hi All,

How to avoid ‘Handle invalid’ error when the system gets locked or we minimize the screen while the Ui Path script is running in attended mode in Remote desktop? This is needs to be handled as the scripts are end to end and which takes almost 45 mins to complete.

Kindly help, Thanks.

Hi ,

Use Try Catch activity to catch the errors and in catch block you can handle those errors accordingly.

Hello,

In your UiPath script, you can add exception handling and recovery mechanisms to handle the system lock event gracefully.

You can use the “Element Exists” activity to check if a specific element on the screen is visible. If the element is not found, it indicates that the system is locked, and you can perform appropriate actions like logging out or waiting for the system to unlock.

Also you can also disable the automatic lock feature on your computer