Follow Discord
Sweep 03 Dec 2026 · 19:13Z Build v2.1.336 553 read Stable v2.1.332 Latest v2.1.336 Next v2.1.336 Feeds RSS JSON llms.txt llms-full.txt Unofficial
One change · api

compliance-errors changedmanage-claude/compliance-errors

Nearest release: v2.1.333, published 2 hours before this site recorded the change. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.

Recorded here
Lines+45added
Lines−3removed
From line 36 where the diff opens
First seen 14 Aug 2026 this site's first read of the page
Recorded edits28to this page, all time

### Invalid project filter ### Delete not run

The whole hunk

from line 36, old and new numbered
/
lines
from line 36
3636| [409 Conflict](https://platform.claude.com/docs/en/manage-claude/compliance-errors#409-conflict) | No | The request conflicts with the resource’s current state; resolve the conflict (such as detaching child resources), then retry. |
3737| [429 Too Many Requests](https://platform.claude.com/docs/en/manage-claude/compliance-errors#429-too-many-requests) | Yes, after `retry-after` | Wait the seconds in `retry-after`, then retry; do not advance your cursor. |
3838| [500 Internal Server Error](https://platform.claude.com/docs/en/manage-claude/compliance-errors#500-internal-server-error) | Depends on `x-should-retry` | Check the `x-should-retry` response header before retrying. |
39| [502, 503, 504, 529](https://platform.claude.com/docs/en/manage-claude/compliance-errors#500-internal-server-error) | Yes, with backoff | Transient; retry with exponential backoff. Exception: some local session 503s are not transient. See [Local sessions temporarily unavailable](https://platform.claude.com/docs/en/manage-claude/compliance-errors#local-sessions-temporarily-unavailable). A Security posture 503 can also keep recurring for one organization. See [Errors in the Security posture results reference](https://platform.claude.com/docs/en/manage-claude/compliance-security-posture/results-reference#handle-errors). |
39| [502, 503, 504, 529](https://platform.claude.com/docs/en/manage-claude/compliance-errors#500-internal-server-error) | Yes, with backoff | Transient; retry with exponential backoff. Exception: some local session 503s are not transient. See [Local sessions temporarily unavailable](https://platform.claude.com/docs/en/manage-claude/compliance-errors#local-sessions-temporarily-unavailable). A 503 whose `error.details.error_code` is `deletion_not_run` and that carries `x-should-retry: false` is not transient either. See [Delete not run](https://platform.claude.com/docs/en/manage-claude/compliance-errors#delete-not-run). A Security posture 503 can also keep recurring for one organization. See [Errors in the Security posture results reference](https://platform.claude.com/docs/en/manage-claude/compliance-security-posture/results-reference#handle-errors). |
4040 
4141## 400 Bad Request
4242 
from line 132
132132 
133133For the first body, resend the unmodified `next_page` value from the previous response to the endpoint and session that issued it. For an expired cursor, restart without a `page` parameter; the new walk reflects the retention boundary in effect when it starts, so messages that aged out of the retention period in the meantime are no longer returned (see [Retrieve a local session transcript](https://platform.claude.com/docs/en/manage-claude/compliance-sessions#retrieve-a-local-session-transcript)).
134134 
135### Invalid project filter
136 
137**Type:** `invalid_request_error`
138 
139```text wrap
140project_ids[] holds a value that is not a valid project id.
141```
142 
143```text wrap
144project_ids[] does not take this kind of project yet. Each session names its project in claude_project_id.
145```
146 
147```text wrap
148project_ids[] cannot be combined with user_ids[].
149```
150 
151```text wrap
152project_ids[] requires exactly one organization_ids[] value.
153```
154 
155```text wrap
156The projects in project_ids[] have too many sessions to list by project. Send fewer projects, or list without project_ids[]: each session names its project in claude_project_id.
157```
158 
159**Cause:** `GET /v1/compliance/apps/sessions/remote` was called with a `project_ids[]` filter that it cannot apply. The second body means that a value is the ID of a classic project. The filter takes only the IDs of projects in the new projects experience. The last body means that the named projects together hold more than 5,000 sessions. When the request names one project, the second sentence of that body starts with `List without project_ids[]`.
160 
161**Fix:** Follow the rules in [List a project’s sessions](https://platform.claude.com/docs/en/manage-claude/compliance-sessions#list-a-projects-sessions). For the second body, list without the filter and match on each session’s `claude_project_id`. For the last body, do the same or send fewer projects. The list without the filter leaves out some older sessions, as that section explains.
162 
135163### Invalid file ID
136164 
137165**Type:** `invalid_request_error`
from line 172
144172Invalid claude_file_id format: 'claude_gen_file_01TbR8wAcCeFhJkLnPqStUvX'
145173```
146174 
147**Cause:** The ID in the path is not in the form the endpoint accepts. The generated-file endpoints (`/v1/compliance/apps/chats/generated-files/*`) accept only `claude_gen_file_...` IDs and return the first body for any other value. The file endpoints (`/v1/compliance/apps/chats/files/*`) accept only `claude_file_...` IDs and return the second body. The `generated_files` array on a chat message can hold both `claude_gen_file_...` and `claude_file_...` IDs.
175**Cause:** The ID in the path is not in the form the endpoint accepts. The generated-file endpoints (`/v1/compliance/apps/chats/generated-files/*`) accept only `claude_gen_file_...` IDs and return the first body for any other value. The file endpoints (`/v1/compliance/apps/chats/files/*`) accept only `claude_file_...` IDs and the `claude_proj_file_...` IDs of files in the new projects experience, and return the second body for any other value. The `generated_files` array on a chat message can hold both `claude_gen_file_...` and `claude_file_...` IDs.
148176 
149177**Fix:** Choose the endpoint by the ID’s prefix, not by the array the ID came from; see [Retrieve files and artifacts](https://platform.claude.com/docs/en/manage-claude/compliance-content-data#retrieve-files-and-artifacts). If the prefix already matches the endpoint, the ID was truncated or altered; copy it again from the response that returned it.
150178 
from line 553
525553 
526554A 500 from the Compliance API carries an `x-should-retry: false` response header when the failure is deterministic. The Anthropic SDK honors this header automatically. If you use a generic HTTP retry library that retries on every 5xx, suppress retries when `x-should-retry` is `false`; retrying this error fails identically on every attempt.
527555 
528A 500 without the `x-should-retry: false` header is transient: retry with exponential backoff (start at 1 second, double up to 60 seconds). The same applies to 502, 503, 504, and 529 responses. The exception is a small set of local session 503s, described next, that depend on an organization’s settings or encryption key rather than on load. See [Claude API errors](https://platform.claude.com/docs/en/api/errors) for the platform-wide retry semantics.
556A 500 without the `x-should-retry: false` header is transient: retry with exponential backoff (start at 1 second, double up to 60 seconds). The same applies to 502, 503, 504, and 529 responses. The exception is a small set of local session 503s, described next, that depend on an organization’s settings or encryption key rather than on load. A 503 whose `error.details.error_code` is `deletion_not_run` and that carries `x-should-retry: false` is not transient either. See [Delete not run](https://platform.claude.com/docs/en/manage-claude/compliance-errors#delete-not-run). See [Claude API errors](https://platform.claude.com/docs/en/api/errors) for the platform-wide retry semantics.
529557 
530558### Local sessions temporarily unavailable
531559 
from line 586
558586If any of these conditions recurs across runs, contact your Anthropic representative and include the `request-id` response header. For the customer-managed key case, do this only if the error continues while that key is usable.
559587 
560588For service-wide incidents, check [status.anthropic.com](https://status.anthropic.com).
589 
590### Delete not run
591 
592**Type:** `overloaded_error`
593 
594**Error code:** `deletion_not_run`, returned in `error.details.error_code`
595 
596```text wrap
597The delete was not run, and nothing was deleted.
598```
599 
600**Cause:** `DELETE /v1/compliance/apps/projects/{project_id}` was called on a project in the [new projects experience](https://platform.claude.com/docs/en/manage-claude/compliance-content-data#the-new-projects-experience), or `DELETE /v1/compliance/apps/chats/files/{claude_file_id}` was called on one of its files. These endpoints cannot delete them.
601 
602**Fix:** Do not retry. The response carries `x-should-retry: false`, and a retry returns the same response. If you need the content deleted, contact your Anthropic representative.
561603 
562604## Next steps
563605 
Feedback