Skip to content

Reference

Diagnostic codes

Every error, warning and info code that workflow and workspace source report, grouped by where it comes from.

Every finding that check, status and apply print has a code. The first letter is its severity: E_ is an error, W_ a warning and I_ information. An error refuses the apply and makes check exit 1. A warning is reported and the apply saves the source as written, except where a row below says the apply refuses it as the matching E_APPLY_… error. Information never blocks anything.

A finding prints as file:line:column with the code around it and a hint; in --output json it is an entry of diagnostics (see Scripting for the shape). The codes are frozen at release, so a script can match on them.

Workflow source

Compile and print

Reading and writing workflow.ts.

CodeMeaning
E_SYNTAXBabel could not parse the file.
E_INVALID_CHARACTERA NUL or an unpaired UTF-16 surrogate, raw or escaped in a string, in the file or a code file: a workflow cannot store either.
E_NUMBER_NOT_FINITEA number literal too large to store (1e999 reads as Infinity).
W_NUMBER_PRECISIONA number literal whose digits a number cannot hold; write it as a string.
E_SDK_HEADERLine 1 is not // @sim-sdk N.
E_SDK_MAJORThe header's major is not the one the server reads.
E_UNSUPPORTED_SYNTAXA construct outside this grammar; the hint names the supported form.
E_WORKFLOW_EXPORTNot exactly one export default workflow(…).
E_LIMIT_EXCEEDEDOver the block, edge, total-byte, depth or codeFile() reference cap (SOURCE_LIMITS). Apply answers 413.
E_TOO_MANY_ERRORSThe compile stopped after 100 errors; fix those and compile again to see the rest.
I_FINDINGS_TRUNCATED100 warnings, or 20 of one code, were listed and the rest omitted, so a flood of one finding never hides another. A finding repeated at the same place is listed once. Infos are capped apart (100, the rest dropped), so they never displace a warning, and errors are never displaced by either. An answer that merges findings from several stages is capped the same way as a whole; when that cuts it, it ends in one I_FINDINGS_TRUNCATED counting what it left out, in place of the stages' own.
E_DUPLICATE_NAMETwo blocks normalize to one key.
E_RESERVED_NAMEA block name normalizes to loop, parallel or variable.
E_KEY_OVERRIDEA meta.key that is not a legacy key the stored workflow already has.
E_EMPTY_NAMEAn empty block name.
E_NAME_NOT_LITERALA block or workflow name that is not a string literal.
E_LOOKALIKE_NAMETwo block names whose keys differ only by Unicode normalization (NFC vs NFD), or a block name with a word that mixes Latin letters with Cyrillic, Greek, Armenian or Cherokee ones (Сlaude); the message names the code point.
W_LOOKALIKE_NAMEA look-alike pair the stored workflow already holds, kept so it round-trips.
W_SUSPICIOUS_CHARACTERA block or workflow name holds a bidi control or zero-width character.
E_UNKNOWN_IDENTIFIERAn identifier that names nothing in scope; the hint has a did-you-mean, says to write the value for a const refused for holding one, and points process.env at env.NAME.
E_OUT_OF_SCOPEA ref or wiring into a sibling subflow's child.
E_UNKNOWN_VARIABLEvars.x names no declared variable.
E_DUPLICATE_VARIABLETwo variables with one key.
E_VARIABLE_NAME_MISMATCHA variable's name does not normalize to its key.
E_INVALID_ENV_NAMEenv.X with an invalid name.
W_ENV_UNKNOWNenv.X, or a code file $env, naming a variable the workspace does not hold (checked only when the env names are known); the hint has a did-you-mean. An offline check in a workspace directory knows only the names secrets.ts declares, so there the finding says secrets.ts does not declare it, and the hint points there.
W_CHILD_INPUT_UNKNOWNA child workflow call's inputMapping sets an input the child's Start trigger does not declare (sim workspaces source check, with the child in the same directory); the hint names the nearest input.
W_CHILD_NO_STARTA child workflow call names a workflow of the same directory that has no Start trigger (sim workspaces source check).
W_CHILD_RESULT_PATHA reference to a child workflow call's result.<key> whose child (in the same directory) ends at a Response block on every run, where <key> is not data, status or headers: the child's result is its Response output, so the path reads nothing (sim workspaces source check); the hint names result.data.<key>. The dry run reports the same reference as a W_APPLY_LINT warning.
E_UNKNOWN_SUBFLOW_PROPERTYp.<prop> that a loop or parallel does not have.
W_FORWARD_REFA ref to a block declared later; it resolves.
W_REF_NOT_NORMALIZEDHand-written <Name.path> text that is not in key form.
E_REF_UNREPRESENTABLEA reference to a block whose key holds a character a reference cannot carry (Q&A, x>y); rename the block.
E_EDGE_SCOPEAn edge across subflow scopes.
E_EDGE_NOTEAn edge to or from a note.
E_TARGET_TRIGGERAn edge into a trigger.
E_NO_DEFAULT_OUTPUT.to() on a condition or router; wire a branch.
E_DUPLICATE_EDGEThe same edge twice.
E_ERROR_PORT_UNSUPPORTEDonError on a block with no error port.
W_ERROR_PORT_STOREDonError on a block with no error port (a loop or parallel) that the stored workflow already wires; kept so it round-trips. An offline check, which cannot read the stored workflow, reports it for any such edge between two blocks the lock binds: an apply keeps it only if the stored workflow holds it.
E_UNKNOWN_BRANCHx.key.to() where key is not a branch of x.
E_DUPLICATE_BRANCH_KEYTwo rows with one key.
E_BRANCH_KEY_COLLIDESA branch key equal to an output name, to or onError.
E_BRANCH_ELSE_LASTTwo or more condition rows that do not end with else.
W_RAW_HANDLEedge() with a handle kept verbatim.
W_SUBFLOW_HANDLE_SCOPEedge() from a loop or parallel's start handle to a block outside it (the executor runs it as the container's exit), or from another of its handles into its own child. The canvas never draws one; stored ones print this way so they round-trip.
E_EDGE_CYCLEWiring that closes a cycle among enabled blocks, a self-loop included: no block on it ever runs. Framed at the edge back to a block declared earlier, the one to remove; repeat work with loop()/parallel().
W_EDGE_CYCLEA cycle the stored workflow already holds, kept so it round-trips; none of it runs. An offline check reports it for a cycle among blocks the lock binds, which an apply keeps only if the stored workflow holds every edge of it.
W_BRANCH_UNWIREDA condition or router branch no edge leaves, so a run that takes it ends there; the hint names the wiring. Not reported for a branch the stored workflow already leaves unwired.
E_UNKNOWN_BUILDERA builder path the catalog does not have, a bare builder-shaped call (apii('Name', …)) nothing binds, or a namespace the SDK lacks or the file did not import; hint names the builder a common other name stands for (http.request → api), then prefers a synonymous verb (postMessage → sendMessage), then the closest path, then the namespace's builders.
E_UNKNOWN_PARAMA param the block does not have; the hint has a did-you-mean, or for block meta written there (retry, disabled, locked, errorPort) the third argument that takes it.
E_FIXED_PARAMA param the builder already pins.
W_FIELD_NOT_APPLICABLEA param not visible under the block's values; apply keeps the stored value and the written-back source drops it.
W_REQUIRED_MISSINGA required field left empty, including todo(); not repeated for a field an E_UNKNOWN_PARAM did-you-mean names, or one written with a value that failed to compile.
W_UNKNOWN_OPTIONA dropdown value none of its options names; hint lists them.
E_UNKNOWN_OPERATIONAn operation the block does not offer; hint lists them. A retired one the stored block holds is W_UNKNOWN_OPTION.
W_UNKNOWN_MODELA model the catalog does not list (kept: custom models are free text).
W_LEGACY_BLOCK_TYPEA new block of a legacy or deprecated type; hint names the replacement's builders.
I_SCHEDULE_UTCA schedule created from source with no timezone, which runs in UTC (the editor would have seeded the viewer's zone).
E_STORED_VALUE_MISSINGstored() where the stored workflow holds no value.
W_VALUE_KINDA value whose JSON type differs from the field's.
W_OUT_OF_RANGEA literal slider value outside the catalog min/max, off its step, or fractional where it takes whole numbers; kept as written, and the executor forwards it unclamped.
W_TABLE_FILTER_SHAPEA literal table filter the runtime refuses: the legacy $ operator grammar, or predicate and builder rows mixed.
W_LITERAL_SECRETA password field (an API key, a token) holding literal text instead of an env reference, or any field holding a detected credential (a token format, an Authorization header, a credential-named property or query parameter); get prints it as stored(). For a literal token in a credential field, the hint says credential('<key>').
W_SUBFLOW_COUNTA loop or parallel count, or a parallel batch size, the runtime replaces or clamps.
W_UNKNOWN_OUTPUT_PATHA ref path the block's outputs do not have; the hint has a did-you-mean or lists the outputs.
W_OUTPUT_PATH_UNDECLAREDA path the block does not declare that the run still accepts: an undeclared inputFormat input, or x.error with no error edge. Never refused.
W_JSON_REF_UNTYPEDA bare ref in a JSON literal whose type nothing declares.
W_LOOP_CONDITION_SYNTAXA while or do-while condition that is not a JavaScript expression once each reference stands in as a value, as the run evaluates it (return Boolean(<condition>)): the run fails there. Refused as E_APPLY_LOOP_CONDITION_SYNTAX on a loop the edit added or changed. A loop reading its own index (or currentItem, items) by its name in its condition is W_REF_OUT_OF_SCOPE: the condition is evaluated outside the loop's body, so only <loop.index> reads the iteration there.
W_REF_OUT_OF_SCOPEA loop or parallel iteration field (index, currentItem, items) read from a block outside that container: lp.index after the loop, $ref.loop.index or <loop.index> in a block in no loop. The run fails (or reads nothing) there. Refused as E_APPLY_REF_OUT_OF_SCOPE on a block the edit changed.
W_UNKNOWN_BLOCK_TYPEA new block of a type the catalog does not hold; refused as E_APPLY_INVALID_BLOCK_TYPE. A block the stored workflow or the lock already holds keeps its type quietly.
W_TYPE_NOT_ADDABLEA new block of a type the catalog keeps only for blocks already using it; refused as E_APPLY_TYPE_NOT_ADDABLE.
E_CODE_FILE_MISSINGcodeFile() names a file the request did not send.
E_CODE_FILE_PATHA code file path outside the directory, or with the wrong extension.
W_CODE_FILE_INLINEDPrint: the code could not round-trip through a file and was inlined.
W_CODE_FILE_REF_SYNTAX$ref.key.path or $env.NAME in a Python or shell code file, which runs as text; the hint names the <key.path> or {{NAME}} form. Refused as E_APPLY_CODE_FILE_REF_SYNTAX in a file the edit changed.
W_CODE_FILE_REF_QUOTEDA <key.path> tag between quotes of its own in a Python code file ("<start.country>"): the run substitutes it as a Python literal, so a string value arrives with its quotes in it. Remove the quotes. A file's path (open('<start.file.path>')), spliced raw, is not reported.
W_UNRESOLVED_REFPrint: a stored <x.y> token that resolves to nothing. Compile: a code file $ref chain that does. Either is kept as text.
W_FORWARD_REF_LITERALIZEDPrint: a ref in a cycle printed as text.
W_COMMENT_MOVEDA comment hoisted to the nearest anchor.
W_COMMENT_DROPPEDA comment whose block no longer exists.

Lock and source meta

Reading .sim/lock.json. Each finding names a JSON path.

CodeMeaning
E_LOCK_JSON, E_SOURCE_META_JSONNot valid JSON.
E_LOCK_VERSION, E_SOURCE_META_VERSIONversion missing or not 1.
E_LOCK_SHAPE, E_SOURCE_META_SHAPEA required field missing or of the wrong type or format.
E_LOCK_UNKNOWN_FIELD, E_SOURCE_META_UNKNOWN_FIELDA field the schema does not define (x- keys are allowed).
E_LOCK_KEYA block or variable key not in normalized form.
E_LOCK_IDENT, E_SOURCE_META_IDENTAn ident that is not a JS identifier, or is reserved.
E_LOCK_DUPLICATE_IDENT, E_SOURCE_META_DUPLICATE_IDENTTwo blocks with one ident.
E_LOCK_DUPLICATE_IDOne block, variable or branch id under two keys.
E_LOCK_PARENTA parent naming no block, itself, or forming a cycle.
E_LOCK_BRANCHA branch key that is not a JS identifier.
E_LOCK_CODE_FILE_PATHA codeFile that is absolute, escapes the directory, or uses backslashes.
E_SOURCE_META_ANCHORA comment key that is not a valid anchor.

Canonicalize

Reading the stored workflow in a get.

CodeMeaning
E_CANON_LEGACY_NAME_COLLISIONTwo stored names normalize alike; the loser is keyed key~n.
E_CANON_EDGE_SCOPEA stored edge crosses subflow scopes.
W_CANON_RESERVED_NAMEA stored name normalizes to a reserved key.
W_CANON_DANGLING_EDGEA stored edge to a missing block; dropped.
W_CANON_DANGLING_PARENTA parent that does not exist; the block is placed at the root and the raw parent kept.
W_CANON_RAW_HANDLEAn unknown edge handle, kept as a raw port.
W_CANON_UNKNOWN_BLOCK_TYPEA type the catalog does not have; params kept.
W_CANON_UNRESOLVED_IDA resource id with no key; kept verbatim.
W_CANON_TITLE_OVERRIDEA branch title that differs from its positional title.
W_CANON_SUBFLOW_REPAIREDA loop or parallel config the loader would repair.
W_CANON_SUBBLOCK_TYPE_DRIFTA stored subBlock type differs from the catalog's.
W_CANON_UNDECODABLE_JSONA stored JSON-text field that does not parse, kept as text; or a branch list that is not rows with distinct ids, kept verbatim.

Materialize

Matching the compiled file to the stored blocks.

CodeMeaning
E_MAT_DUPLICATE_LOCK_IDTwo lock keys carry one block id.
E_MAT_UNKNOWN_RESOURCEA resource key with no live resource in this workspace.
E_MAT_UNKNOWN_VARIABLEA vars.x reference to a variable the workflow does not declare.
W_MAT_DELETED_SINCE_PULLA lock entry whose block was deleted since the read; re-created.
W_MAT_INFERRED_RENAMEA rename inferred from type, parent and edges (the key and the ident both changed).
W_MAT_RETYPE_RECREATEDA key kept with a new type: delete plus create, so webhook URLs and schedules change.
W_MAT_LOCK_ID_CLAIMEDA lock id another workflow holds, ignored: the block binds to the stored block it matches, or gets a new id.
I_MAT_NEEDS_LAYOUTA new block with no position, or one moved into or out of a loop or parallel; placed by autolayout.

Apply

Saving the workflow draft.

CodeMeaning
E_APPLY_STALEThe workflow changed since the source was read (HTTP 409).
E_APPLY_WORKFLOW_MISMATCHbase.workflowId names another workflow (HTTP 400).
E_APPLY_LOCKED_BLOCKThe change touches a locked block or a child of a locked container.
E_APPLY_TYPE_NOT_ADDABLEA new block of a type that may stay but not be added.
E_APPLY_INVALID_STATEThe resulting graph fails validation.
E_APPLY_BLOCK_NOT_FOUND, E_APPLY_INVALID_BLOCK_TYPEA block or type the engine cannot place.
E_APPLY_BLOCK_NOT_ALLOWED, E_APPLY_MODEL_NOT_ALLOWED, E_APPLY_TOOL_NOT_ALLOWEDRefused by the workspace's permission group.
E_APPLY_INVALID_EDGE_SOURCE, E_APPLY_INVALID_EDGE_SCOPE, E_APPLY_INVALID_SOURCE_HANDLE, E_APPLY_INVALID_TARGET_HANDLEAn edge the engine refuses.
E_APPLY_INVALID_SUBBLOCK_FIELD, E_APPLY_MISSING_REQUIRED_PARAMSA field the engine refuses, or required params missing.
E_APPLY_RETRY_NOT_SUPPORTEDA new or changed retry policy on a block that always runs once (triggers, human-in-the-loop, containers).
E_APPLY_DUPLICATE_TRIGGER, E_APPLY_DUPLICATE_SINGLE_INSTANCE_BLOCKA second trigger or single-instance block.
E_APPLY_DISABLED_ANCESTORAn enabled block inside a disabled container.
E_APPLY_CREDENTIAL_UNREACHABLEA credential the acting user cannot use.
W_APPLY_CREDENTIAL_KEPTA credential key the caller cannot resolve stands where the workflow stores a credential the caller cannot see; the stored one is kept, whatever the key.
E_APPLY_SANDBOX_PLAN_REQUIREDThe sandbox needs a plan the workspace does not have.
W_APPLY_HOSTED_KEY_DROPPEDA hosted key that does not apply was cleared.
W_APPLY_VALUE_NORMALIZEDValidation rewrote a value; the returned files show it.
W_APPLY_TYPE_CHANGEDA block's type changed; its id, webhook URL and schedules are replaced.
W_APPLY_TRIGGER_REMOVEDA deleted or retyped block still serves a live webhook, schedule, chat output or MCP tool until the next deploy.
W_APPLY_CATALOG_MOVEDCompile failed and the block catalog changed since the read: get the source again.
E_APPLY_LINT, W_APPLY_LINTA workflow lint finding, mapped to a source line.
E_APPLY_UNRESOLVED_REFA $ref naming no block or variable, or a path no output has, in code or a block the edit changed (W_UNRESOLVED_REF, W_UNKNOWN_OUTPUT_PATH elsewhere).
E_APPLY_REF_OUT_OF_SCOPEA W_REF_OUT_OF_SCOPE iteration reference on a block the edit added, changed or moved.
E_APPLY_CODE_FILE_REF_SYNTAXA W_CODE_FILE_REF_SYNTAX in a code file the edit changed.
E_APPLY_LOOP_CONDITION_SYNTAXA W_LOOP_CONDITION_SYNTAX on a loop the edit added or changed.
E_APPLY_BLOCK_DELETEThe apply deletes blocks the source no longer declares; pass --allow-delete. When it also adds blocks of a deleted one's type, it names them as possible renames and says how to keep the ids.
E_APPLY_VARIABLE_DELETEThe apply removes workflow variables the source no longer declares; pass --allow-delete, as for blocks.
W_APPLY_PROBABLE_RENAMEWith --allow-delete, a deleted block and an added one share a type and parent: a probable rename that gets a new id.
E_NAME_TAKENThe workflow('…') name renames the workflow to one another workflow in its folder holds.
E_WORKFLOW_META_INVALIDThe workflow('…') name is empty or over 255 characters, or its description is over 50,000 characters: limits the workflow API holds every workflow to.
E_APPLY_INVALID_SCHEDULEAn added or changed schedule whose cron, timezone or interval deploy would refuse.
W_TABLE_UNKNOWN_COLUMNA table row write whose data names a key that is not a column of the table; the run drops it. The hint names the nearest column.

Type check

sim workflows source check and sim workspaces source check type-checking the directory with TypeScript after the compile. The server never reports these.

CodeMeaning
E_TYPETypeScript (the release the declarations are built for) reported an error; the message starts with its TS code. A type error is left out on a line the compile already reports an error on, and in a file still as the last get or apply wrote it when that file had the same error then (against the declarations as that get or apply left them).
W_TYPES_UNCHECKEDThe type check did not run: TypeScript could not be installed (offline, or no npm) or did not start. The other findings stand; pass --no-types to skip it.

Workspace source

Workspace source reports every workflow code above for the files of workflows/<key>/, with that path as the file, and these codes for the rest of the directory.

Declaration files and the directory layout

CodeMeaning
E_DECL_SYNTAXA Babel parse error, re-coded.
E_DECL_HEADERThe first line is not // @sim-sdk 1.
E_DECL_IMPORTAn import from anything but @sim/workflow-sdk/workspace, or a non-named import.
E_DECL_EXPORTNot exactly one export default defineX({ … }) with the kind's defineX.
E_DECL_UNSUPPORTEDA construct outside the declaration grammar: JSON literals, the kind's helper calls.
E_DECL_DUPLICATE_KEYAn object key declared twice.
E_DECL_SHAPEA required field is missing, or a field has the wrong type.
E_DECL_UNKNOWN_FIELDA field the kind does not define.
E_DECL_UNKNOWN_FILEA path inside a kind's folder that no resource owns.
W_PATH_NOT_SENTA file under a kind's folder whose path no workspace holds (a hidden name such as .env, or a character such as : or ?): the CLI does not send it, so an apply neither writes nor deletes anything for it.
E_BLOB_MANIFESTA blob manifest entry listed twice, or at a path that holds no binary file: the apply writes nothing.
E_BLOB_MISSINGA binary file a write needs whose bytes are not staged (or were staged at another size): the apply writes nothing. Stage it, then apply again.
E_KEY_INVALIDA resource key outside ^[a-z][a-z0-9_-]{0,63}$.
W_DECL_SUSPICIOUS_CHARACTERA resource name, a skill name, a workspace file path or a knowledge document name holds a bidi control or zero-width character, so it reads differently from what it stores. The workflow-file counterpart is W_SUSPICIOUS_CHARACTER.

.sim/base.json

CodeMeaning
E_BASE_JSONThe base is not valid JSON.
E_BASE_VERSIONversion is missing or not 1.
E_BASE_SHAPEA required field is missing or of the wrong type or format.
E_BASE_UNKNOWN_FIELDA field the base does not define (x- keys are allowed).

Secrets (secrets.ts)

CodeMeaning
E_SECRET_NAMEA declared name outside the secret name format.
E_SECRET_MISSINGA workflow uses a declared secret the workspace holds no value for: it is held back.
W_SECRET_MISSINGA declared secret the workspace holds no value for.

Credentials (credentials.ts)

CodeMeaning
E_CREDENTIAL_MISSINGA workflow uses a declared key no credential of its provider binds to: it is held back.
E_CREDENTIAL_AMBIGUOUSA workflow uses a declared key several credentials could bind to: it is held back.
W_CREDENTIAL_MISSINGA declared key no credential of its provider binds to.
W_CREDENTIAL_AMBIGUOUSA declared key several credentials could bind to.

Tables

CodeMeaning
E_TABLE_COLUMN_NAMEA column key or name outside the table name pattern.
E_TABLE_DUPLICATE_COLUMNTwo columns resolve to one name.
E_TABLE_TOO_MANY_COLUMNSMore columns than a table may hold: a size limit, classed like E_LIMIT_EXCEEDED.
E_TABLE_OPTIONSA select column without options, an option declared twice, or options on another type.
E_TABLE_TYPE_CONVERSIONA type change the stored cells cannot convert to.
E_TABLE_FOLDERA table folder that does not exist in the workspace.
E_TABLE_ROWSThe declaration's rows or its tables/<key>.rows.jsonl: a bad mode or key column, a line that is not a row of declared columns, a managed row without its key or repeating one.
I_TABLE_SEED_SKIPPEDSeed rows declared for a table that already holds rows: only a new or empty table is seeded.
I_TABLE_ROWS_UNKEYEDManaged rows whose key cell is empty (a row the table's "add row" made and nobody keyed): no file line can name them, so a get leaves them out and an apply keeps them as they are.
W_LIKELY_RENAMEA column dropped and one of the same type added: probably a rename, which loses the cells.

Custom tools

CodeMeaning
E_TOOL_SCHEMAThe schema is not a function declaration a custom tool may store.
E_TOOL_CODEcode is not codeFile('./<key>.js'), a string or stored(), or its code file is missing or does not parse.
E_TOOL_STORED_MISSINGcode: stored() for a tool the server holds no code of (none stored under the key or title).
W_TOOL_LITERAL_SECRETThe code holds what looks like a literal credential (holdsSecret, as for function code): a get prints it as stored(), and code a directory writes with one applies with this warning.

Skills

CodeMeaning
E_SKILL_FRONTMATTERskills/<key>.md does not open with a frontmatter block of name and description.

MCP servers

CodeMeaning
E_MCP_LITERAL_SECRETA credential header (Authorization, X-Api-Key, …) holds literal text, not an env reference.
E_MCP_STORED_MISSINGstored() names a header the stored server holds no value for.
E_MCP_TOOL_UNKNOWNA workflow names a tool the MCP server does not list.
W_MCP_REPLACEA changed URL replaces the server: a new server id, the old one deleted.
W_MCP_TOOLS_UNCHECKEDThe server's tools could not be listed, so the tool names workflows use are not checked.

Workspace files

CodeMeaning
E_FILE_PATHA path no workspace file may have: a dot or empty segment, a reserved name or character.
E_FILE_PATH_COLLISIONTwo paths that differ only in letter case, or a path that is both a file and a folder.
E_FILE_NAMEA name the server would store differently (trimmed, whitespace collapsed, NFC).
E_FILE_TOO_LARGEA file over the per-blob cap: a get skips it and an apply never writes it.
E_FILE_CONTENTA workspace file sent as text, or listed without a valid SHA-256 and size.

Knowledge bases

CodeMeaning
E_KB_EMBEDDING_IMMUTABLEA declared embedding model that differs from the stored one: it is fixed at creation.
E_KB_EMBEDDING_MODELA new knowledge base declares a model this server does not create knowledge bases with.
E_KB_DOC_AMBIGUOUSThe server holds several documents under one declared file name.
E_KB_DOC_NAMEA document file name or type the knowledge base cannot hold.
E_KB_DOC_EMPTYAn empty document, which a knowledge base cannot index.
E_KB_CHUNKINGChunking settings outside what a knowledge base accepts.
E_KB_FOLDERA knowledge base folder that does not exist in the workspace.
W_KB_DOC_UNCHECKEDA stored document whose bytes this request had no budget left to download and compare.
W_KB_DOC_FAILEDDocuments whose indexing failed: search does not find them until they are indexed again.
I_KB_REEMBEDHow many documents the apply indexes (embeds) after it writes them.
I_KB_CHUNKINGChanged chunking applies to documents indexed from now on; stored ones keep their chunks.
I_KB_PROCESSINGDocuments still waiting to be indexed or being indexed: search finds them once that ends.
I_KB_DOCS_UNHASHEDDocuments a get lists without a hash: it had no budget left to download them.
I_KB_UNMANAGED_DOCSDocuments source leaves alone: connector-synced, too large, or not a plain file name.
I_KB_REPLACE_UNFINISHEDA replace that stopped partway left a replacement document (under its upload name): the next apply that changes the knowledge base finishes the replace, or removes the replacement.

Deployments

CodeMeaning
E_DEPLOY_WORKFLOWdeployments/<key>.ts names no workflow this workspace holds or this directory declares.
E_DEPLOY_SECRETA chat password written as a value instead of env.NAME, an unset variable, or stored() where no password is stored.
E_DEPLOY_CHAT_OUTPUTA chat output names a block the workflow does not have.
E_DEPLOY_CHAT_IDENTIFIERA chat identifier another live chat already holds.
E_DEPLOY_PINNED_CHATA chat change on a pinned deployment whose draft differs: deploying a chat publishes it.
W_DEPLOYED_DRAFT_CHANGEDAn apply edits a deployed workflow that no live: 'draft' deployment republishes.
W_DEPLOY_DRAFT_NOT_SOURCEA live: 'draft' deployment whose draft holds edits the directory does not declare (made in the editor, say): the apply does not publish it.
E_DEPLOY_DRAFT_NOT_SOURCE_CHATA chat change while the draft holds edits the directory does not: deploying a chat publishes it.
I_DEPLOY_DRAFT_NOT_LIVEA pinned deployment's draft differs from its live version, which keeps running.

Plan and apply

CodeMeaning
E_APPLY_NO_BASEThe server holds the resource but the directory has no base for it: get it first.
E_APPLY_FORBIDDENThe caller may not make this change.
E_APPLY_DELETE_NOT_ALLOWEDThe change deletes a resource or data and --allow-delete was not given.
E_APPLY_LOCKEDThe resource is locked against this change (HTTP 423).
E_APPLY_REFUSEDA change a child operation refused, with its message.
E_APPLY_FAILEDA write failed for a reason that is not the source's (logged on the server).
E_PLAN_TOO_LARGEThe apply would make more changes or touch more workflows than one request may.
E_PLAN_REF_DELETEDA declared resource references one this apply deletes.
E_PLAN_REF_HELDA declared resource references one this apply holds back, so it is held back too.
W_RESOURCE_IN_USEA resource this apply deletes is still used by stored workflows.
W_TABLE_COLUMN_RENAMED_IN_USEA table column this apply renames is still written, filtered or sorted by its old name in a stored workflow's Table block, which the run then drops.
E_WORKFLOW_FILES_MISSINGA workflow folder sent without its files whose base names no workflow of this workspace.
E_WORKFLOW_FOLDER_COPIEDA workflow folder holding the base of another declared folder's workflow: a copy.
W_UNDECLAREDA resource the server holds that the directory does not declare (kept without --allow-delete).
W_BASE_OTHER_WORKSPACEThe directory's base was read from another workspace: every resource is created anew.
W_PROMOTE_TARGET_DELETEDA promotion (apply --to) keeps deleted a resource the directory declares that the target deleted since the last promotion: the target no longer holds it.
W_PROMOTE_DELETES_TARGET_ONLYA promotion with --allow-delete deletes a resource only the target holds (the directory does not declare it).
W_SERVER_CHANGEDThe server changed a resource the directory leaves alone; the apply keeps it.
W_SERVER_DELETEDThe server deleted a resource the directory leaves as it was; it is not created again.
W_SERVER_MOVEDThe server moved a resource the directory leaves as it was; it is not created again.
I_KEY_REBOUNDA key bound to a deleted resource was bound to the one this apply wrote.
E_KEY_RENAMEDA declaration under a new key for a resource the base read under another: keys never move.

Shared with workflow source

A workspace finding with the same meaning as a workflow finding uses its code.

CodeMeaning
E_APPLY_STALEThe workflow changed since the source was read (HTTP 409).
E_LIMIT_EXCEEDEDOver the block, edge, total-byte, depth or codeFile() reference cap (SOURCE_LIMITS). Apply answers 413.
E_NAME_TAKENThe workflow('…') name renames the workflow to one another workflow in its folder holds.
I_FINDINGS_TRUNCATED100 warnings, or 20 of one code, were listed and the rest omitted, so a flood of one finding never hides another. A finding repeated at the same place is listed once. Infos are capped apart (100, the rest dropped), so they never displace a warning, and errors are never displaced by either. An answer that merges findings from several stages is capped the same way as a whole; when that cuts it, it ends in one I_FINDINGS_TRUNCATED counting what it left out, in place of the stages' own.
Was this helpful?
Suggest an edit