---
"@context": https://schema.org
"@type": TechArticle
"@id": https://www.twilio.com/docs/api/errors/40152#article
headline: "40152: Invalid Queue for Known Worker"
url: https://www.twilio.com/docs/api/errors/40152
inLanguage: en
dateModified: 2026-03-11T20:01:16.000Z
author:
  "@type": Organization
  name: Twilio Developer Education Team
publisher:
  "@type": Organization
  name: Twilio
---

# 40152: Invalid Queue for Known Worker

Log Type: APPLICATION

Log Level: ERROR

## Description

Worker isn't part of the queue specified in the Workflow target for re-targeted Task.

### Possible causes

The Worker targeted by the Known Worker Routing feature is not a member of the TaskQueue referenced in the Workflow Target

### Possible solutions

Ensure the Worker is a member of the TaskQueue referenced in the Workflow Target. Find out more about the Known Worker Routing feature here: https://www.twilio.com/docs/taskrouter/workflow-configuration/known-agent-routing
