Pre-General Availability: 2024-09-02

Robot Action Takes a Long Time

When a robot action always takes longer than expected, a fixed time validation might be to blame.

Issue

A robot runs slower than expected, and the same action always takes longer than expected.

Why It Happens

The action might have validation that includes a mandatory wait time.

What To Do

Step 1. Identify the action that is taking a long time

  1. Open the project that contains the slow-running robot.

  2. Select the Observe tab.

  3. Select the Robot instances tab.

  4. In the list of robot instances, find a recent instance of the robot.

  5. Point to the robot instance, and select View details View details icon.

    The Activity stream opens for the robot instance.

  6. Review the timestamp for each action, and determine the action that is taking longer than expected.

    Boxes highlight the timestamps in the activity stream

Note:

If the robot started later than expected, the environments that it runs on might have been busy running other robots. Ensure that you have dedicated enough environments for your robots. For guidance on processing bulk data, see Processing Bulk Data Best Practices.

Step 2. Determine whether the action has any validation

  1. Open the project that contains the slow-running robot.

  2. Open the robot.

  3. Double-click the action that you identified from the activity stream.

  4. In the panel for the action, select the Pre Validate tab.

  5. If a page state is selected in Page state drop-down, review its validation.

    1. Above the Page state drop-down list, select Edit Edit icon.

    2. From the Conditions list, select a validation condition to review, and select EditEdit icon.

    3. Review the selection for the Strategy drop-down list.

      • If Fixed Time is selected, the validation includes a mandatory wait time.

        The mandatory wait time is likely the cause of the slow-running robot.

      • If Element is selected, the validation waits up to a specific amount of time for an element to be visible or enabled.

        If the application that the robot works in experiences performance issues, this validation is doing its job: allowing the robot to wait until a UI element is visible before it proceeds.