# NAME_LOCKED

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

What NAME_LOCKED means, why NameStateError throws it, what to show users and how to fix it in ensforge. Also covers retry safety and the actions that throw it.

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

<ErrorMeta errorClass="NameStateError" href="/docs/reference/errors/name-state-error" package="@ensforge/sdk" />

## What happened [#what-happened]

The name is locked.

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

| Title | Message | Action |
| --- | --- | --- |
| Name locked | This name is locked and cannot be changed. |  |

## 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 |
| --- | --- |
| [`migration.migrate`](/docs/reference/sdk/migration/migrate) | when the name is locked. |

## Catch it [#catch-it]

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