Automic Workload Automation

 View Only
  • 1.  :DEACTIVATE_UC_OBJECT return code 11161

    Posted Mar 30, 2017 05:36 AM
    I discovered that :DEACTIVATE_UC_OBJECT returns RC 11161 when a task cannot be deactivated because it is still running. Is that what this return means? Are there any other undocumented return codes?

    FWIW, this in in v12.0.1 HF1, and I am using the FORCED option.
    :SET &RUN_ID# = <run_id_of_running_task>
    :SET &RC# = DEACTIVATE_UC_OBJECT(&RUN_ID#,FORCED)
    :PRINT RC: &RC#


  • 2.  :DEACTIVATE_UC_OBJECT return code 11161

    Posted Mar 30, 2017 05:59 AM
    Hi

    Michael A. Lowry



    Your assumption is correct.
    This is documented in the messages page :
    wilb4q1lh38u.pnghttps://us.v-cdn.net/5019921/uploads/editor/yt/wilb4q1lh38u.png" width="864">

    Best regards,
    Antoine



  • 3.  :DEACTIVATE_UC_OBJECT return code 11161

    Posted Mar 30, 2017 06:27 AM
    Thanks, Antoine_Sauteron, for pointing to the documentation of AE message U00011161. Is there any way to get a complete list of all of the possible return codes of a scripting statement or equivalent API call?


  • 4.  :DEACTIVATE_UC_OBJECT return code 11161

    Posted Mar 30, 2017 08:17 AM
    You're welcome

    Michael A. Lowry

    .

    This information belongs to several places in the documentation as you already noticed...
    Maybe requesting a consolidated list would be a good idea ?

    A rather "dirty" way of getting all related messages can be to search directly for "deactivat" string in UC.MSL to cover terms "deactivation", "deactivate" and "deactivated". UC.MSL is the repository file of all messages.
    I did the search and it returned 66 hits, however there are double entries, either because of the 3 display languages (English, German and French) or because the word appears twice on the same line.

    Here is an excerpt :
    00011010EECannot find Workflow '&01' for deactivation.
    00011028EEIt is not possible to deactivate group '&01' because it is not active.
    00011161EECannot deactivate task with RunID '&01', invalid status for deactivation.
    00011163EECannot deactivate task with RunID '&01', this task is not active anymore.
    00011164EECannot deactivate task with RunID '&01', a task within a Workflow cannot be deactivated
    Additionally, you may want to search for difference in messages between 2 versions with the message comparison tool.

    Hope this helps.

    Best regards,
    Antoine



  • 5.  :DEACTIVATE_UC_OBJECT return code 11161

    Posted Mar 30, 2017 09:38 AM

    Antoine_Sauteron: Thanks. That is better than nothing. I opened a new enhancement request about this.

    Complete documentation of return codes 

    When it is accepted for voting, please cast your vote if you like the idea.