Board Errors¶
ERR-BOARD-ALIAS: A board alias can't be served¶
- Level: error
- Domain: serve
- Suppressible: no
Message template:
Fired when an entry in a board's aliases: can't become a redirect, because it isn't absolute, shadows a real board, is claimed by another board too, or matches the same URLs as another parameterized alias. Only the boards involved fail; the rest of the project keeps serving. Two boards claiming one alias both fail and neither gets the redirect, so remove the alias from all but one board.
ERR-BOARD-FILE-PLACED-TWICE: A board places the same file twice¶
- Level: error
- Domain: compile
- Suppressible: no
Message template:
Board file {file!r} is placed twice: by {first} and by {second}. A file that declares charts or queries can be placed once in a board, because every file a board places shares one set of chart and query names. Keep one placement.
A rows item, or a charts fence, can place another board file or Markdown page by its path. Fired when a file that declares its own charts or queries is placed a second time in one board, from the same file or through two different files that both place it. The message names the file and both places.
ERR-BOARD-IMPORT-CYCLE: Board files place each other in a circle¶
- Level: error
- Domain: compile
- Suppressible: no
Message template:
Board files place each other in a circle: {chain}. Remove one of these references, or move what they share into a file neither places.
A rows item, or a charts fence, can place another board file or Markdown page by its path, and that file can place others. When the chain comes back to a file already being placed, it would never end, so the board stops here and names the files in order.
ERR-BOARD-SOURCE-INVALID: Board-level source is not a name¶
- Level: error
- Domain: compile
- Suppressible: no
Message template:
Invalid board-level `source:` in {file}: expected a source name string, got {got}. Write `source:` as the name of a source declared under `sources:` in dbt_charts.yml.
Fix: Write source: as the name of a source declared under sources: in dbt_charts.yml.
Fired when a board's source: is a list, a mapping or another value that is not a source name.
ERR-CARD-GAP-NESTED: card_gap is set on a nested board¶
- Level: error
- Domain: compile
- Suppressible: no
Message template:
card_gap can only be set on the root board, not on nested boards. Remove `card_gap:` from the nested board and set it on the root board instead.
Fix: Move card_gap: to the root board.
Fired when a board nested in another sets card_gap; only the root board does.
ERR-CONFIG-KEY-MOVED: dbt_charts.yml key moved out of project config¶
- Level: error
- Domain: compile
- Suppressible: no
Message template:
Fired when dbt_charts.yml sets a key that no longer exists there. Design values (formerly under chart_rendering:, and the vega: block) are theme fields: set the successor named in the message under style: in charts/meta.yml. Engine constants are not configurable; delete the key.
ERR-EXTENDS-CYCLE: extends chain returns to a file¶
- Level: error
- Domain: compile
- Suppressible: no
Message template:
Circular extends: {file} is already in the extends chain. Remove the `extends:` entry that leads back to {file}.
Fix: Remove the extends: entry that leads back to a file already in the chain.
Fired when the extends: chain of a board reaches a file or theme it is already folding.
ERR-EXTENDS-INVALID: An extends file is not a board patch¶
- Level: error
- Domain: compile
- Suppressible: no
Message template:
Fix: Fix the named file so it is valid YAML holding board keys only.
Fired when a file a board extends, or a meta.yml above it, does not parse as YAML or holds keys a board patch does not accept.
ERR-EXTENDS-UNRESOLVED: extends entry names neither a theme nor a board¶
- Level: error
- Domain: compile
- Suppressible: no
Message template:
Unresolvable `theme:`/`extends:` value {entry!r}: not a built-in theme, and no board by that name at the project root. Use a built-in theme, a project-root board name, or a relative path such as `./base.yaml`. Available built-in themes: {available}.
Fired by the extends layer when a board's extends: entry resolves to nothing: not a built-in theme, and no matching .yaml/.yml at the project root. This is the project lane's counterpart to ERR-UNKNOWN-THEME; it fires only where the board lookup was actually attempted, so it can offer that lookup as a fix.
ERR-EXTRA-FIELD: Unknown field in board YAML¶
- Level: error
- Domain: compile
- Suppressible: no
Message template:
Fired when the board YAML contains a field name that the schema does not recognize. Remove the unknown field or refer to the YAML reference for the supported keys. A key a past grammar renamed, moved, or removed is ERR-RETIRED-FIELD instead. When the key is valid in a nearby block (the chart for a key written under style:, or the reverse), the hint names that block.
ERR-HTML-POLICY-CEILING-INVALID: The project config does not give a usable html_policy_ceiling¶
- Level: error
- Domain: compile
- Suppressible: no
Message template:
Fix: Make dbt_charts.yml a YAML mapping, and set its html_policy_ceiling: to one of the html_policy tiers.
Fired when the project's dbt_charts.yml cannot be read as a YAML mapping, or its html_policy_ceiling is not one of the tiers.
ERR-INVALID-DEFAULT-THEME: Invalid theme name in configuration¶
- Level: error
- Domain: serve
- Suppressible: no
Message template:
Fired when the configured default theme name is not a recognized built-in theme. Check the available theme names and correct the configuration.
ERR-LOCKED-SCHEMA-VERSION: Board file does not match the project's locked schema version¶
- Level: error
- Domain: compile
- Suppressible: no
Message template:
Fired when dbt_charts.yml sets locked_schema_version and a board, its meta.yml, or an extends: file uses syntax that release does not accept, typically because a newer dbt Charts wrote it. Rewrite the file in the locked release's syntax, or raise the lock.
ERR-MARKDOWN-NOT-BOARD: Markdown file is not a board¶
- Level: error
- Domain: compile
- Suppressible: no
Message template:
Not a dbt Charts board file: markdown files outside charts/ must declare a top-level 'board:' key in their YAML frontmatter, or hold a `charts` fence and be named directly
Fired when a markdown file outside charts/ is compiled as a board but its frontmatter has no top-level board: key. Under charts/ every markdown file is a board by path convention. Elsewhere the board: key opts a page in, and so does a charts fence in a file named directly, as in dct render post.md; a file found by listing a folder needs the board: key. Add a board: block to the frontmatter, name the file, or move it under charts/.
ERR-MARKDOWN-PARSE: Markdown board cannot be parsed¶
- Level: error
- Domain: compile
- Suppressible: no
Message template:
Fired when a markdown board's frontmatter or body cannot be turned into a board: the opening --- has no closing delimiter, the frontmatter is not a YAML mapping, or board: is not a mapping. YAML syntax errors inside the frontmatter report ERR-YAML-SYNTAX instead.
ERR-META-OUTSIDE-BOARDS-ROOT: Board directory is outside the boards root¶
- Level: error
- Domain: compile
- Suppressible: no
Message template:
directory {dir!r} is not under boards_root {root!r}. Keep the board under the boards root, or set the boards root to a folder that holds it.
Fix: Keep boards under the boards root, or point the boards root at a folder that holds them.
Fired when a board's directory is not under the boards root that bounds the meta.yml walk.
ERR-META-SCHEMA: Board fragment contains an unknown or invalid field¶
- Level: error
- Domain: compile
- Suppressible: no
Message template:
Fired when a meta.yml file or a private (_-prefixed) partial contains a field that is not recognized by the board schema, or a field with an invalid value. Check that all keys match the supported board fields and remove any extras. The offending file is named separately, in the diagnostic's file location.
ERR-NO-BOARD-FILES: A path holds no board files¶
- Level: error
- Domain: compile
- Suppressible: no
Message template:
No board files found in {path}. Pass a `.yml`, `.yaml` or `.md` board file, or a folder that holds one. A `.svg.j2` chart template is not a board: validate a board that uses it.
Fired when dct validate or dct describe is pointed at a path with no board under it: a missing or empty folder, or one that holds only chart templates.
ERR-NOTHING-TO-RENDER: None of the paths given is a board¶
- Level: error
- Domain: compile
- Suppressible: no
Message template:
Fired when dct render has no board left to render after skipping the paths that are not boards. Each skipped path gets its own warning saying why. Pass at least one board file.
ERR-PROJECT-CONFIG-SCHEMA: dbt_charts.yml contains an unknown or invalid field¶
- Level: error
- Domain: compile
- Suppressible: no
Message template:
Fired when dbt_charts.yml (the project config file) contains a top-level field that is not recognized (e.g. style:, which belongs in charts/meta.yml instead), or a field with an invalid value. Check the project config reference for the supported keys.
ERR-RETIRED-FIELD: Retired field in board YAML¶
- Level: error
- Domain: compile
- Suppressible: no
Message template:
Fired when the board YAML spells a key a past grammar version renamed, moved, or removed and the file could not be migrated automatically (for example it also uses newer keys, or both spellings are present). The message names the version that retired the key and where it went; the hint says what to change. The params also carry field_path, unknown_field, parent_path, retired_in and, unless the key was removed, successor. The facts come from the migration declarations, so every key ever retired stays known.
ERR-TEXT-EMPTY-SEQUENCE: Text took an item from an empty list¶
- Level: error
- Domain: render
- Suppressible: no
Message template:
Fired when text (board text and titles, chart text) applies first, last, min, max or random to an empty list, such as the rows of a query that returned none. The text would otherwise render empty.
ERR-TEXT-FORMAT-USAGE: Text format filter used incorrectly¶
- Level: error
- Domain: render
- Suppressible: no
Message template:
Text `format` takes one dbt Charts format spec (preset, alias, d3 or strftime), as in `value | format('currency')`. Printf-style `'...' | format(x)` is not supported. Got: {detail}.
Fired when format in text is called without a spec, with a spec that is not a preset, alias, d3 or strftime spec, with extra arguments, or on a value that is not a number or date. It is not Jinja's printf-style format.
ERR-TEXT-LISTING-NONLITERAL: Text lists boards without a literal pattern¶
- Level: error
- Domain: compile
- Suppressible: no
Message template:
Fired when board text: calls glob_boards or glob_folders with anything but one string literal, or uses the name without calling it. The files a board lists must be known before it renders.
ERR-TEXT-LISTING-PATTERN: Invalid board listing¶
- Level: error
- Domain: compile
- Suppressible: no
Message template:
Fired at compile when glob_boards/glob_folders is called outside board text: (a board title or chart text), and at render when a pattern leaves the listing board's root (charts/) or the board has no file location.
ERR-TEXT-MAPPING-VALUE: Text printed a value with no single reading¶
- Level: error
- Domain: render
- Suppressible: no
Message template:
Fired when any display text prints a mapping, a nested list or a daterange variable whole with {{ name }}. A multiselect prints as a natural list; read a mapping by key, and a daterange by its ends ({{ name[0] }}, {{ name[1] }}).
ERR-TEXT-NULL-COMPARISON: Text compared a NULL value¶
- Level: error
- Domain: render
- Suppressible: no
Message template:
Fired when text orders a NULL value (a query cell or a variable) with <, >, <= or >=. Guard the comparison with x is none.
ERR-TEXT-QUERIES-NONLITERAL: Text uses queries without a literal name¶
- Level: error
- Domain: compile
- Suppressible: no
Message template:
Fired when board text: or title:, or chart text, uses queries in any way other than queries.<name> or queries['<name>'], such as queries[var], queries | list or {% set q = queries %}. The queries a board reads must be known before it runs.
ERR-TEXT-QUERY-ACCESS: Text accessed a query result incorrectly¶
- Level: error
- Domain: render
- Suppressible: no
Message template:
Fired when text reads an attribute other than .one, .rows or .columns from queries.<name>, prints a result or row directly, reads an underscore column as row._col instead of row['_col'], or names a query the text does not reference.
ERR-TEXT-QUERY-INDEX: Text indexed past the end of a query's rows or columns¶
- Level: error
- Domain: render
- Suppressible: no
Message template:
Fired when text reads queries.<name>.rows[i] or .columns[i] with an index the result does not have, such as rows[0] on a query that returned no rows. Guard with {% if queries.<name>.rows %} or fix the query.
ERR-TEXT-QUERY-ROW-COUNT: Text read .one from a query without exactly one row¶
- Level: error
- Domain: render
- Suppressible: no
Message template:
Query {query_name!r} returned {row_count} rows; .one needs exactly 1. Use .rows for multi-row results.
Fired when text reads queries.<name>.one and the query returned zero rows or more than one. Limit the query to one row or iterate queries.<name>.rows.
ERR-TEXT-QUERY-UNKNOWN-COLUMN: Text read a column the query does not return¶
- Level: error
- Domain: render
- Suppressible: no
Message template:
Fired when text reads a column from a query row that the query does not return. Check the column name against the query's select list.
ERR-TEXT-TYPE-ERROR: Text applied an operator to a value of the wrong type¶
- Level: error
- Domain: render
- Suppressible: no
Message template:
Text applied an operator to a value of the wrong type: {detail}. Guard NULL cells with 'is none' and convert strings before arithmetic.
Fired when text, such as board text: or title: or a chart's title, adds, subtracts or compares query values of incompatible types, for example arithmetic on a NULL or string cell.
ERR-TEXT-UNKNOWN-QUERY: Text references an unknown query¶
- Level: error
- Domain: compile
- Suppressible: no
Message template:
Fired when board text: or title:, or a chart's title, subtitle, KPI label or callout title or message, reads queries.<name> for a query that is not defined on the board, its extends: parents or its imports. Check for typos and declare the query under queries:.
ERR-THEME-AND-EXTENDS: Board sets both theme: and extends:¶
- Level: error
- Domain: compile
- Suppressible: no
Message template:
Cannot set both 'theme: {theme}' and 'extends:'; 'theme:' is shorthand for 'extends:'. Use one key: extends: {combined}
Fired when a board or board fragment authors both theme: and extends:. theme: X is sugar for extends: X, so the two would compete for one slot. List the theme first in extends:, lowest priority, ahead of the boards it already extends.
ERR-UNKNOWN-THEME: Theme name is not a built-in theme¶
- Level: error
- Domain: compile
- Suppressible: no
Message template:
Fired during board validation when theme:, or a plain (non-path) extends: entry, names something that is not a built-in theme. Without it the name is dropped and the board renders on the default theme with no sign the request was ignored. Raised at positions where nothing resolves the entry as a board: a standalone or in-memory compile, and any nested board. A project board compiled through its file gets ERR-EXTENDS-UNRESOLVED from the extends layer instead, which can also report the board lookup it tried.
ERR-VALIDATION-FIELD: Board YAML field failed Pydantic validation¶
- Level: error
- Domain: compile
- Suppressible: no
Message template:
Fired when a board YAML field fails Pydantic's type or constraint validation, or a normalize-stage rule on one field that Pydantic cannot express (a cross-field exclusion, a root-only constraint). The message carries the specific error. A missing required field lists the fields the block accepts. Check the field value against the schema.
ERR-WRONG-SHAPE: Field expects a mapping but got a scalar¶
- Level: error
- Domain: compile
- Suppressible: no
Message template:
Field {field_path!r} expects a mapping, not a scalar. Provide a YAML block with keys: {available_keys}.
Fired when a board YAML field that expects a mapping (nested object) receives a plain scalar value instead. Provide a YAML block with the appropriate keys.