High severitydbt
Power BI Refresh Error:
Compilation Error: Incorrect YAML spec
What does this error mean?
A dbt schema YAML file has valid YAML syntax but does not conform to the dbt schema specification. Keys are unknown, misplaced, or required fields are missing.
Common causes
- 1Using dbt v1.5+ schema syntax on an older dbt version (or vice versa)
- 2Tests or columns placed at the wrong nesting level in schema.yml
- 3Unknown keys that are not part of the dbt schema specification
How to fix it
- 1Review the dbt documentation for the correct schema.yml structure for your dbt version.
- 2Check if you are mixing dbt v1.5+ syntax (models: key at top level) with older syntax.
- 3Look for properties placed under the wrong parent key.
- 4Run `dbt parse` to see which file and key is invalid.
Frequently asked questions
Official documentation: https://docs.getdbt.com/guides/debug-errors