# processing_complexity_exceeded

> The text needs more work than its length allows: more candidate matches or matched characters than the per-character bounds in /v1/access, coreference matching work beyond its per-character bound (for example one name nested inside itself thousands of times), or more time for the organisation rules than their limit, which grows with the text and the number of rules. The bounds grow with the text, so splitting it rarely helps. Nothing partial is returned.

HTTP status: 413

## What to do

Check the text for long repetitive patterns, or ask your organisation's administrator to simplify its rules. Splitting the text rarely helps.

## Example

```json
{
  "error": "processing_complexity_exceeded",
  "request_id": "0f8e2c4a-6b1d-4e3f-9a7c-5d2b8e1f4a60",
  "doc_url": "https://developers.komplai.dk/errors/processing_complexity_exceeded"
}
```

## Operations that can return it

- POST /v1/redact (https://developers.komplai.dk/reference/redact.md)
- POST /v1/redact/file (https://developers.komplai.dk/reference/redact.md)

A text job can also end with this code: its status carries it in the field error.

---

https://developers.komplai.dk/errors/processing_complexity_exceeded
