14220: Enqueue: Provided Workflow was not a valid sid
ERROR
This error occurs when <Enqueue> receives a workflowSid value that is not a valid TaskRouter Workflow SID. When you use workflowSid, Twilio creates a TaskRouter Task for the call and routes it with the specified Workflow. Workflow resources use SIDs that start with WW.
- The
workflowSidvalue does not match the format for a TaskRouter Workflow SID. Workflow SIDs start withWWand are 34 characters long. - The value passed in
workflowSidis not the SID of a Workflow resource. This usually means a placeholder value, a friendly name, or a different SID type was passed instead of a Workflow SID. - You intended to enqueue the call into a standard Voice queue, but used
workflowSidinstead of a queue name inside<Enqueue>.
- Update
<Enqueue>to pass a valid Workflow SID inworkflowSid. Use theWW...SID for the Workflow that should route the call. - Verify that the Workflow exists before generating TwiML. Retrieve the Workflow from TaskRouter or copy the SID from the Workflow resource so the value you send is a valid Workflow SID.
- If you want to place the call into a standard Voice queue instead of TaskRouter routing, remove
workflowSidand put the queue name between the opening and closing<Enqueue>tags.