The return code of CANCEL_UC_OBJECT is different than documented if the task is not in a cancelable status.
book
Article ID: 145906
calendar_today
Updated On:
Products
CA Automic Workload Automation - Automation Engine
Issue/Introduction
The documentation (https://docs.automic.com/documentation/webhelp/english/ALL/components/DOCU/12.2/AWA%20Guides/help.htm#Script/Reference/CANCEL_UC_OBJECT.htm) states: "Return Codes The script function returns the following codes: [...] 11050 Task has a status that cannot be canceled [...]"
When trying to cancel a SCRI in status "Generating" (1572) the following return code / message is generated
U00020887 Runtime error in object 'TEST.CANCEL' Line '00005': Cancel of task 'TEST.CANCEL' (RunID '0001716067') not possible because it is not in a cancelable status.