---
url: /errors/self_investment_switch_compartment_is_not_self_invested.md
---
# `SELF_INVESTMENT_SWITCH_COMPARTMENT_IS_NOT_SELF_INVESTED`

`SELF_INVESTMENT_SWITCH_COMPARTMENT_IS_NOT_SELF_INVESTED`

## Description

The compartment is not self-invested, so a self-investment switch cannot be created for it.

## HTTP Status

`422 Unprocessable Entity`

## `doc_url` Format

The `doc_url` value is an absolute URL and changes by environment:

`<docs-base-url>/errors/self_investment_switch_compartment_is_not_self_invested`

## Typical Causes

* The compartment was already delegated to a mandate.
* The compartment is not in the self-invested mode expected by the endpoint.
* The caller targeted the wrong compartment.

## Example

Response:

```json
{
  "errors": [
    {
      "code": "SELF_INVESTMENT_SWITCH_COMPARTMENT_IS_NOT_SELF_INVESTED",
      "message": "Compartment '00000000-0000-4000-8000-000000000000' is not self-invested and cannot create a self-investment switch.",
      "doc_url": "https://docs.example.com/errors/self_investment_switch_compartment_is_not_self_invested"
    }
  ]
}
```

## How To Fix

1. Use a self-invested compartment.
2. If the compartment is already delegated, switch it back first.
3. Retry once the compartment mode matches the endpoint.
