Michael_Lowry

U00011050 Cancel/Quit of task not possible because it is not in a cancelable status.

Discussion created by Michael_Lowry on Feb 7, 2018
Latest reply on Feb 8, 2018 by Michael_Lowry
Our automated deployment system includes a step that stops and restarts active schedules (JSCH objects). The program quits active schedules using the QuitTask Java API class. Some schedules are in a status that prevents them from being quit in this way.
Searching for active tasks for object UC0.PROD.TEST#1_3.JSCH
Task found.
Task name/Alias     : UC0.PROD.TEST#1_3.JSCH
Original obj. name  : UC0.PROD.TEST#1_3.JSCH
Run ID              : 323935584
Status              : 1900

Run ID of active instance: 323935584
Stopping active instance, with run ID 323935584.
ERROR: xml request returns message Cancel/Quit of task 'UC0.PROD.TEST#1_3.JSCH' (RunID '0323935584') not possible because it  is not in a cancelable status. (message nr: 11050)
Automation Engine returned message:
U00011050 Cancel/Quit of task 'UC0.PROD.TEST#1_3.JSCH' (RunID '0323935584') not possible because it  is not in a cancelable status.
Message type: E
Message insert: UC0.PROD.TEST#1_3.JSCH|0323935584
As I understand it, the AE returns message U00011050 when one tries to cancel or quit a task that cannot be canceled or quit. (In this case, the task could not be cancelled because it had already completed. Here, the correct course of action would probably be to deactivate the task to remove it from the activity list.)

What task statuses cannot be cancelled? Is the range (or a comprehensive list) documented somewhere?

Outcomes