---
"@context": https://schema.org
"@type": TechArticle
"@id": https://www.twilio.com/docs/api/errors/14220#article
headline: "14220: Enqueue: Provided Workflow was not a valid sid"
url: https://www.twilio.com/docs/api/errors/14220
inLanguage: en
dateModified: 2026-06-09T11:00:42.000Z
author:
  "@type": Organization
  name: Twilio Developer Education Team
publisher:
  "@type": Organization
  name: Twilio
---

# 14220: Enqueue: Provided Workflow was not a valid sid

Log Level: ERROR

## Description

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`.

### Possible causes

* The `workflowSid` value does not match the format for a TaskRouter Workflow SID. Workflow SIDs start with `WW` and are 34 characters long.
* The value passed in `workflowSid` is 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 `workflowSid` instead of a queue name inside `<Enqueue>`.

### Possible solutions

* Update `<Enqueue>` to pass a valid Workflow SID in `workflowSid`. Use the `WW...` 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 `workflowSid` and put the queue name between the opening and closing `<Enqueue>` tags.

#### Additional resources

* [TwiML `<Enqueue>`](/docs/voice/twiml/enqueue)
* [Queueing Twilio calls with TaskRouter](/docs/taskrouter/twiml-queue-calls)
* [Workflow Resource](/docs/taskrouter/api/workflow)
