High severitydbt
Power BI Refresh Error:
Compilation Error: Invalid YAML
What does this error mean?
Dbt encountered a YAML parsing error in a schema or configuration file. The file contains invalid YAML syntax that prevents it from being parsed.
Common causes
- 1Tabs used for indentation instead of spaces (YAML requires spaces)
- 2Duplicate keys under the same parent element
- 3Unquoted strings containing special characters such as colons or brackets
How to fix it
- 1Use a YAML linter (such as yamllint) to validate the affected .yml file.
- 2Replace any tab characters with spaces — YAML requires spaces for indentation.
- 3Look for duplicate keys under the same parent.
- 4Quote strings that contain special characters (colons, hyphens, brackets).
- 5Run `dbt parse` to identify which file is causing the error.
Frequently asked questions
Official documentation: https://docs.getdbt.com/guides/debug-errors