Queries Errors¶
ERR-ADAPTER-DUCKDB-CONFIG-APPLY-FAILED: DuckDB source config could not be applied to the connection¶
- Level: error
- Domain: execute
- Suppressible: no
Message template:
Fired when the physical DuckDB connection opened successfully but a post-connect step for the source's extensions, settings, secrets, or attach config failed: a missing extension, an unrecognized setting, a malformed secret, or an attach target that cannot be opened. Unlike ERR-WAREHOUSE-CONNECTION, the connection is live and SQL has already been sent. {field} names which config section raised it, and {reason} is DuckDB's own error text unchanged (not a classified summary), so an actionable hint like "Did you mean: "threads"" reaches the author.
ERR-ADAPTER-DUCKDB-CONFIG-INVALID: DuckDB source config could not be turned into SQL¶
- Level: error
- Domain: execute
- Suppressible: no
Message template:
DuckDB source config's {field!r} is invalid: {reason}. Fix this in the source config before it can connect.
Fired before any SQL is sent, while turning a DuckDB source's extensions/settings/secrets/attach config into the SQL statements that apply it: a bad identifier (a key or name that is not a bare [A-Za-z_][A-Za-z0-9_]* token, so it cannot be safely spliced into SET/ATTACH/CREATE SECRET), a secret missing its required type, or an attach entry that sets the same option through both a direct field (type/secret/read_only) and options. {field} names the config key that failed; fix it in the source config.
ERR-ADAPTER-NOT-INSTALLED: Warehouse adapter is not installed¶
- Level: error
- Domain: execute
- Suppressible: no
Message template:
dbt Charts needs the {package} adapter to query {adapter_type!r} sources, and it is not installed in this Python environment. Install it with: {install}
Fired when a source needs a dbt adapter package that is not installed. It applies to a direct warehouse source in dbt_charts.yml and to a type: dbt_profile source whose profiles.yml target names the warehouse. Each warehouse adapter ships as a dbt Charts extra, so the fix is to install the extra into the same environment dct runs from, e.g. uv tool install "dbt-charts[snowflake]" for a uv tool install, or pip install "dbt-charts[snowflake]" for a pip/venv install. The message names the command that matches how this dbt Charts was installed. Raised before any connection is attempted.
ERR-ADAPTER-RELATIVE-PATH-NO-DATA-DIR: Relative source path needs a data directory to resolve against¶
- Level: error
- Domain: execute
- Suppressible: no
Message template:
Relative {adapter} path {path!r} requires a data_dir to resolve against; none was configured for this adapter. Use an absolute path or configure a data directory.
Fired when a file-backed source (DuckDB, SQLite) declares a relative path: but the adapter has no data directory to resolve it against. Resolving against the process working directory would make the source depend on where dct was invoked from, so dbt charts refuses. Use an absolute path or configure a data directory for the project.
ERR-ADAPTER-UNAVAILABLE: This deployment cannot run the query¶
- Level: error
- Domain: execute
- Suppressible: no
Message template:
This deployment cannot run the query: {reason} Use a source it supports, or ask whoever operates it to enable this one.
Fired when no adapter in this deployment can run a query: none is registered for its query type, none supports its source's type, or the source is a file source and the host configured no file-source materializer. The query and source are fine; the host cannot run them. Nothing in the board or SQL fixes it.
ERR-ADAPTER-UNSUPPORTED-DUCKDB-FIELD: DuckDB source field is not supported by the in-process adapter¶
- Level: error
- Domain: execute
- Suppressible: no
Message template:
DuckDB source config sets {field!r}. The in-process DuckDB adapter does not support this field; remove it from the source config.
Fired when a dbt_profile source expands to a duckdb target carrying plugins, filesystems, remote, or use_credential_provider and the in-process DuckDB backend executes it. A directly authored duckdb source is rejected at parse time instead. These fields need dbt-duckdb's own connection lifecycle (plugin hooks, fsspec registration, remote transport) that the in-process adapter does not implement; silently ignoring them would connect with different semantics than authored. There is no supported way to run this field through dbt charts today. Remove it from the source config or profiles.yml target.
ERR-BINDER-GROUP-BY: Warehouse rejected a column that is neither grouped nor aggregated¶
- Level: error
- Domain: execute
- Suppressible: no
Message template:
Warehouse rejected the query because a selected column is neither grouped nor aggregated: {detail}. Add the column to GROUP BY or wrap it in an aggregate such as max() or any_value().
Fired when the warehouse reports that a selected column must appear in the GROUP BY clause or be used in an aggregate function. The column exists; add it to GROUP BY or wrap it in an aggregate.
ERR-BINDER-QUERY-SHAPE: Warehouse rejected how a UNION or ORDER BY is assembled¶
- Level: error
- Domain: execute
- Suppressible: no
Message template:
Fix: For UNION, give every SELECT the same number of columns in the same order. ORDER BY positions must be within the select list. To ORDER BY an expression over a UNION, wrap the UNION in a subquery and ORDER BY in the outer SELECT.
Fired when the warehouse's binder rejects a UNION whose branches differ in column count, an ORDER BY position outside the select list, or an ORDER BY expression over a UNION. The column and table names resolved fine. A selected column missing from GROUP BY is ERR-BINDER-GROUP-BY.
ERR-BINDER-TYPE-MISMATCH: Warehouse rejected the query due to a type mismatch¶
- Level: error
- Domain: execute
- Suppressible: no
Message template:
Warehouse rejected the query due to a type mismatch: {detail}. Add explicit type casts to resolve ambiguity.
Fired when the warehouse reports a type mismatch during query binding. Add explicit type casts to resolve the ambiguity.
ERR-BINDER-UNKNOWN-COLUMN: Warehouse rejected an unknown column reference¶
- Level: error
- Domain: execute
- Suppressible: no
Message template:
Warehouse could not resolve a column reference: {detail}. Check that all referenced columns exist in the source.
Fired when the warehouse reports that a column reference could not be resolved during query binding. On DuckDB the message ends with the nearest real column (case, spaces and underscores ignored), or the relation's columns when none is near.
ERR-BINDER-UNKNOWN-RELATION: Warehouse reports a table or view does not exist¶
- Level: error
- Domain: execute
- Suppressible: no
Message template:
Warehouse could not find a table or view: {detail}. Check that the relation exists and the connection can read it.
Fired when the warehouse reports that a table, view or schema the query names does not exist or is not visible to the connection. For a ref() or source() the relation may have moved since the dbt manifest was built; dct doctor warns when profiles.yml is newer than the manifest, and dbt parse refreshes it. On Snowflake the message adds that a missing object and a missing grant are reported identically, so check the name and schema for a typo before asking for access.
ERR-BOARD-QUERY-NOT-FOUND: Board has no query with this name¶
- Level: error
- Domain: execute
- Suppressible: no
Message template:
Fired when a named-query run (dct query BOARD NAME, or execute_sql with board and query) names a query the board does not declare under queries:. Distinct from ERR-UNKNOWN-QUERY, where a chart references the missing query.
ERR-CACHE-FILE-UNAVAILABLE: The query-result cache file could not be opened¶
- Level: error
- Domain: execute
- Suppressible: no
Message template:
Could not open the query-result cache at {path} after retrying for {seconds}s: {detail} If another process is holding the file open, close it; otherwise check that the file is readable and writable and the disk has space. To go on without it, pass --cache PATH for another file, or --no-cache.
Fired when the query-result cache file cannot be opened for the whole retry window. The message carries DuckDB's own description of why. One cause is another process holding the file: it is a DuckDB database, which one process at a time may open for writing. dbt Charts opens it only for the length of each read or write, so several dct processes normally share it, but a process that keeps it open, such as a DuckDB shell or a release that held the cache for the life of the process, locks the others out. The other causes are a file that is damaged, not readable or writable by this user, or on a full disk. Results are never served from a substitute in-memory cache, because that would silently re-run every query against the warehouse.
ERR-CACHE-NOT-ATTACHED: SQL reads cached rows but no result cache is attached¶
- Level: error
- Domain: execute
- Suppressible: no
Message template:
This dbt Charts server runs with no query-result cache (DCT_CACHE_PATH attaches one), so `{{{{ queries.{query}.cache }}}}` has no rows to read. `{{{{ queries.{query} }}}}` runs the board's query fresh.
Fired by execute_sql with a board when the SQL reads a query's cached rows through .cache and the server was started without a result cache, as dct mcp serve is unless DCT_CACHE_PATH is set.
ERR-CACHE-PREFETCH-NEEDS-CACHE: A scope turns prefetch on under a scope that turned caching off¶
- Level: error
- Domain: compile
- Suppressible: no
Message template:
cache.prefetch: true on the {scope} scope needs caching on: prefetch warms the cache, and caching is turned off by cache: false at or above this scope. Remove prefetch, or turn caching on with cache: <duration> or cache: true.
Fix: Remove prefetch: true, or turn caching on at that scope with cache: <duration> or cache: true.
Fired when a cache cascade (project, source, board, query) puts prefetch: true on a scope below one that set cache: false, unless that scope states its own caching. Prefetch loads results into the cache, so with caching off there is nothing to warm.
ERR-CACHE-SQL-FAILED: SQL over cached rows failed¶
- Level: error
- Domain: execute
- Suppressible: no
Message template:
Fired by execute_sql with a board when SQL over cached query rows fails in the isolated DuckDB engine: a column the cached query does not have, or a function DuckDB lacks. The only tables are the queries the SQL names with .cache.
ERR-CHART-COLUMN-NOT-IN-RESULT: Chart channel references a column absent from the query result¶
- Level: error
- Domain: execute
- Suppressible: no
Message template:
Chart '{chart}' channel '{channel}' references column '{column}' which is not in the result of query '{name}'. Available columns: {columns}
Fired when a chart's channel (x, y, color, value, a table's columns, etc.) names a column that the backing query does not return: by dct validate --warehouse against the warehouse's schema, and at render against the rows the chart is about to draw (where it fails that chart; a zero-row result carries no columns and passes). Rename the channel to match a returned column, or update the query to return the expected column.
ERR-CHART-REF-QUERY-UNDECLARED: Chart ref needs a query its file does not declare¶
- Level: error
- Domain: compile
- Suppressible: no
Message template:
Chart ref '{chart_ref}' requires query '{name}', which is not declared in {file}'s queries: section. Declare '{name}' under `queries:` in {file}, or point the chart at a query that file declares.
Fix: Declare the query under queries: in the file the chart ref reads, or point the chart at a query that exists.
Fired when a chart read from another file names a query that file does not declare.
ERR-CHART-SOURCES-AMBIGUOUS: A chart is placed in boards with different sources¶
- Level: error
- Domain: compile
- Suppressible: no
Message template:
Chart '{chart}' is placed in boards with different sources, so its inline query has no one source. Declare the query by name under `queries:` and point the chart at it, or place the chart in boards that share one source.
Fix: Declare the chart's query by name under queries:, or place the chart in boards that share a source.
Fired when a chart that declares its query inline is placed in boards whose source: differ, so the inline query has no single source to run against.
ERR-COLUMN-NOT-FOUND: Column not found in the table¶
- Level: error
- Domain: execute
- Suppressible: no
Message template:
Column {column!r} not found in {schema}.{table}. Check the spelling against the table's catalog columns.
Fired when a schema query names a column the table's catalog entry does not list. The lookup matches the catalog's spelling exactly, so a name in the wrong case misses.
ERR-CONNECTION-NOT-PASSING: Connection not passing¶
- Level: error
- Domain: execute
- Suppressible: no
Message template:
Fired by dbtcharts.com before a board renders, when a source the board reads maps to a connection whose last test failed or that has never been tested. {reasons} names each source, its connection, and the dct cloud connection test command that re-runs the test; it never carries the test's own failure text, which only people who manage connections may read. Run the command, or fix the connection's credentials on its settings page, and the board renders on its next view.
ERR-DBT-CALL-UNSUPPORTED: dbt call form this engine cannot resolve¶
- Level: error
- Domain: execute
- Suppressible: no
Message template:
Could not resolve {call!r} against the dbt manifest: dbt charts reads the relation name from the call itself, so each argument must be a plain quoted string: {{{{ ref('model') }}}} or {{{{ source('source', 'table') }}}}.
Fix: Package-qualified ref('package', 'model'), versioned ref('model', v=2), and macro-computed arguments are not supported: each needs information the manifest lookup does not use, so resolving one would mean guessing which relation you meant. Name the model directly, or write the relation out.
Fired when a query's SQL calls dbt's ref() or source() in a form dbt charts cannot resolve to a single relation. dbt charts rewrites these calls textually against the manifest rather than executing dbt's Jinja, so it reads the names straight out of the call and every argument must be a plain quoted string. Rather than let an unrecognized call through to the warehouse (where it fails as a SQL syntax error naming {{, far from the cause), dbt charts reports it here.
ERR-DBT-COLUMN-FORMAT-UNKNOWN: A dbt column's meta.format names a format the board does not have¶
- Level: error
- Domain: execute
- Suppressible: no
Message template:
dbt {kind} {model!r} column {column!r} has meta.format {spec!r}, which is neither an engine format nor defined in this board's style.formats.
Fired when a board query reads a dbt column whose config.meta.format is not an engine format name and not a key in the rendering board's merged style.formats. Fix the value in the model's YAML, or define the name under the board's style.formats. A column the board never reads is never checked.
ERR-DBT-MANIFEST-MISSING: SQL uses a dbt macro but no manifest is available¶
- Level: error
- Domain: execute
- Suppressible: no
Message template:
SQL uses {kind} but no dbt manifest was found (looked for {paths}). Build one with `dbt parse` (`dbt parse --target <target> --target-path <dir>` for a source that sets `target_path:`).
Fired when a query's SQL calls ref() or source() but the project has no dbt manifest to resolve the call against. The manifest is what maps a model name to its warehouse relation, so without it dbt charts cannot know which table the query means. Run dbt parse (or any command that writes target/manifest.json) in the dbt project. A dbt_profile source that sets target_path: resolves against <target_path>/manifest.json instead: build it with dbt parse --target <target> --target-path <target_path>.
ERR-DBT-MANIFEST-UNREADABLE: dbt manifest could not be read¶
- Level: error
- Domain: execute
- Suppressible: no
Message template:
Fired when the manifest exists but cannot be read: the file is unreadable (OSError) or the JSON is malformed: usually a truncated write from an interrupted dbt run. Rebuild with dbt parse. The manifest's schema version is not checked: dbt charts reads the manifest as plain JSON rather than through dbt's typed contract, so a manifest written by a different dbt version still resolves refs normally.
ERR-DBT-MODEL-COLUMN-MISSING: Query references a column the dbt model no longer produces¶
- Level: error
- Domain: execute
- Suppressible: no
Message template:
Query {query_name!r} references column {column_name!r} of dbt model {model!r}, but the model's SQL does not produce it. Model columns: {available}.
Fired when a board query references a column of a dbt model whose output columns, derived statically from the model's SQL in target/manifest.json, do not include it. This catches a column renamed or dropped in the model before dbt run rebuilds the warehouse, when --warehouse validation still passes against the old table. If the model was just changed on purpose, update the board; if the manifest is stale, re-run dbt parse.
ERR-DBT-PROFILE-UNRESOLVED: The dbt profile for this source could not be read¶
- Level: error
- Domain: execute
- Suppressible: no
Message template:
Fix: A missing profiles.yml: create it, or set or unset DBT_PROFILES_DIR so it points where the file lives. An unknown profile: check profile: in dbt_project.yml, and DBT_PROFILE if set. An unknown or invalid target: check DBT_TARGET or --target and the fields that target's warehouse type requires.
Fired when a dbt_profile source, such as the one a dbt project gets automatically, cannot resolve its warehouse connection from its dbt profile. A missing profiles.yml: create it, or set or unset DBT_PROFILES_DIR so it points where the file lives. An unknown profile name: check profile: in dbt_project.yml, and DBT_PROFILE if it is set. An unknown or invalid target: check the target name (DBT_TARGET or --target) and the fields that target's warehouse type requires. A profiles_dir: on a source needs a linked dbt project to be relative to.
ERR-DBT-PROJECT-NO-LOCAL-WAREHOUSE: dbt project has no local DuckDB warehouse to query¶
- Level: error
- Domain: execute
- Suppressible: no
Message template:
The query's source did not resolve to a configured source, and the dbt project at {dbt_project_path!r} has no local DuckDB file under data/ (looked for {candidates}). Configure the source in dbt_charts.yml `sources:` or create the local warehouse file.
Fired when a SQL query names a source in a dbt project with no sources: configured, so it falls through to the project's local DuckDB warehouse, but no such file exists under data/. Running against an empty in-memory database would return a result that looks right but is not, so dbt charts refuses. For warehouse-free SQL, declare a type: duckdb source with path: ':memory:'.
ERR-DBT-REF-UNKNOWN-NODE: ref() names a node that isn't in the dbt manifest¶
- Level: error
- Domain: execute
- Suppressible: no
Message template:
SQL references {{{{ ref({ref_name!r}) }}}}, but no model, seed, or snapshot named {ref_name!r} exists in the dbt manifest. Available: {available}.{why}
Fired when a query's SQL calls the dbt ref() Jinja function with a name that is not present in the loaded manifest. ref() addresses models, seeds, and snapshots, not data tests or sources (use source() for those). Check for a typo, or refresh the manifest (dbt parse) if the node was added recently.
ERR-DBT-SOURCE-UNKNOWN-TABLE: source() names a table that isn't in the dbt manifest¶
- Level: error
- Domain: execute
- Suppressible: no
Message template:
SQL references {{{{ source({source_name!r}, {table_name!r}) }}}}, but no matching source table exists in the dbt manifest. Available sources: {available}.{why}
Fired when a query's SQL calls the dbt source() Jinja function with a source/table pair that is not present in the loaded manifest. Check for a typo, or refresh the manifest (dbt parse) if the source was added recently.
ERR-DBT-TARGET-PATH-INVALID: dbt target path is not usable¶
- Level: error
- Domain: execute
- Suppressible: no
Message template:
The dbt target path from {origin} is not usable: {detail}. Use a relative directory inside the dbt project, e.g. `target_path: target/prod` on the source.
Fired when the directory the manifest is read from (the source's target_path:, DBT_TARGET_PATH, or target-path: in dbt_project.yml) is absolute, climbs out of the dbt project, contains an unrendered Jinja template, or sits in a dbt_project.yml that is not valid YAML. Manifests are read through the project, so the directory must be relative to the dbt project root. Fix it where the message says it came from, or set a relative target_path: on the dbt_profile source, which wins over DBT_TARGET_PATH and target-path:. Only checked where a manifest is needed: a query calling ref() or source().
ERR-DRIVER-CHECKSUM-MISMATCH: The warehouse driver is not the pinned build¶
- Level: error
- Domain: execute
- Suppressible: no
Message template:
Fired when a warehouse driver does not match the SHA-256 pinned for its version and platform, either as downloaded or as already cached on disk. A downloaded file is discarded and no library is loaded. A cached file is never overwritten, because the cache is shared with dbt: delete the named file and retry. A download that repeats the mismatch is usually a truncated or proxy-rewritten response; a cached file that fails is truncated, corrupted or replaced.
ERR-DRIVER-PLATFORM-UNSUPPORTED: No warehouse driver is published for this machine¶
- Level: error
- Domain: execute
- Suppressible: no
Message template:
Lake compute has no ADBC driver on PyPI, so dbt Charts downloads dbt's own build for this machine's OS and CPU. Fired when no build exists for that combination. The download is refused rather than attempted, because dbt Charts will only run a binary whose SHA-256 it pinned in advance. Run dbt Charts on one of the platforms named in the message.
ERR-DRIVER-TOO-LARGE: The downloaded warehouse driver expanded past its size ceiling¶
- Level: error
- Domain: execute
- Suppressible: no
Message template:
A pinned SHA-256 says nothing about how far the bytes expand, and the expansion necessarily happens before the hash can be compared, so dbt Charts also caps the unpacked size. Nothing is written to the driver cache. A published driver is far below the cap, so this means the response was not the artifact dbt published.
ERR-DUPLICATE-QUERY-NAME: Two queries share one name¶
- Level: error
- Domain: compile
- Suppressible: no
Message template:
Duplicate query name {name!r}: declared in {first} and {second}. Every board in a file shares one set of query names, and a query read from another file takes a name of its own, so delete one if they are the same query, or rename one and update the `query:` of each chart that reads it.
Fired when two boards in the same file, a board and one nested in it or two nested boards, declare the same query name, or when a query declared on a board is named like the key a query read from another file is registered under (_ximport_<file>_<name>), or when two other files' queries share one such key. A chart on any board in the file can read a query declared on any other, so one declaration is enough.
ERR-FILE-SOURCE-AMBIGUOUS: Inline file source path exists at both candidate locations¶
- Level: error
- Domain: compile
- Suppressible: no
Message template:
Query {query_name!r}: inline file source {ref!r} exists at both {candidates}. Rename or remove one so only a single candidate exists.
Fired when a query's inline source: <path> ref resolves to a real file at both of its two candidate locations, the board's own directory and the project root (a bare path is tried against both anchors so it works from any board depth). dbt charts never silently prefers one anchor; move or rename one of the two files so only a single candidate remains.
ERR-FILE-SOURCE-DECIMAL-TOO-WIDE: File source decimal column exceeds precision 38¶
- Level: error
- Domain: execute
- Suppressible: no
Message template:
File source {source_name!r}, table {table_name!r}: column {column!r} in {relpath!r} is {column_type}, wider than the 38 significant digits the query engine's DECIMAL can hold. Re-export the column at precision 38 or less (BigQuery: CAST(col AS NUMERIC) instead of BIGNUMERIC), or split the digits across columns.
Fired when a decimal column in a file source is declared with more than 38 significant digits, whatever its values. Parquet's decimal type allows more precision than the query engine's DECIMAL, and BigQuery BIGNUMERIC exports routinely use it. Re-export the column at precision 38 or less, or split the digits across columns.
ERR-FILE-SOURCE-DUPLICATE-COLUMN: File source repeats a column name¶
- Level: error
- Domain: execute
- Suppressible: no
Message template:
File source {source_name!r}, table {table_name!r}: {relpath!r} names column {column!r} more than once. Column names are case-insensitive in SQL; rename one of the columns in the file.
Fired when a file's header (CSV) or schema (Parquet) names the same column twice, ignoring case. SQL could not tell the two apart, so the file is refused rather than one column being renamed. Rename one of the columns in the file.
ERR-FILE-SOURCE-INVALID: Inline file source is invalid¶
- Level: error
- Domain: compile
- Suppressible: no
Message template:
Query {query!r}: inline file source {source!r} is invalid: {reason}. Name a file whose stem is a valid SQL identifier (letters, digits and underscores), or declare the source under `sources:` in dbt_charts.yml.
Fix: Name a file whose stem is a valid SQL identifier, or declare the source under sources: in dbt_charts.yml.
Fired when a query's inline file source cannot be read as a source, for example because the file's stem is not a valid SQL identifier.
ERR-FILE-SOURCE-NOT-FOUND: File source path could not be read from disk¶
- Level: error
- Domain: execute
- Suppressible: no
Message template:
File source {source_name!r}: {relpath!r} could not be read ({detail}). Restore the missing file, fix the path, or fix its permissions.
Fired when a type: csv/json/parquet source's files: mapping, or a query's inline source: <path> ref, names a literal (non-glob) path that cannot be opened on disk: the leaf is missing, a path component traverses through an existing file instead of a directory, or the OS denies read access. {detail} carries the OS error string (e.g. "No such file or directory", "Not a directory", "Permission denied") so the message doesn't call a permissions problem a missing file. Unlike an empty glob match (ERR-GLOB-EMPTY), a literal path is never expanded, so this is the only place these failures surface. Compile probes an inline ref's two candidate locations (board directory, project root) only to choose between them; a path that exists at neither, like a files: path, fails here at query-execution time (dct render/dct serve), one chart at a time. Fix the path, add the missing file, or fix its permissions.
ERR-FILE-SOURCE-TOO-LARGE: File source relation exceeded the uncompressed-size cap¶
- Level: error
- Domain: execute
- Suppressible: no
Message template:
File source {source_name!r}, table {table_name!r}: reading {relpath!r} ({raw_mb:.1f} MB on disk) took this table to {size_mb:.1f} MB uncompressed, exceeding the {cap_mb:.1f} MB cap. Load less into this table — fewer files, fewer columns, or a pre-aggregated extract — or use a database connection for data this size.
Fired when the uncompressed size of a file-source relation (the file(s) backing one files: table entry) exceeds the effective execution.file_source_max_bytes limit. Every format is measured on the same basis: the file's own bytes for CSV and JSON, and for Parquet the uncompressed total its footer records, so choosing the compact format is never what gets a relation rejected. The message names no config key deliberately — the effective limit is the lower of the project's own execution.file_source_max_bytes and any deployment ceiling (DCT_FILE_SOURCE_MAX_BYTES_CEILING), so where a ceiling is what fired, raising the project setting does nothing. Lower the data volume, or use a database connection for data this size.
ERR-FILE-SOURCE-TOO-MANY-TABLES: File source exceeded the table-count cap¶
- Level: error
- Domain: execute
- Suppressible: no
Message template:
File source {source_name!r}: `files:` has {count} tables, exceeding the {cap}-table cap. Split the source, raise execution.file_source_max_tables in dbt_charts.yml, or use a database connection for large-scale data.
Fired when a file source's files: mapping declares more table entries than the configured execution.file_source_max_tables limit. A wide files: map can quietly fill the shared cache disk, split the source into multiple sources, raise the cap in dbt_charts.yml under execution: file_source_max_tables: <N>, or use a database connection for large-scale data.
ERR-FILE-SOURCE-UNSUPPORTED-TYPE: File source column type is not supported by the query engine¶
- Level: error
- Domain: execute
- Suppressible: no
Message template:
File table {table_name!r}: the query engine cannot load one of its column types. {detail} Re-export the file with the column cast to a standard SQL type.
Fired when a file carries a column type the query engine cannot represent. Re-export the file with the column cast to a standard SQL type.
ERR-GLOB-EMPTY: Glob pattern in file source matched no files¶
- Level: error
- Domain: execute
- Suppressible: no
Message template:
File source {source_name!r}, table {table_name!r}: glob pattern {pattern!r} matched no files. Provide at least one matching file or fix the pattern.
Fired when a glob pattern in a file source's files: mapping expands to zero files. Every glob must match at least one file; an empty match is always a configuration error. Check the pattern for typos, verify the files exist at the expected paths, and confirm the path is relative to the project root.
ERR-GLOB-SCHEMA-MISMATCH: Glob-matched files have inconsistent column schemas¶
- Level: error
- Domain: execute
- Suppressible: no
Message template:
File source {source_name!r}, table {table_name!r}: {path!r} disagrees with {first_path!r} on column names or types. {detail}All files matched by a glob must share the same column names and types.
Fired when a glob pattern in a file source's files: mapping expands to files whose column schemas disagree — either a differing set of column names, or the same column carrying a different type in one file than another. Align the schemas across all matched files, or split the source into separate entries with non-overlapping patterns.
ERR-GLOB-TOO-MANY: Glob pattern in file source exceeded the file-count cap¶
- Level: error
- Domain: execute
- Suppressible: no
Message template:
File source {source_name!r}, table {table_name!r}: glob pattern {pattern!r} matched {count} files, exceeding the {cap}-file cap. Increase execution.max_glob_file_count in dbt_charts.yml if needed.
Fired when a glob pattern in a file source's files: mapping matches more files than the configured execution.max_glob_file_count limit. Narrow the pattern, or raise the cap in dbt_charts.yml under execution: max_glob_file_count: <N>.
ERR-HTTP-QUERY-REMOVED: type: http queries were removed¶
- Level: error
- Domain: compile
- Suppressible: no
Message template:
`type: http` queries were removed. Load the data into your warehouse (for example with a connector) and query it with SQL, or use a committed CSV, JSON or Parquet file source.
Fired when a query authors type: http, or a url: with no type. Load the data into the warehouse, for example with a Fivetran connector, or commit the data as a CSV, JSON or Parquet file and query it through a file source.
ERR-INCREMENTAL-NOT-SQL: Incremental refresh is set on a query that is not SQL¶
- Level: error
- Domain: compile
- Suppressible: no
Message template:
Query '{query}': incremental refresh is only supported for SQL queries. Remove `incremental:` from this query, or make it a SQL query.
Fix: Remove incremental: from the query, or make it a SQL query.
Fired when a values or schema query names an incremental: watermark column; only SQL queries refresh incrementally.
ERR-JINJA-ERROR: Jinja template in a query failed to render¶
- Level: error
- Domain: compile
- Suppressible: no
Message template:
Fired when a Jinja template in a query or pre-query raises a rendering error. Check the template syntax and ensure all referenced values and filters are available.
ERR-METRICFLOW-BUNDLE-INVALID: MetricFlow bundle could not be loaded¶
- Level: error
- Domain: execute
- Suppressible: no
Message template:
Fired when the directory a source's metricflow: names holds no files, a fragment fails MetricFlow's schema, or its objects do not resolve (a relationship to an unknown entity, two datasets with one name). The path is relative to the project root. Fix the fragment, or in a dbt project run dbt parse so the dbt-metricflow-sql plugin rewrites target/metricflow/.
ERR-METRICFLOW-COMPILE-FAILED: MetricFlow could not compile this query¶
- Level: error
- Domain: execute
- Suppressible: no
Message template:
Fired when a query reads a dataset or constellation of the source's MetricFlow bundle and the compiler rejects it: an attribute or calculation the bundle does not declare, a table outside the bundle joined beside a dataset, or SQL MetricFlow cannot plan. The query never reaches the warehouse. Check the names against the bundle's fragments.
ERR-METRICFLOW-NO-BUNDLE: Source has no MetricFlow bundle to describe¶
- Level: error
- Domain: execute
- Suppressible: no
Message template:
Fired by dct semantics and the describe_semantics tool when the named source is not declared in the project's sources, or declares no metricflow: directory. Name a source from dct describe that declares one.
ERR-METRICFLOW-NOT-INSTALLED: MetricFlow compiler is not installed¶
- Level: error
- Domain: execute
- Suppressible: no
Message template:
This source declares a MetricFlow bundle (`metricflow:`), and the metricflow-sql library that compiles its queries is not installed in this Python environment. Install it with: {install}
Fired when a query runs against a source whose metricflow: names a semantic bundle and metricflow_sql cannot be imported. The compiler is optional and needs Python 3.12 or newer; install it into the environment dct runs from. A source without metricflow: never loads it.
ERR-METRICFLOW-OUTSIDE-BUNDLE: Query reads a table outside the required MetricFlow bundle¶
- Level: error
- Domain: execute
- Suppressible: no
Message template:
This source requires its MetricFlow bundle {bundle!r}, and the query reads {tables}, which the bundle does not declare. Every query on this source must read only the bundle's datasets and constellations; `dct semantics` lists them.
Fired when a source declares metricflow: with required: true and a query names a table the bundle does not declare: a warehouse table, a dbt relation, or a dataset spelled with a catalog. The query never reaches the warehouse. Rewrite it over the bundle's datasets and constellations, or declare the table as a dataset; a source whose bundle is optional runs such a query as written instead.
ERR-METRICFLOW-UNKNOWN-OBJECT: MetricFlow bundle declares no object of that name¶
- Level: error
- Domain: execute
- Suppressible: no
Message template:
Fired by dct semantics SOURCE NAME and the describe_semantics tool's name when the bundle declares no dataset, entity, constellation or page of that name. The message names the declared ones it nearly matches; the overview (no name) lists them all.
ERR-MUTATING-SQL: Non-read-only SQL is not allowed¶
- Level: error
- Domain: execute
- Suppressible: no
Message template:
dct refuses to execute non-read-only SQL. Statement: {rejected_node_kind}. Preview: {fragment_preview}.
Fired when dbt charts detects a non-SELECT statement (INSERT, UPDATE, DELETE, DROP, etc.) in a query. dbt charts only executes read-only SQL to prevent accidental data modification.
ERR-QUERY-CACHE-REF-UNKNOWN: A cache reference names a query the board does not define¶
- Level: error
- Domain: compile
- Suppressible: no
Message template:
Query '{query}' reads {{{{ queries.{ref}.cache }}}}, but no query named '{ref}' is defined. Available queries: {available}. Define '{ref}' under `queries:` or fix the name.
Fix: Define the referenced query under queries:, or fix the name in the queries.<name>.cache reference.
Fired when a query's SQL reads {{ queries.NAME.cache }} and the board and its imports define no query NAME. Python accepts such a board and fails only when it runs against a warehouse.
ERR-QUERY-DIALECT-MIXED: Composed queries declare different dialects¶
- Level: error
- Domain: compile
- Suppressible: no
Message template:
Query {query_name!r} (dialect: {dialect}) embeds {{{{ queries.{dep_name} }}}} (dialect: {dep_dialect}). Queries composed with {{{{ queries.X }}}} become one statement, so they must all declare the same `dialect:`.
Fix: Set the same dialect: on both queries, or on neither. A query that sets none is written in its source's own dialect.
Fired when a query embeds another with {{ queries.X }} and the two declare different dialect: values, counting an unset dialect: as a value.
ERR-QUERY-DURATION-EXCEEDED: Query exceeded the maximum allowed duration¶
- Level: error
- Domain: execute
- Suppressible: no
Message template:
Query exceeded max_query_duration_seconds={seconds}s on source {source!r}. Narrow the query (filter, aggregate, select fewer columns) rather than running it again unchanged.
Fired when a query runs longer than the configured max_query_duration_seconds limit on a source. Optimize the query, raise the limit, or add a WHERE clause to reduce the result set.
ERR-QUERY-EMBED-UNKNOWN: A query embeds a query the board does not define¶
- Level: error
- Domain: compile
- Suppressible: no
Message template:
Query '{query}' embeds {{{{ queries.{ref} }}}}, but no query named '{ref}' is defined. Available queries: {available}. Define '{ref}' under `queries:` or fix the name.
Fix: Define the embedded query under queries:, or fix the name in the queries.<name> reference.
Fired when a query's SQL embeds {{ queries.NAME }} and the board and its imports define no query NAME, such as after deleting a query another one still embeds. Python accepts such a board and fails only when it plans the query.
ERR-QUERY-FORMAT-COLUMN-MISSING: A query's formats: names a column the query did not return¶
- Level: error
- Domain: execute
- Suppressible: no
Message template:
Query '{query}' formats names column '{column}', which the query did not return. Returned columns: {columns}
Fired when a query's formats: key is not among the columns the query returns. Checked at compile for values queries, by dct validate --warehouse for SQL queries, and when rows come back at execution. A zero-row result carries no column names, so an empty result passes; dct validate --warehouse still checks the query's columns.
ERR-QUERY-FORMAT-SPEC: A query's formats: value is a format spec, not a format name¶
- Level: error
- Domain: compile
- Suppressible: no
Message template:
Query {query!r} formats.{column} is a format spec ({spec!r}), not a format name. Add `{column}_format: {spec!r}` under `style.formats`, then write `{column}: {column}_format` here.
Fired when a query's formats: value is a d3 or strftime spec ($,.0f, %b %Y) instead of a name. A query says what a column means by naming a format: an engine format (currency, percent, year, ...) or one the board defines in style.formats. The spec itself belongs in style.formats, where one definition restyles every column that names it.
ERR-QUERY-FORMAT-UNKNOWN: A query's formats: value names a format the board does not have¶
- Level: error
- Domain: compile
- Suppressible: no
Message template:
Query {query!r} formats.{column} names {spec!r}, which is neither an engine format nor defined in style.formats. Available: {available}
Fired when a query's formats: value is not an engine format name and not a key in the rendering board's merged style.formats. A query imported into another board is checked against that board's names, so a shared query naming a format of your own needs it defined in every board that imports it.
ERR-QUERY-INTERRUPTED: Query interrupted by server shutdown¶
- Level: error
- Domain: execute
- Suppressible: no
Message template:
Fired when dct serve stops while a query runs or waits to run. It says nothing about the query and is never cached; reload the board once the server is back.
ERR-QUERY-NAME-RESERVED-WORD: A query named like a SQL reserved word is composed as a table alias¶
- Level: error
- Domain: compile
- Suppressible: no
Message template:
Query '{name}' is referenced via {{{{ queries.{name} }}}}, but '{name}' is a SQL reserved word and cannot be used as a table alias. Rename the query to a non-reserved identifier, and update the references to it.
Fix: Rename the query to a name that is not a SQL reserved word.
Fired when a query that another query composes through a queries.NAME reference is named like a SQL reserved word, because the composed query becomes a table alias.
ERR-QUERY-NOT-IN-FILE: Query is not declared in the referenced file¶
- Level: error
- Domain: compile
- Suppressible: no
Message template:
Query '{name}' not found in '{file}'. Available queries: {available}. Name one of them after the `#`, or declare '{name}' under `queries:` in '{file}'.
Fix: Name a query the file declares under queries:, or declare it there.
Fired when a file#query reference names a query that the file's queries: section does not declare.
ERR-QUERY-REF-CYCLE: Query references form a cycle¶
- Level: error
- Domain: compile
- Suppressible: no
Message template:
Circular query reference while resolving chart ref '{chart_ref}': '{name}' in {file} depends on itself. Change '{name}' in {file} so it no longer reads itself, directly or through other file references.
Fix: Break the cycle so no query reads itself through the file references.
Fired while resolving a chart ref when a query in another file reads, directly or through other file references, the query being resolved.
ERR-QUERY-REF-INVALID: Query reference is not file#query¶
- Level: error
- Domain: compile
- Suppressible: no
Message template:
Invalid external query reference: '{ref}'. Expected format: 'path/to/file.yml#query_name'. Write the file path, a `#`, then the name of a query that file declares.
Fix: Write the reference as the file path, a #, then the query name, for example queries/sales.yml#revenue.
Fired when a query: that reads another file, or a chart ref, names no file or no query around its #.
ERR-QUERY-SHAPE-INVALID: A query breaks the shape its type allows¶
- Level: error
- Domain: compile
- Suppressible: no
Message template:
Fix: Change the query to the keys its type allows: sql, values or schema, one body only.
Fired when a query sets keys its type does not take, sets keys that exclude each other, or leaves out a key its type requires. The message names the query and the keys.
ERR-REPO-FILE-TOO-LARGE: Repository file exceeds the per-file size limit¶
- Level: error
- Domain: execute
- Suppressible: no
Message template:
Repo file too large: {file_path} is at or over the {limit_mb:.0f} MB per-file limit in a connected repo. Use a database connection for data this size.
Fired when a file in a connected repository is at or over the deployment's per-file size limit. dbt charts imposes this limit because large files are better served by a direct database connection rather than loading the entire file into memory.
ERR-RESULT-COLUMN-TYPE: A result column has no declarable type¶
- Level: error
- Domain: execute
- Suppressible: no
Message template:
Fix: Cast the column in the query, or make every value in an inline literal the same kind.
Fired when a result column's type cannot be declared: the source reports a type dbt Charts has no mapping for, or an inline literal (a values query) mixes kinds in one column or holds nothing to read a type from. Types come from the source's own declaration, never from guessing at cell values, so the column has to be cast in the query or made uniform in the literal.
ERR-RESULT-DUPLICATE-COLUMN: A query returned two columns with the same name¶
- Level: error
- Domain: execute
- Suppressible: no
Message template:
The query returned more than one column named {columns}. Rows are keyed by column name, so one would silently replace the other. Alias each column to a distinct name in the query.
Fired when a query result has two or more columns with the same name, for example select 1 as a, 2 as a or a join that selects id from both sides. Names are compared after the adapter's own case normalization.
ERR-RESULT-NO-TYPE-READER: This connection cannot report column types¶
- Level: error
- Domain: execute
- Suppressible: no
Message template:
Fix: Switch the source to a supported dbt adapter or protocol; casting a column does not help.
Fired when the warehouse connection a query runs on has no reader for column types: no reader exists for this dbt adapter, or the connection protocol (ClickHouse's native client) does not report them. This is a connection setup problem, not a column to cast; switch the source to a supported adapter or protocol.
ERR-RESULT-NUMERIC-OVERFLOW: A returned number is too large to represent¶
- Level: error
- Domain: execute
- Suppressible: no
Message template:
Column {column!r} holds a whole number too large for a 64-bit integer. Cast it in the query (e.g. to VARCHAR or FLOAT) to choose how it should be read.
Fired when a warehouse returns an integer wider than 64 bits. dbt Charts refuses to narrow it, because a driver's own narrowing can wrap silently and produce a plausible wrong number. Cast the column in the query to state what you want instead.
ERR-SCHEMA-NOT-FOUND: Schema not found in the source¶
- Level: error
- Domain: execute
- Suppressible: no
Message template:
Fired when a schema query names a schema the source's catalog does not list. The lookup matches the catalog's spelling exactly, so a name in the wrong case misses.
ERR-SETUP-SQL-COMPOSES-QUERY: setup_sql composes another query¶
- Level: error
- Domain: compile
- Suppressible: no
Message template:
Query '{query}': setup_sql must not contain {{{{ queries.X }}}} references. setup_sql is for non-nestable setup statements (CREATE TEMP FUNCTION, etc.). Move the reference into the query's `sql:`.
Fix: Move the queries.X reference out of setup_sql: and into sql:.
Fired when a query's setup_sql contains a queries.X reference; setup statements run untranslated, ahead of every query.
ERR-SOURCE-CONFIG-INVALID: Source configuration fails validation¶
- Level: error
- Domain: compile
- Suppressible: no
Message template:
Fired when a sources: entry in dbt_charts.yml fails typed SourceConfig validation. Check the source definition for missing required fields or invalid values, and refer to the sources reference for the expected schema.
ERR-SOURCE-CREDENTIAL-LITERAL: Source contains a raw credential literal¶
- Level: error
- Domain: compile
- Suppressible: no
Message template:
Source {source_name!r}: field {field!r} holds a raw credential literal. dbt_charts.yml is committed to git, so inline secrets leak on push. Reference the secret instead (e.g. {field}: {{{{ env_var('SECRET_NAME') }}}}), or use a `type: dbt_profile` source that delegates to an out-of-repo profiles.yml.
Fired when a sources: entry in the committed dbt_charts.yml contains a raw secret literal (password, API key, etc.). Since dbt_charts.yml is committed to git, inline secrets would be leaked on push. Reference the secret via env_var() or use a dbt_profile source type that delegates to an out-of-repo profiles.yml.
ERR-SOURCE-CROSS-FILE-FORBIDDEN: Cross-file source reference is not allowed¶
- Level: error
- Domain: execute
- Suppressible: no
Message template:
Fired when a source reference uses the YAML anchor cross-file form (#). Cross-file source references are not allowed; use a named source from the project allowlist instead.
ERR-SOURCE-INLINE-FORBIDDEN: Inline source definition is not allowed¶
- Level: error
- Domain: compile
- Suppressible: no
Message template:
Query {query_name!r}: inline source definitions are not allowed. Reference a source by name (`source: my_db`) instead. Got: {offending_value}
Fix: Use a named source declared under sources: in your dbt_charts.yml instead of inline connection parameters.
Fired when a query's source: is set to an inline dictionary instead of a named source reference. Inline source definitions are forbidden for security reasons: connection parameters in the committed YAML would leak credentials. Use a named source declared under sources:.
ERR-SOURCE-INVALID-TYPE: Unknown source type¶
- Level: error
- Domain: execute
- Suppressible: no
Message template:
Fired when a source's type: field names a source type that is not registered. Check for typos and refer to the documentation for the supported source types.
ERR-SOURCE-MISSING-TYPE: Source is missing the required type field¶
- Level: error
- Domain: execute
- Suppressible: no
Message template:
Fired when a source definition omits the required type: field. Add a type: field naming the source adapter to use.
ERR-SOURCE-NOT-FOUND: Query references an unknown source¶
- Level: error
- Domain: compile
- Suppressible: no
Message template:
Query {query_name!r} references unknown source {source!r}. Available sources: {available}. dct sources are declared under `sources:` in your dbt_charts.yml; the source name is not the dbt project name.{advice}
Fired when a query's source: names a source that is not declared in the sources registry. Check for typos and ensure the source is declared under sources: in your dbt_charts.yml. Also includes the execute-side failure of the same name (source lookup at query time).
ERR-SOURCE-NOT-FOUND-EMPTY: No source profiles are configured¶
- Level: error
- Domain: execute
- Suppressible: no
Message template:
Source {source!r} not found. No source profiles are configured. Declare sources under `sources:` in your dbt_charts.yml.{advice}
Fired when a query references a source but no source profiles are configured at all. Declare sources under sources: in your dbt_charts.yml.
ERR-SOURCE-NOT-NAMED: Query names no source¶
- Level: error
- Domain: execute
- Suppressible: no
Message template:
Fired when a SQL query reaches execution without naming a source. Set source: on the query, or once at the board root so every query inherits it, to one of the available sources. The only fallback is a dbt project that declares no sources:, whose implicit source is named after its dbt profile.
ERR-SOURCE-REQUIRED: Query has no source configured¶
- Level: error
- Domain: compile
- Suppressible: no
Message template:
Query {query_name!r}: SQL queries must have a source. Set it on the query (`source: my_db`), or at the board or folder meta.yml level (`source: my_db`).
Fired when a SQL query has no source: set at the query, board, or folder meta.yml level and no default source is configured. Set source: my_db on the query or as a default at a higher level.
ERR-SQL-DATE-LITERAL-VARIABLE: Variable quoted as a date/time/timestamp literal will not compile¶
- Level: error
- Domain: compile
- Suppressible: no
Message template:
Query {query_name!r} {field_label} casts a variable with {keyword} '{{{{ {variable} }}}}'. This source binds the variable as a query parameter, so its quotes are stripped and this compiles to {keyword} $N, which the warehouse does not parse. Use cast('{{{{ {variable} }}}}' as {keyword}) instead.
Fired when a query casts a Jinja variable to a date/time/timestamp using the SQL literal syntax (date '{{{{ var }}}}') on a source whose adapter binds variables as real query parameters (duckdb, sqlite). The parameterizer strips the quotes around every placeholder, so date '{{{{ var }}}}' compiles to date $1 -- syntax the warehouse does not accept. Other sources (postgres, snowflake, bigquery, dbt_profile, etc.) render variables as inline literal text instead, so the same SQL is valid there and this check does not fire. Use cast('{{{{ var }}}}' as date) (or time/timestamp) instead, which keeps the variable an ordinary string parameter and works on every source.
ERR-SQL-DIALECT-UNSUPPORTED: SQL cannot be translated to the warehouse dialect¶
- Level: error
- Domain: execute
- Suppressible: no
Message template:
Fix: Rewrite the statement with constructs both dialects share, or remove dialect: from the query and write it in the warehouse's own SQL.
Fired when a query sets dialect: to something other than its source's warehouse and its SQL cannot be translated safely: it calls a function the translator does not know, uses a construct with no equivalent in the warehouse, holds more than one statement, or does not parse. It also covers paths that do not translate at all (file sources, incremental queries) when dialect: differs from the warehouse.
ERR-SQL-LITERAL-NEWLINES: SQL contains literal backslash-n from single-quoted YAML¶
- Level: error
- Domain: compile
- Suppressible: no
Message template:
Query {query_name!r} {field_label} contains literal \n (backslash + n). Use YAML block scalar `{field_label}: |` to write multiline SQL:
queries:
my_query:
{field_label}: |
SELECT
col
FROM t
Fired when a query's SQL or pre-query string contains a literal backslash followed by 'n', which typically means YAML single-quote escaping swallowed an intended newline. Use a YAML block scalar (field: |) for multiline SQL to avoid this.
ERR-TABLE-NOT-FOUND: Table not found in the source¶
- Level: error
- Domain: execute
- Suppressible: no
Message template:
Table {schema}.{table} not found in source {source!r}. Check the spelling against the source's catalog.
Fired when a schema query names a table the source's catalog does not list under that schema. The lookup matches the catalog's spelling exactly, so a name in the wrong case misses.
ERR-TEMPLATE-OUTPUT-TOO-LARGE: Board render's cumulative template output exceeded the cap¶
- Level: error
- Domain: compile
- Suppressible: no
Message template:
This board render's templated fields (queries, titles, markdown, …) emitted more than {ceiling} bytes combined, stopping after {emitted_bytes} bytes. This is a render-wide cumulative cap, not a per-field one — a nested loop, a runaway variable expansion, or genuinely oversized content anywhere in the board can trip it. Reduce the amount of text a templated field (or their combination) produces.
Fired when the cumulative bytes emitted by every templated field (queries, titles, markdown, chart labels) in one board render exceed the effective execution.max_template_output_bytes limit — a hard error, not a truncation-with-warning like WARN-QUERY-RESULT-TRUNCATED: a truncated SVG or SQL string is a corrupt document, never a usable-with-a-caveat result. The message names no config key deliberately: the effective limit is the lower of the project's own config value and any deployment ceiling (DCT_MAX_TEMPLATE_OUTPUT_BYTES_CEILING), so it cannot be raised past the ceiling.
ERR-UNKNOWN-QUERY: Chart references an unknown query¶
- Level: error
- Domain: compile
- Suppressible: no
Message template:
Chart {chart_name!r} references unknown query {query_name!r}. Available queries: {available}. Declare the query under `queries:` or fix the typo in `query:`.
Fired when a chart's query: names a query that is not declared under queries: in the board or any included meta.yml. Check for typos and ensure the query is declared.
ERR-UNKNOWN-VARIABLE-QUERY: Variable references an unknown query¶
- Level: error
- Domain: compile
- Suppressible: no
Message template:
Variable {variable_name!r} references unknown query {query_name!r} in `{field}`. Available queries: {available}. Declare the query under `queries:` or fix the typo.
Fired when a variable's options.query or enabled.query names a query that is not declared under queries: in the board or any included meta.yml. Check for typos and ensure the query is declared.
ERR-UNPARSEABLE-SQL: SQL could not be parsed for static checks¶
- Level: error
- Domain: execute
- Suppressible: no
Message template:
Fix: First suspect a reserved word used as an alias or CTE name (drop, pivot, share, count): rename it or double-quote it. Then check for an unclosed ( or a missing comma between CTEs: the parser reports either at the next token, not where it was dropped, and the message leads with the paren count when they differ. PIVOT and UNPIVOT parse in every form DuckDB accepts. If the SQL is valid in your warehouse and still lands here, the construct is one the parser does not model; the error carries the position.
Fired when dbt charts' static SQL parser cannot parse a query. Every query is parsed for its read-only check before it reaches the warehouse, so a query the parser cannot read is refused, not sent. The usual cause is an authoring slip: an unclosed paren (the message leads with the ( and ) counts when they differ), or a missing comma between CTEs. Unmodeled dialect syntax and dbt macros land here too.
ERR-UNRESOLVED-REFERENCE: Reference points to an unknown name¶
- Level: error
- Domain: compile
- Suppressible: no
Message template:
Fired when a chart or layout reference names a target that cannot be found in the current board or any included files. Check for typos and ensure the referenced chart, query, or layout item is declared.
ERR-VALUES-ROW-SHAPE: A values row has the wrong number of cells¶
- Level: error
- Domain: compile
- Suppressible: no
Message template:
query '{query}': values row {row} does not have one cell per column. Rows count from 0; give each row of `values:` exactly one cell per entry of `columns:`.
Fix: Give each row of values: exactly one cell per entry of columns:.
Fired when a row of a values query is shorter or longer than its column list.
ERR-WAREHOUSE-AUTH: Warehouse rejected the credentials¶
- Level: error
- Domain: execute
- Suppressible: no
Message template:
Warehouse rejected the credentials: {detail}. Refresh or correct the credentials for this source (for BigQuery, `gcloud auth application-default login`), then run it again. The SQL is not at fault.
Fired when a query reaches the warehouse and fails because the credentials are expired, revoked, missing, or wrong: a stale BigQuery application-default login (invalid_grant, reauthentication needed), an expired Snowflake session token or wrong password, a rejected Postgres or Redshift password. The detail carries the warehouse's original message. Re-authenticate and re-run; the failure is never written to the result cache, so no --no-cache is needed.
ERR-WAREHOUSE-BYTES-CAP-EXCEEDED: Query would scan more than the source's byte cap¶
- Level: error
- Domain: execute
- Suppressible: no
Message template:
BigQuery refused the query before running it: it would scan at least {required}, over this source's {cap} per-query cap (maximum_bytes_billed). Narrow the query, then run it again: filter on a partition or date column, select only the columns you need, or aggregate. LIMIT does not reduce bytes scanned.
Fired when BigQuery rejects a job because its estimated bytes scanned exceed the source's maximum_bytes_billed. Nothing was billed. The cap is the source's own setting; the fix is a narrower query (partition or date filter, fewer columns, aggregation), since LIMIT bounds rows returned, not bytes scanned.
ERR-WAREHOUSE-CONNECTION: Could not open the warehouse¶
- Level: error
- Domain: execute
- Suppressible: no
Message template:
Could not open the warehouse for source {source!r} ({origin}): {reason} Run `dct doctor --with-warehouse` to test each connection.
Fix: Check the source's credentials, host, and network reachability in dbt_charts.yml or profiles.yml; for a database file, check that it exists and no other process holds its lock.
Fired when opening the connection fails, before any SQL is sent: a database file that is missing, unreadable, or lock-held by another process (DuckDB, SQLite), or bad credentials, an unreachable host, or a missing database/role on a network warehouse (Postgres, Snowflake, BigQuery, Databricks, …). Distinct from ERR-WAREHOUSE-RUNTIME because nothing ever read the SQL: the query may be perfectly good, so callers that judge queries (dct validate --warehouse) must not report it as a query defect. {reason} names the classified cause; the driver's own text (which may carry hostnames, PIDs, or usernames) is not shown here but is available in dct's diagnostics output and server logs. Check the source's credentials, host, and network reachability in dbt_charts.yml or profiles.yml. {source} is the source name; {origin} is its warehouse type and, for a dbt profile, the dbt project.
ERR-WAREHOUSE-PERMISSION: Warehouse denied access to a relation¶
- Level: error
- Domain: execute
- Suppressible: no
Message template:
Warehouse denied access for source {source!r}: {detail}. The credentials were accepted and the SQL was read; the role or account behind them lacks permission on a relation the query uses. Grant that access, or switch the source to a role or credentials that have it, then run it again. The SQL is not at fault.
Fired when a query reaches the warehouse and fails because the connected role or account lacks a grant on a relation: Postgres and Redshift permission denied for ... (SQLSTATE 42501), Snowflake Insufficient privileges (003001), BigQuery Access Denied (accessDenied), Databricks INSUFFICIENT_PERMISSIONS / PERMISSION_DENIED. Matched only on those known driver texts. The detail carries the warehouse's original message, which names the relation. Grant access or switch credentials and re-run; the failure is never written to the result cache, so no --no-cache is needed.
ERR-WAREHOUSE-QUERY-INVALID: Query failed warehouse validation¶
- Level: error
- Domain: execute
- Suppressible: no
Message template:
Fired when a query's SQL is rejected by the warehouse during dct validate --warehouse. The warehouse message carries the specific failure reason (unknown column, syntax error, etc.). Fix the SQL or re-run dbt parse if a referenced model was recently renamed.
ERR-WAREHOUSE-RESULT-WARNING: The warehouse reported a warning about this result¶
- Level: error
- Domain: execute
- Suppressible: no
Message template:
Fix: Change the query so the warning no longer applies, for example by selecting fewer rows.
Fired when the warehouse answered a query and attached a warning, such as an export limit that truncated the rows. A result the warehouse itself flagged as incomplete is a wrong answer that looks right, so dbt Charts raises rather than rendering it. Change the query so the warning no longer applies, for example by selecting fewer rows.
ERR-WAREHOUSE-RUNTIME: Warehouse rejected the query at runtime¶
- Level: error
- Domain: execute
- Suppressible: no
Message template:
Warehouse rejected the query: {detail}. Change the SQL to address what that message names, then run it again.
Fired when the warehouse rejects a query for an unclassified runtime error. The detail carries the warehouse's original error message.