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"
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."
kalpeshvaghela
Aug 24, 2022Iron Contributor
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
- wesantosAug 24, 2022Copper Contributor