Marketplace
latest
false
Banner background image
Marketplace User Guide
Last updated Apr 16, 2024

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



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
    {
      ...
    }
}using ...
namespace MyCompany.MyProduct.Activities
{
    [LocalizedDisplayName(nameof(Resources.Addition_DisplayName))]
    [LocalizedDescription(nameof(Resources.Addition_Description))]
    public class AdditionWithTimeout : TimeoutAsyncCodeActivity
    {
      ...
    }
}

Effect in UiPath Studio



Was this page helpful?

Get The Help You Need
Learning RPA - Automation Courses
UiPath Community Forum
Uipath Logo White
Trust and Security
© 2005-2024 UiPath. All rights reserved.