Forum Discussion
wesantos
Aug 23, 2022Copper Contributor
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"
kalpeshvaghela
Aug 24, 2022Iron Contributor
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
Aug 24, 2022Copper Contributor
Right now, I'm testing using Postman and method is POST
-Payload
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:wor="http://schemas.microsoft.com/sharepoint/soap/workflow/">
<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."