12 Replies Latest reply on Mar 12, 2019 6:00 AM by Greinger Longbotton

    ERROR: blcli Job copyJob

    Greinger Longbotton
      Share This:



      I am running the following blcli to copy a Workflow job to another folder:


      blcli_execute WorkflowJob getDBKeyByGroupAndName "${JOB_GROUP}" "${JOB_NAME}"

      blcli_storeenv WFLOW_KEY

      blcli Job copyJob      $WFLOW_KEY      "/New/Parent/Folder"      "New job copied"



      And I am getting the following error:


      Command execution failed. Unexpected exception while handling request.com.bladelogic.om.infra.model.job.workflow.WorkflowJobService_createInstance(com.bladelogic.om.infra.model.job.workflow.WorkflowJob)


      I am using the following blcli documentation:

      Job - copyJob - Documentation for BMC Server Automation Command Line Interface 8.7 - BMC Documentation



      NOTE: With that code I can copy other kind of jobs (NSH script jobs, Deploy Jobs, etc), but not Workflow jobs.

      I am using BladeLogic Server Automation Version: