# Error codes

Every validation diagnostic and runtime error code, what it means and how to fix it.

Source: https://glamorous-boar.cloudvent.net/error-codes/

---

AgenticMind reports problems with stable `UPPER_SNAKE_CASE` codes. **Diagnostic codes** come from validation (shown in **Problems**, and in `422` responses). **Runtime codes** appear in a failed node's `error.code` (Trace, Inspector → Last run, run records). Diagnostic codes are a public contract and are never renamed or reused.

## Validation diagnostics

| Code | Severity | Meaning | Fix |
|---|---|---|---|
| `IR_INVALID_JSON` | error | Document is not JSON | Check the imported file. |
| `IR_SCHEMA_VIOLATION` | error | Violates the IR schema (`path` points at the field) | Remove unknown fields; fix types. |
| `IR_UNSUPPORTED_VERSION` | error | No migration path to the current IR version | Upgrade AgenticMind. |
| `NODE_UNKNOWN_TYPE` | error | Node type not installed | Install the package, or replace the node. |
| `NODE_UNKNOWN_VERSION` | error | Type installed but not that version (`hint` lists available) | Change the node version or upgrade. |
| `NODE_INCOMPATIBLE_IR` | error | Package does not support this IR version | Upgrade the package. |
| `NODE_ISOLATION_UNAVAILABLE` | error | Trust level requires isolation not provided here | Install as a node package instead. |
| `NODE_NOT_PERMITTED` | error | Plugin package not approved | Node packages → Review & approve. |
| `CONFIG_INVALID` | error | Config fails the node's schema (`path`) | Fix the field shown. |
| `EDGE_UNKNOWN_NODE` | error | Edge references a missing node | Delete the edge. |
| `EDGE_UNKNOWN_PORT` | error | Missing data port or control branch | Reconnect to an existing port. |
| `EDGE_TYPE_MISMATCH` | error | Incompatible port types | Insert **To Text** or **Parse JSON**. |
| `EDGE_INVALID_CONTROL_TARGET` | error | Control edge not targeting `trigger` | Connect branches to `trigger`. |
| `EDGE_SELF_LOOP` | error | Edge connects a node to itself | Use a Loop. |
| `EDGE_DUPLICATE` | warning | Same connection twice | Delete one. |
| `PORT_MISSING_REQUIRED_INPUT` | error | Required input not connected | Connect it. |
| `PORT_CARDINALITY_EXCEEDED` | error | Several edges into a single input | Use Collect or Join, or remove edges. |
| `GRAPH_EMPTY` | warning | No nodes | Add nodes. |
| `GRAPH_DUPLICATE_NODE_ID` / `GRAPH_DUPLICATE_EDGE_ID` | error | Non-unique IDs | Rename (usually from hand-edited IR). |
| `GRAPH_CYCLE` | error | Accidental cycle (`related_node_ids`) | Break it; iterate with Loop / Loop End. |
| `GRAPH_ISOLATED_NODE` | warning | Node with no connections | Connect or delete it. |
| `SECRET_LITERAL_VALUE` | error | A literal value in a secret field | Use a secret name. |
| `SECRET_NOT_PERMITTED` | error | Node references secrets without `credentials` | Use a node version that declares it. |
| `SECRET_NOT_CONFIGURED` | warning | Referenced secret missing from the environment and store | Add it to `.env` or Settings → Secrets. |
| `RUN_TARGET_UNKNOWN` | error | Requested run target is not a node | Pick an existing Output. |
| `LOOP_UNPAIRED` | error | Loop without a Loop End on its `scope` | Connect `scope → scope`. |
| `LOOP_SCOPE_SHARED` | error | One Loop's scope wired to several Loop Ends | One Loop End per Loop. |
| `LOOP_REGION_LEAK` | error | Body value goes outside the loop | Route it through Loop End. |
| `LOOP_OVERLAP` | error | Loops share nodes without nesting | Nest them properly. |
| `SUSPEND_IN_LOOP` | error | A node that can pause is inside a loop | Move Human Approval out of the loop. |

## Runtime errors: engine

