dbt Error:
GraphDependencyNotFoundError
What does this error mean?
dbt resolved all ref() and source() names successfully, but when building the execution graph, a referenced node is absent from the compiled set — typically because it was excluded by a selector, disabled in a package, or not yet installed.
Common causes
- 1A model is referenced with ref() but was renamed, deleted, or moved to a disabled package
- 2The model being referenced is excluded by the current dbt selector
- 3A model in a different dbt project is referenced without a cross-project ref configuration
- 4The model exists but is in a subfolder and the path is resolved incorrectly
- 5A recent refactoring renamed a model but not all ref() calls were updated
How to fix it
- 1Run `dbt ls --select <model_name>` to confirm whether the node exists in the current compiled graph.
- 2Search your project for `ref('<missing_model>')` to find every file that references it, then update those calls to the new model name if it was renamed.
- 3If the model lives in a package, run `dbt deps` to reinstall packages and confirm the package is not marked `disabled: true` in packages.yml.
- 4For cross-project refs in dbt Mesh, verify the upstream project is declared as a dependency in dependencies.yml and that the model's access level is set to `public`.
- 5Run `dbt compile` to surface all unresolved graph dependencies before triggering the full run.
Frequently asked questions
Source · docs.getdbt.com/reference/exceptions