Medium severityconfiguration
Power BI Refresh Error:
TestConfigError
What does this error mean?
dbt could not parse or compile a test definition due to an invalid test configuration. This prevents the test from running and, depending on job settings, can block the entire job. TestConfigError appears when a test's config block contains unrecognised properties, wrong value types, or references to columns or sources that do not exist.
Common causes
- 1A generic test (e.g., `accepted_values`) is missing a required argument such as `values:` in the test config
- 2A custom test macro is referenced in schema.yml but the macro does not exist in the project or installed packages
- 3The `severity` key on a test config uses an unsupported value (must be `warn` or `error`)
- 4A column-level test references a column that was removed from or renamed in the model
- 5A singular test (SQL file in tests/) references a model or source using ref() or source() that does not exist in the project
How to fix it
- 1Run `dbt compile` locally to get the full error message with file name and line number.
- 2Verify that every test macro referenced in schema.yml is available — run `dbt ls --resource-type test` to confirm tests resolve correctly.
- 3Check that all required arguments for generic tests are present (e.g., `values:` for `accepted_values`, `to:` and `field:` for `relationships`).
- 4Confirm columns referenced in column-level tests still exist in the model's SELECT after any recent refactors.
- 5For custom test macros from packages, verify the package is listed in packages.yml and `dbt deps` has been run.