WORKFLOW: Powershell script to execute a WF. It works but returns an error message

Last post 02-07-2019, 8:15 AM by kloganathan. 1 replies.
Sort Posts: Previous Next
  • WORKFLOW: Powershell script to execute a WF. It works but returns an error message
    Posted: 02-06-2019, 4:13 PM



    I am running a Powershell script to execute a WF on the Commserve. The WF works (runs on the CS) but returns a Error 0x10c which is from the Commserve. I have tried putting a delay between login and running the WF, but still the same issue.


    Anything to try or any ideas?



    //Part of Powershell script

    login as single sign on and run workflow

      # Login
    qlogin sso

        # Execute Workflow
        $workflow_output = & $commvault_qoperation_location execute -af $commvault_workflow_location -workflowName Install_SP_and_Hotfixes -workflowJobOptions "<inputs><ClientName>$servername</ClientName></inputs>"

        # Get JobID from execution
        [xml]$workflow_output_xml = $workflow_output
        $workflow_job_id = $workflow_output_xml.TMMsg_CreateTaskResp.jobIds.val
        write-host "Executed commvault job $workflow_job_id"
        write-host $workflow_output


    //Error output


    D:\Program Files\Commvault\ContentStore\Base
    User logged in successfully.
    qoperation.exe : execute: Error 0x10c: Could not start workflow job. Please refer to logs for more details
    At D:\Execute Commvault\CommVault Integration1.ps1:39 char:25
    +     $workflow_output = & <<<<  $commvault_qoperation_location execute -af $commvault_workflow_location -workflowName Install_SP_and_Hotfixes -workflowJobOptions "<inputs><ClientName>$servername</ClientName></inputs>"
        + CategoryInfo          : NotSpecified: (execute: Error ...or more details:String) [], RemoteException
        + FullyQualifiedErrorId : NativeCommandError

  • Re: WORKFLOW: Powershell script to execute a WF. It works but returns an error message
    Posted: 02-07-2019, 8:15 AM

    Any errors in logs. It works from command prompt?

The content of the forums, threads and posts reflects the thoughts and opinions of each author, and does not represent the thoughts, opinions, plans or strategies of Commvault Systems, Inc. ("Commvault") and Commvault undertakes no obligation to update, correct or modify any statements made in this forum. Any and all third party links, statements, comments, or feedback posted to, or otherwise provided by this forum, thread or post are not affiliated with, nor endorsed by, Commvault.
Commvault, Commvault and logo, the “CV” logo, Commvault Systems, Solving Forward, SIM, Singular Information Management, Simpana, Commvault Galaxy, Unified Data Management, QiNetix, Quick Recovery, QR, CommNet, GridStor, Vault Tracker, InnerVault, QuickSnap, QSnap, Recovery Director, CommServe, CommCell, SnapProtect, ROMS, and CommValue, are trademarks or registered trademarks of Commvault Systems, Inc. All other third party brands, products, service names, trademarks, or registered service marks are the property of and used to identify the products or services of their respective owners. All specifications are subject to change without notice.
Copyright © 2020 Commvault | All Rights Reserved. | Legal | Privacy Policy