Every diagnostic code and its meaning. Template reference in the DocStudio developer reference.
Every recoverable problem is a diagnostic { code, severity, message, path }. path is a JSON Pointer into the input the problem was found in (a template pointer, or ref#pointer inside a component), or empty for a whole-input problem. severity is error, warning or info. The core never throws for any JSON input; exceptions are reserved for programmer errors in API use. Codes are stable identifiers; messages are for people. tests/diagnostic-catalog.test.ts produces every code below from a real scenario and checks this file lists each one.
Diagnostic output is capped by maxDiagnostics; when the cap is hit the last entry is DIAGNOSTICS_TRUNCATED.
| Code |
Severity |
Raised by |
Meaning |
LIMIT_EXCEEDED |
error, or warning for an uncomputable hash |
Every stage |
A size, depth, count, row or nesting limit was exceeded |
INVALID_JSON_VALUE |
error |
Validation, migration, data check |
A value is not JSON (function, non-finite number, class instance, cycle) |
INVALID_LIMIT |
warning |
normalizeLimits |
A limit override was not a valid number and was ignored |
DIAGNOSTICS_TRUNCATED |
warning |
Every collector |
More diagnostics occurred than maxDiagnostics allows |
Structure and semantics
| Code |
Severity |
Raised by |
Meaning |
SCHEMA_VIOLATION |
error |
Structural validation |
The template or configuration does not match its schema |
VALIDATOR_FAILURE |
error |
Structural validation |
The schema validator itself failed unexpectedly |
DUPLICATE_ID |
error |
Semantic validation |
A node id or import alias repeats |
UNKNOWN_COMPONENT |
error |
Semantic validation |
A node type has no definition, or a component ref is not imported |
UNUSED_IMPORT |
warning |
Semantic validation |
An import is never used |
SCOPE_VIOLATION |
error |
Semantic validation |
A path uses a scope that does not exist there ($index outside a repeater, $props outside a component, a slot in a host template) |
FRAME_OUTSIDE_FIXED |
error |
Semantic validation |
frame on a node that is not a direct child of a fixed region |
FRAME_MISSING |
warning |
Semantic validation |
A child of a fixed region has no frame |
INVALID_TABLE |
error or warning |
Semantic validation |
Duplicate column ids, over-wide percent columns, over-long footer spans (errors); an empty footer cell (warning) |
| Code |
Severity |
Raised by |
Meaning |
INVALID_EXPRESSION |
error |
Expression parser |
The expression has an invalid shape |
UNKNOWN_FUNCTION |
error |
Expression parser |
The function name is not in the closed set |
ARITY |
error |
Expression parser |
Wrong number of arguments |
UNSAFE_PATH |
error |
Expression parser |
A path contains __proto__, constructor or prototype |
INVALID_PATH |
error |
Expression parser |
A path is malformed |
TYPE_ERROR |
warning |
Evaluator |
An operand had the wrong type; the result is undefined |
DIVISION_BY_ZERO |
warning |
Evaluator |
A division or modulo by zero |
NON_FINITE |
warning |
Evaluator |
A result was not a finite number |
UNKNOWN_FORMATTER |
warning |
Evaluator, semantic validation |
The formatter name is not registered |
FORMATTER_FAILURE |
warning |
Evaluator |
A formatter threw |
Configuration and styles
| Code |
Severity |
Raised by |
Meaning |
LOCKED_PROPERTY |
warning |
Configuration cascade |
A template or section tried to override a locked property; the override was ignored |
INVALID_LOCK |
warning |
Configuration cascade |
A lock pattern is malformed and was ignored |
UNKNOWN_THEME |
warning |
Configuration cascade |
The selected theme is not defined |
UNKNOWN_TOKEN |
warning |
Style resolution |
A token reference does not exist |
INVALID_STYLE_VALUE |
warning |
Style resolution |
A style value failed validation and was dropped |
UNKNOWN_STYLE |
warning |
Semantic validation, style resolution |
A named style is not defined |
Binding
| Code |
Severity |
Raised by |
Meaning |
MISSING_DATA |
warning or error |
Binder |
No value was found and the policy is warn (warning) or error (error) |
WRONG_TYPE |
warning or error |
Binder |
A value of the wrong type was bound (object as text, scalar as list); an error under the error policy |
Registry
| Code |
Severity |
Raised by |
Meaning |
INVALID_REGISTRATION |
error |
Registries |
A component or formatter name, or a migration range, is invalid |
DUPLICATE_REGISTRATION |
error |
Registries |
The component, formatter or migration source is already registered |
Migration
| Code |
Severity |
Raised by |
Meaning |
INVALID_VERSION |
error |
migrate |
schemaVersion is missing or not a strict major.minor.patch |
UNSUPPORTED_VERSION |
error |
migrate |
The template's major version is newer than supported |
NEWER_VERSION |
warning |
migrate |
A newer minor or patch of the supported major; unknown fields will fail validation |
MIGRATION_GAP |
error |
migrate |
No migration path reaches the supported version |
MIGRATION_FAILED |
error |
migrate |
A migration threw or returned something that is not a bounded JSON object |
Components
| Code |
Severity |
Raised by |
Meaning |
COMPONENT_NOT_FOUND |
error |
Composite expansion |
The pinned component version is not in the store, or the store failed |
COMPONENT_INVALID |
error or warning |
Composite expansion |
The component cannot be migrated or fails validation (error), or has page furniture that is ignored (warning) |
UNPINNED_COMPONENT |
error |
Composite expansion |
A component reference has no exact version |
COMPOSITE_CYCLE |
error |
Composite expansion |
A component contains itself directly or indirectly |
UNKNOWN_SLOT |
warning |
Composite expansion |
The call fills a slot the component does not declare |
Schema-assisted checks
| Code |
Severity |
Raised by |
Meaning |
UNKNOWN_BINDING |
warning |
checkBindings |
A path is absent from the supplied data schema |
BINDING_TYPE |
warning |
checkBindings |
A path holds an object or array where text is expected, or a non-list where a list is expected |
Rendering
| Code |
Severity |
Raised by |
Meaning |
INVALID_RDT |
error |
Renderer |
The input is not a version 1 resolved document tree |
UNSAFE_STYLE_VALUE |
warning |
Renderer |
A style property failed validation and was dropped |
ASSET_NOT_FOUND |
warning |
Renderer |
An image asset could not be resolved (no resolver, unknown id, resolver failure) |
ASSET_REJECTED |
warning |
Renderer |
An image was refused (invalid reference, address not allowed, too large, content does not match its type) |
FONT_REJECTED |
error |
Font registry |
A font face was refused (invalid family, format, weight, range, size, or content that does not match its format) |
PDF client
| Code |
Severity |
Raised by |
Meaning |
INVALID_PDF_REQUEST |
error |
PDF client and service |
The request is malformed: not an object, unknown fields, an invalid tree or invalid options, or too large |
PDF_TRANSPORT_FAILED |
error |
PDF client |
The request failed or timed out before an answer arrived |
PDF_SERVER_ERROR |
error |
PDF client |
The service answered with an error or something that is not a PDF |
PDF service
| Code |
Severity |
Raised by |
Meaning |
PDF_QUEUE_FULL |
error |
PDF service |
All workers are busy and the queue is full (HTTP 429) |
PDF_TIMEOUT |
error |
PDF service |
The job exceeded its time limit (HTTP 504); the browser is recycled |
PDF_RENDER_FAILED |
error |
PDF service |
The browser failed, crashed or produced no PDF (HTTP 500); no internal detail is returned |
PDF_TOO_LARGE |
error |
PDF service |
The request or the resulting PDF exceeds its size limit (HTTP 413) |
PDF_UNAVAILABLE |
error |
PDF service |
The service is shutting down (HTTP 503) |