Search code examples
rpauipath

UiPath Orchestrator - Scheduled Jobs Get Stuck In "Pending" State


I have a scheduled UiPath job that keeps getting stuck in the 'pending' state in Orchestrater and never runs. I notice that the Robot has Fatal Alerts saying "#robot [name] disconnected." The temporary fix seems to be to restart the machine the robot is running on. The job then will run.

Are these things related?

Has anyone else experienced this and found a more permanent fix?


Solution

  • I had this exact same problem and asked the very same question in the official UiPath Forums.

    enter image description here

    Replicating the problem

    Here is what I found when I investigated UiPath further:

    • The robot was created as a Studio or Studio Pro robot. This is a problem as support for these types of robots is ending/has ended.
    • The robot would run not just on rebooting the machine, but specifically when disconnecting and reconnecting UiPath Assistant. If I bounced the assistant it would run once and only once, and the successful execution would show in the UiPath Orchestrator jobs window
    • The process would only run if the "Run at startup" toggle was enabled. If the "Run at Startup" toggle was turned off, it would not run at all

    If you can replicate that behavior, then we had the exact same problem.

    How to fix the pending state problem

    Rather than set the robot up as a Studio or StudioPro type, create an unattended UiPath robot. Then, when you go to run the UiPath Orchestrator Process, chose the unattended robot as the execution target. It should run without sticking in the pending state.

    Unattended Robot