# HCA_UPGRADE_NOT_ALLOWED

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

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

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

<ErrorMeta errorClass="HcaError" href="/docs/reference/errors/hca-error" package="@ensforge/hca" />

## What happened [#what-happened]

The upgrade set or the new implementation's `canUpgradeFrom` check does not allow this HCA upgrade.

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

| Title | Message | Action |
| --- | --- | --- |
| Upgrade unavailable | Your ENS account cannot be upgraded to this version. |  |

## 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 |
| --- | --- |
| [`hca.upgrade`](/docs/reference/hca/hca/upgrade) | when a DAO set does not allow it. |

## Catch it [#catch-it]

Check `error instanceof HcaError && error.code === "HCA_UPGRADE_NOT_ALLOWED"`. See [Handle errors](/docs/sdk/handle-errors).