# PLAN_CHAIN_MISMATCH

> For the complete documentation index, see [llms.txt](https://ensforge.com/llms.txt).

What PLAN_CHAIN_MISMATCH means, why PlanError throws it, what to show users and how to fix it in ensforge. Also covers retry safety.

Source: https://ensforge.com/docs/reference/errors/PLAN_CHAIN_MISMATCH

<ErrorMeta errorClass="PlanError" href="/docs/reference/errors/plan-error" package="@ensforge/sdk" />

## What happened [#what-happened]

The plan was prepared for another chain.

## What to show users [#what-to-show-users]

| Title | Message | Action |
| --- | --- | --- |
| Wrong network | This was prepared for a different network. |  |

## Retry safety [#retry-safety]

Retrying the same call fails the same way until the cause is fixed (`retryable: false`).

## Actions that throw it [#actions-that-throw-it]

| Action | When |
| --- | --- |
| [`plan.resume`](/docs/reference/sdk/plan/resume) | when the plan cannot continue here. |
| [`plan.send`](/docs/reference/sdk/plan/send) | for a plan prepared elsewhere. |

## Catch it [#catch-it]

`Errors.hasCode("PLAN_CHAIN_MISMATCH")` narrows to this error. See [Handle errors](/docs/sdk/handle-errors).