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
400 Bad Request
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
- Use a self-invested compartment.
- If the compartment is already delegated, switch it back first.
- Retry once the compartment mode matches the endpoint.