| Code | Meaning |
|---|---|
| `NODE_TIMEOUT` | Exceeded its timeout. Raise `execution.timeout_seconds`, or investigate the slow call. |
| `NODE_UNHANDLED_EXCEPTION` | A bug or unexpected input in the node; not retried. Check the message. |
| `NODE_OUTPUT_MISSING` / `NODE_OUTPUT_UNDECLARED` / `NODE_OUTPUT_TYPE_MISMATCH` | Output contract broken (usually a plugin bug). |
| `NODE_INVALID_BRANCH` / `NODE_INVALID_RESULT` | A node activated an undeclared branch or returned an invalid result. |
| `NODE_SUSPEND_UNDECLARED` | A node tried to pause without declaring `can_suspend`. |
| `LOOP_RESULT_NOT_JSON` | A loop iteration produced a non-JSON value. |
| `SECRET_ACCESS_DENIED` | A node tried to read a secret it may not. |
| `ARTIFACT_ACCESS_DENIED` / `ARTIFACT_NOT_FOUND` | File from another project, or deleted. Re-upload and reselect. |
| `STORAGE_UNAVAILABLE` / `STORAGE_INVALID_PATH` | Node storage not available (missing `filesystem`). |

## Runtime errors: API and runs

| Code | Meaning |
|---|---|
| `RUN_INTERRUPTED` | The run stopped mid-node with side effects possible. Resume with `force` once checked. |
| `RUN_RECOVERY_LIMIT` | Recovered too many times (`AGENTICMIND_MAX_RUN_ATTEMPTS`). |
| `RUN_ABORTED`, `RUNTIME_INTERNAL_ERROR` | Server-side failure; see API logs. |
| `CONFIRMATION_REQUIRED` | Project deletion without `?confirm=DELETE`. |
| `METRICS_TOKEN_REQUIRED` | `/api/metrics` needs the bearer token. |
| `API_ENDPOINT_INVALID`, `API_UNKNOWN_OUTPUT` | Export: bad `metadata.api.endpoints`. |

## Model providers

| Code | Meaning and fix |
|---|---|
| `PROVIDER_AUTH_MISSING` | No key: set the secret named in `api_key`. |
| `PROVIDER_AUTH_FAILED` | Wrong or revoked key. |
| `PROVIDER_INSUFFICIENT_CREDITS` | Top up the provider account (OpenRouter credits). |
| `PROVIDER_BAD_REQUEST` | The provider rejected the request: wrong model ID, unsupported parameter, too many tokens. |
| `PROVIDER_UNAVAILABLE`, `PROVIDER_TIMEOUT`, `RATE_LIMITED` | Transient; retried automatically. Persistent: check provider status, slow down, change model. |
| `PROVIDER_REFUSED` | The model refused (Anthropic refusal, Gemini safety block). Rephrase or change model. |
| `PROVIDER_BAD_RESPONSE`, `PROVIDER_ERROR` | Unexpected provider reply. |
| `PROVIDER_UNKNOWN`, `PROVIDER_CONFIG_INVALID` | Unknown provider or missing `base_url`. |
| `MODEL_EMPTY_RESPONSE` | No text came back, usually a reasoning model that spent `max_tokens` thinking. Raise `max_tokens` or lower `reasoning_effort`. |
| `MODEL_OUTPUT_TRUNCATED` | Output hit `max_tokens`. Raise it. |
| `IMAGE_FORMAT_UNSUPPORTED`, `IMAGE_TOO_LARGE`, `TOO_MANY_IMAGES`, `NOT_AN_IMAGE` | Vision inputs: PNG/JPEG/WebP/GIF, ≤ 20 MB, ≤ 16 images. |

## Inputs, text and control

`INPUT_MISSING` (required run input not given and no default), `INPUT_TYPE_MISMATCH`, `TEMPLATE_MISSING_VARIABLE` (strict template), `JSON_PATH_NOT_FOUND`, `CONVERSION_FAILED`, `TEXT_EMPTY`, `CONDITION_TYPE_ERROR`, `CONDITION_UNKNOWN_OPERATOR`, `ROUTER_INVALID_REGEX`, `ROUTE_UNKNOWN`, `JOIN_INCOMPLETE`, `JOIN_MERGE_NOT_OBJECT`, `LOOP_ITEMS_MISSING`, `LOOP_ITEMS_INVALID`, `LOOP_TOO_MANY_ITEMS`, `LOOP_ITEM_TYPE_MISMATCH`, `LOOP_STATE_TYPE_MISMATCH`, `LOOP_END_STANDALONE`, `APPROVAL_INVALID_RESPONSE`, `CODE_FAILED`.

