# 24002: Invalid operation

Log Type: TWILIO

Log Level: ERROR

## Description

The requested operation is not allowed on this resource due to business logic constraints. The resource exists, the request is well-formed, but the specific action cannot be performed in the resource's current state or configuration.

### Possible causes

* You attempted to modify a resource that is locked, archived, or in a transitional state (for example, updating an audience while a snapshot is being computed).
* The account has reached the maximum number of allowed audiences, and you attempted to create another one.
* You attempted a write operation on a resource that is currently being processed by an asynchronous operation.

### Possible solutions

* Use a `GET` request to inspect the resource's current state before retrying the operation. The `detail` field in the error response explains why the operation was rejected.
* If the resource is being processed by an async operation, poll the associated operation endpoint (`GET /preview/Operations/{operationId}`) until it completes, then retry.
* If you have reached a resource limit, delete unused resources or contact support to discuss limit increases.

#### Additional resources

* [Audiences API reference](/docs/segment/audiences/api)
