Forum Discussion

wesantos's avatar
wesantos
Copper Contributor
Aug 23, 2022

workflow.asmx giving error after starting workflow process

/<site>/_vti_bin/Workflow.asmx is called to start workflow for an item and it finishes as "Cancelled" and error "Coercion Failed: Input cannot be null for this coercion"

  • wesantos 

     

    Please share more details about your issue. Are you using any initiation variables in your workflow if yes then you need to pass it while starting workflow using web service, Could you share input which you are providing to web service method?

    • wesantos's avatar
      wesantos
      Copper Contributor

      kalpeshvaghela 

      Right now, I'm testing using Postman and method is POST

      -Payload

         <soap:Header/>
         <soap:Body>
            <wor:StartWorkflow>
               <wor:item>http://<SPURL>/sites/<site>/<form>/Lists/<list>/6_.000</wor:item>
               <wor:templateId>{workflowId}</wor:templateId>
               <wor:workflowParameters>
                  <root />
               </wor:workflowParameters>
            </wor:StartWorkflow>
         </soap:Body>
      </soap:Envelope>
       
      The workflow starts but terminates as "Cancelled" with that error "Coercion Failed: Input cannot be null for this coercion."
      • kalpeshvaghela's avatar
        kalpeshvaghela
        Steel Contributor

        wesantos 

         

        Do you have any initiation variable in the workflow? if yes then could you share those details with type of variable? because we need to past those value as well.

         

         

        Also share which SharePoint version your are using? and which service method you are using from workflow.asmx service endpoint

Resources