## Documents and RAG

| Code | Meaning and fix |
|---|---|
| `NO_FILES` | Document Loader has no files selected. |
| `NO_TEXT_EXTRACTED` | No text found (scanned PDF with `ocr: off`, or an empty file). Turn OCR on. |
| `PARSE_FAILED`, `PARSE_ENCRYPTED`, `PARSE_UNSUPPORTED` | Corrupt, password-protected or unsupported file. |
| `ARTIFACT_TYPE_NOT_ALLOWED`, `ARTIFACT_TOO_LARGE`, `ARTIFACT_EMPTY` | Upload rejected. |
| `DOCUMENTS_INVALID`, `DUPLICATE_DOCUMENT_IDS` | Malformed documents on a port. |
| `EMBEDDING_DIMENSION_MISMATCH` | Collection built with another model size. Set `recreate` on Index Documents. |
| `EMBEDDING_MODEL_MISMATCH` | Query model differs from the indexing model. Use the same Embedding Model node. |
| `EMBEDDING_MODEL_UNKNOWN`, `EMBEDDING_MODEL_LOAD_FAILED` | Model name wrong or download failed (check network/disk). |
| `COLLECTION_NOT_FOUND` | Run ingestion (**Run → Index report**) first. |
| `KEYWORD_INDEX_NOT_FOUND`, `KEYWORD_INDEX_ERROR` | Re-run ingestion with `keyword_index` on. |
| `STORE_UNAVAILABLE`, `STORE_AUTH_FAILED`, `STORE_NOT_INSTALLED`, `STORE_CONFIG_INVALID`, `STORE_REQUEST_FAILED`, `STORE_WRITE_FAILED`, `STORE_UNSUPPORTED`, `STORE_UNKNOWN` | Vector store connection, credentials or configuration. |
| `RERANK_MODEL_UNKNOWN`, `RERANK_MODEL_LOAD_FAILED`, `RERANK_PROVIDER_UNKNOWN` | Reranker model problem. |
| `QUERY_EMPTY` | Empty question. |
| `CITATIONS_MISSING` | `require_citations` on and the answer cited nothing valid. |
| `S3_ACCESS_DENIED`, `S3_NOT_FOUND`, `S3_NO_CREDENTIALS`, `S3_ENDPOINT_BLOCKED`, `S3_OBJECT_TOO_LARGE`, `S3_CONFIG_INVALID`, `S3_DRIVER_MISSING`, `S3_UNAVAILABLE`, `S3_ERROR` | S3 Loader. |

## Agents, tools and reasoning

| Code | Meaning |
|---|---|
| `AGENT_LIMIT_REACHED` | Hit `max_turns`, `max_tool_calls`, `token_budget` or `cost_budget_usd`. Raise limits or use `on_limit: return_partial`. |
| `AGENT_HISTORY_INVALID` | `history` is not a list of `{role, content}`. |
| `DUPLICATE_TOOL_NAME`, `NO_TOOLS` | Rename a tool (`name`) / connect tools. |
| `TOOL_UNKNOWN`, `TOOL_FAILED` | Unknown tool or failed tool (usually returned to the model rather than failing the node). |
| `TOOL_PERMISSION_DENIED` | The tool needs a permission the Agent version lacks (e.g. `subprocess` for MCP stdio or Code Interpreter): use Agent 1.2.0. |
| `TOOL_ROUTE_FAILED`, `TOOL_CHAIN_FAILED` | Tool Router / Tool Chain failures. |
| `PLAN_INVALID`, `PLAN_EMPTY`, `PLAN_EMPTY_GOAL` | Planner output problems. |
| `REASONING_BUDGET`, `PROGRAM_INVALID` | Reasoning node budget or program-of-thought errors. |
| `MCP_CONNECTION_FAILED`, `MCP_NO_TOOLS`, `MCP_TOOL_UNKNOWN`, `MCP_TOOL_ERROR`, `MCP_ARGUMENTS_INVALID` | MCP client. |
| `MEMORY_UNAVAILABLE`, `MEMORY_INVALID_KEY`, `MEMORY_EMPTY`, `MEMORY_TOO_LONG` | Memory nodes. |

