High severitycompilation
Power BI Refresh Error:
DependencyError
What does this error mean?
dbt cannot resolve a dependency between models, macros, or packages. The project's dependency graph has a broken reference that prevents dbt from determining the correct execution order.
Common causes
- 1A ref() points to a model that was renamed or deleted
- 2A source() references a source that is not defined in any sources.yml
- 3A package referenced in packages.yml cannot be found or the version does not exist
- 4A macro is referenced before it is defined in the project
- 5A model in a disabled package is referenced by an enabled model
How to fix it
- 1Run dbt ls to list all models and verify the referenced model exists
- 2Check if the referenced model was recently renamed — update all ref() calls to use the new name
- 3Run dbt deps to install packages and verify packages.yml is correct
- 4Check that the source() arguments match exactly a source defined in sources.yml
- 5Use dbt list --select <model> --output json to see the resolved dependencies