marketplace
latest
false
UiPath logo, featuring letters U and I in white
Marketplace User Guide
Last updated Sep 5, 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.