Prevent automation from stopping after Error

Hello,

When using the CV screen scope, once in a while I get this error:

CV Screen Scope ‘dialog Lobby’: Response from server is not valid.
The proble is that the automation stops directly.

How can I try to let the automation continue, or retry, (maybe after a minute) again.

Any help on the error is also welcome.

Thank you for your time!

@joeppiej,

Just use Retry Scope activity and put your retriable code inside it. You can set how many times this should be retried and after how much time interval.

Thanks,
Ashok :slight_smile:

Hello

Please refer to the post below. Is the connectivity stable? The issue only occurs intermittently. If it were a firewall restriction, the error should occur consistently.

image
Possibly is not detecting Proxy Configuration (Log):

[ERROR] [UiPath.Studio.exe] [10] Error performing DetectControls2: System.AggregateException: One or more errors occurred. —> System.AggregateException: One or more errors occurred. —> System.Net.Http.HttpRequestException: An error occurred while sending the request. —> System.Net.WebException: The remote server returned an error: (407) Proxy Authentication Required.

.config files have proxy configurations and all is working well.

Thank you for your advice, I tried to put the code into a retry scope but the automation still stops when encountering the error.

I’m not sure if I set it up correctly:

In the retry scope properties I put “Continue on error” as True, Number of retries 10 and Retry interval 1 minute.

For the code inside the Retry scope, I put both the CV screen scope and the CV extract table “Continue on error” False. Not sure if that is the problem?

Included is a picture of my current set-up:

Thank you for your help!

@joeppiej,

If your execution is getting stopped while debugging in studio, then Enable Continue on Error option in Debug menu.

Thanks,
Ashok :slight_smile:

Hello,

I tried the solution of putting the “Continue on Exception” in the debug options, but it didnt work.

I also tried the restry scope but no succes.

I fixed my internet, which is very stable now (thought that was the problem but errors occur even when internet is stable)

I still get 3 different errors:

Im still looking for solutions to either let the error not happen anymore, OR continue/skip when error happens so the automation keeps running.

Thank you for your help!