Forum Discussion
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"
- wesantosCopper ContributorDoes anyone have an idea?
- kalpeshvaghelaSteel 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?
- wesantosCopper 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."- kalpeshvaghelaSteel 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