Skip to main content

Timeout

The Timeout toggle adds a Timeout property to the activity. If the activity does not finish executing within the amount of time specified in this property, an error will be thrown. The default timeout is automatically set to 60000 ms (1 minute).

Activity Creator

docs image

Generated Code

Simple activities with timeouts extend the TimeoutAsyncCodeActivity class, which already contains a Timeout.

using ...
namespace MyCompany.MyProduct.Activities
{
[LocalizedDisplayName(nameof(Resources.Addition_DisplayName))]
[LocalizedDescription(nameof(Resources.Addition_Description))]
public class AdditionWithTimeout : TimeoutAsyncCodeActivity
{
...
}
}

Effect in UiPath Studio

docs image