Automic Workload Automation

 View Only

Discovery regarding promptsets and JSCH objects

  • 1.  Discovery regarding promptsets and JSCH objects

    Posted Jun 18, 2021 06:49 PM
    Edited by Pete Wirfs Jun 18, 2021 06:53 PM
    Just another "generate at ?" GOTCHA to be aware of.

    The JSCH object that activates an object with "generate at runtime" needs to still be active when that object starts running so the JSCH can provision the tasks promptset variables.  Otherwise the task will try to run without any promptset variables, and crashes with "variable *** has not yet been defined".

    Solution is to change the task to "generate at activation".

    This bit us on a production workflow that launched on day#1, was delayed by a sync.wait until the next business day, and then crashed when it finally tried to run on day#2.

    If you really need it to resolve variables at runtime, then wrap the task inside of a new workflow and execute that instead.

    ------------------------------
    Pete Wirfs
    SAIF Corporation
    Salem Oregon USA
    ------------------------------