## Guardrails and code

`INPUT_BLOCKED`, `OUTPUT_BLOCKED` (with `on_block: fail`), `GUARD_JUDGE_INVALID`; `SANDBOX_DISABLED`, `SANDBOX_UNAVAILABLE` (start Docker or set `AGENTICMIND_SANDBOX=process`), `SANDBOX_IMAGE_UNAVAILABLE`, `SANDBOX_NETWORK_NOT_ALLOWED`, `SANDBOX_INPUT_TOO_LARGE`, `SANDBOX_MISCONFIGURED`.

## Databases and Auto Ontology

`SQL_EMPTY`, `SQL_PARSE_ERROR`, `SQL_MULTIPLE_STATEMENTS`, `SQL_NOT_READ_ONLY`, `SQL_FUNCTION_DENIED`, `SQL_UNKNOWN_TABLE`, `SQL_TABLE_NOT_ALLOWED`, `SQL_TIMEOUT`, `SQL_EXECUTION_ERROR`, `DATABASE_NOT_CONFIGURED`, `DATABASE_INVALID_FILE`, `DATABASE_UNAVAILABLE`, `DATABASE_AUTH_FAILED`, `DATABASE_DRIVER_MISSING`, `TABLE_NOT_FOUND`, `NL_TO_SQL_FAILED`, `QUESTION_EMPTY`; `ONTOLOGY_NOT_CONFIGURED`, `ONTOLOGY_UNREACHABLE`, `ONTOLOGY_UNAVAILABLE`, `ONTOLOGY_TIMEOUT`, `ONTOLOGY_UNAUTHORIZED`, `ONTOLOGY_FORBIDDEN`, `ONTOLOGY_NOT_FOUND`, `ONTOLOGY_TERM_NOT_FOUND`, `ONTOLOGY_NOT_READY`, `ONTOLOGY_BUSY`, `ONTOLOGY_ANSWER_FAILED`, `ONTOLOGY_API_ERROR`.

## Node packages

`PLUGIN_NOT_A_WHEEL`, `PLUGIN_UNSAFE_ARCHIVE`, `PLUGIN_RESERVED_NAME`, `PLUGIN_RESERVED_NAMESPACE`, `PLUGIN_NODE_CONFLICT`, `PLUGIN_NO_NODES`, `PLUGIN_INSTALL_FAILED`, `PLUGIN_DESCRIBE_FAILED` (install); `PLUGIN_CRASHED`, `PLUGIN_TIMEOUT`, `PLUGIN_OUTPUT_NOT_JSON`, `PLUGIN_PROTOCOL`, `PLUGIN_NETWORK_DENIED`, `PLUGIN_NODE_MISSING`, `PLUGIN_ERROR` (run).

## GitHub

`GIT_TOKEN_MISSING`, `GIT_AUTH_FAILED`, `GIT_FORBIDDEN`, `GIT_NOT_FOUND`, `GIT_NOT_LINKED`, `GIT_LINK_INVALID`, `GIT_REPO_INVALID`, `GIT_REMOTE_CHANGED` (pull first or push with force), `GIT_BRANCH_MOVED` (retry), `GIT_NOTHING_TO_PUSH`, `GIT_RATE_LIMITED`, `GIT_FILE_TOO_LARGE`, `GIT_SHA_INVALID`, `GIT_NOT_A_FILE`, `GIT_INVALID_PROJECT`, `GIT_REQUEST_FAILED`, `GIT_UNAVAILABLE`.

## Secrets

`SECRET_NAME_INVALID`, `SECRET_NOT_FOUND`, `SECRET_VALUE_EMPTY`, `SECRET_VALUE_TOO_LARGE` (Settings → Secrets).
