Option to retry last activity

Hello all

I couldn’t find any discussions about this in the forum, but if it’s there somewhere feel free to direct me at it :slight_smile:

For a while now i have been running into issues with applications where the click activity would fail to click the element, resulting in error in the process. I’m not saying this is UiPaths fault, as that would require more time for troubleshooting that i have.

However i have found myself more and more reverting to a very basic workaround:
Try the next activity, Catch system.exception, retry (copy paste) last and current activity.

I have started to wonder if this is something the UiPath activities could support as a default option.
What if, just bellow “ContinueOnError”, there was another option called “RetryLastActivityOnErrorOnce”, that, if the current activity errors for any reason, would retry the last and current activity again (once, before throwing the normal exception)?
Obviously it would be false as default, as many activities can’t just be retried as they impact the environment, but it would be a nice feature for flows that just read, or goto somewhere.

I would love to hear the communities feedback on this, and what you guys do in cases like the one i described.

Hello, you might want to have a look at Retry Scope

It can be useful in some scenarios! :slight_smile:


Hi @Konrad,

This is an option when running in Debug mode, I use it frequently when testing. You can also try the Retry Scope, as @Obsev has suggested.