---
title: "Schedule required (schedule-required)"
description: "PubNio schedule-required problem, HTTP 422: The TypeScript SDK's schedule.skipToNext finds no queue on the target and none was passed, before any request is sent."
---

> Documentation Index
> Fetch the complete documentation index at: https://pubnio.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Schedule required (schedule-required)

HTTP 422 Schedule required. The TypeScript SDK's `schedule.skipToNext` finds no queue on the target and none was passed, before any request is sent.

## When it happens

Only the TypeScript SDK raises it, as a `PubNioError`, before it sends a request.

## Response body

```json
{
  "type": "https://pubnio.com/docs/problems/schedule-required/",
  "status": 422,
  "title": "Schedule required",
  "detail": "Target 2b4d6f80-1a3c-4e5f-9a7b-0c2d4e6f8a9b on post 7a9c1e3f-5b7d-4f0a-8c2e-4f6a8b0c2d4e is not assigned to a schedule queue.",
  "code": "schedule_required",
  "param": "queueId",
  "nextAction": "Use schedule.change with an explicit scheduledAt to reschedule this target, or pass queueId to assign it to a queue."
}
```

| Field        | Type        | Always present |
| ------------ | ----------- | -------------- |
| `param`      | `"queueId"` | Yes            |
| `nextAction` | string      | Yes            |

## Recovery for agents

- Do what `nextAction` says.
- `param` is the field to change.

## Retryable

No: the SDKs mark HTTP 422 not `retryable`.

## Limits

- Match on `type` or `code`, not on `detail`.

## Related

- [General problems](https://pubnio.com/docs/problems/#general)
- [TypeScript SDK](https://pubnio.com/docs/sdk-typescript/)

Source: https://pubnio.com/docs/problems/schedule-required/index.mdx
