Cannot remove unsued robot from Orchestrator

robot
p_qa
remove

#1

Hi all,

I’m currently having problems with removing an unused robot from Orchestrator 2018.1.1. I keep getting the message “This robot has pending or running jobs and cannot be deleted.”

I’m pretty sure I have removed all references to that robot from Scheduled, Packages, Queses and Environments. As far as I can see there should be no dependencies - certainly no running or pending jobs (the robot has been dormand for 21 days).

I tried to rename the robot and then delete it. No effect.
Then I restarted the IIS, thinking this would clear the cache and re-load everything from fresh - but to no effect.
Ultimately, I have powered down the whole installation (IIS + DB). When it came back up nothing had changed.

What else can I do?

I am very much tempted to go into the database and mark the particular robot as Deleted = True. But I think it is probably more complicated than that, and its definitely NOT the right way.

Best regards
/Klaus


#2

Hi @KlausA: Can you please double check the Jobs page, are there any processes still in pending state? Also maybe look at the System tray if the robot is connected and try to disconnect the robot from there.


#3

Hi @KlausA

  1. backing up what @PD2 said.
  2. what is the Robot’s status? Only if the Robot is Busy it cannot be deleted.

#4

Hi you two,

first off - as stated initially, the robot is totally off line: no jobs, no resources, no queues thus no dependencies what I can see/look up in ORCH. It was taken down after a couple of test runs. Since that was some time ago I wanted to re-used the robot license.

PD2 - you gave me an idea which eventually solved my problem. I re-enabled the robot and suddenly its status changed to “running with problems”. It terminated with an error saying that the process did not finish. It was the process mentioned above. Naturally, it no longer existed since it was cancelled and removed from ORCH weeks ago. And to pre-empt your question: yes, I did stop the process and removed the schedule before I took down the robot. Everything looked fine.

As it turned out, there was a process currently “under execution” which prevented me from deleting the robot. After re-enabbling the robot and clearing the schedule, ORCH was satisfied and let me delete the robot.

It makes sense not to delete the robot before any processes are done.

However, in this particular case, I removed any references to the process. Furthermore a couple of weeks went by (with at least two restarts of the server) before I wanted to delete the robot - and I could not see anywhere in ORCH or in the DB that there was “unfinished” business. That was what threw me off…

I hope others can benefit from this work around if the encounter an undeletable robot :slight_smile:

Best regards
/Klaus