Low severitycompilation
Power BI Refresh Error:
IDECompilationError
What does this error mean?
The dbt Cloud IDE failed to compile a model during development, preventing preview execution, and displaying a compilation error message in the results pane.
Common causes
- 1A Jinja template error: unclosed blocks, undefined variables, or invalid macro calls in the SQL file
- 2A ref() or source() call points to a model or source that does not exist in the project
- 3The model uses a macro from a package that is not installed (packages.yml not run or missing entry)
- 4The dbt Cloud development environment is not connected to the correct dbt version or adapter
How to fix it
- 1Step 1: Read the compilation error message carefully — dbt reports the file, line number, and Jinja or SQL issue.
- 2Step 2: Fix Jinja syntax errors: check for unclosed {% %} blocks, missing endif/endfor, and correct variable names.
- 3Step 3: Verify that all ref() and source() names exist and are spelled correctly by searching the project in the IDE.
- 4Step 4: If a macro is undefined, confirm the package that provides it is listed in packages.yml and run 'dbt deps' in the IDE terminal.
- 5Step 5: Check that the IDE development environment targets the correct dbt version in the environment settings.