High severitycompilation
Power BI Refresh Error:
CrossProjectRefNotFound
What does this error mean?
A dbt Mesh project referenced a model from an upstream project using the cross-project ref syntax, but the upstream model could not be resolved because the project dependency is not configured or the model does not exist.
Common causes
- 1The upstream project is not listed under 'projects' in the dependencies.yml file of the consuming project
- 2The upstream model's access level is set to 'protected' (the default), preventing cross-project references
- 3The dbt Cloud environment for the consuming project is not connected to the upstream project's metadata service
- 4The upstream model was renamed or deleted without updating consuming project refs
How to fix it
- 1Step 1: Confirm the upstream project is listed in the consuming project's dependencies.yml under the 'projects' key.
- 2Step 2: In the upstream project, set the referenced model's access to 'public' in the model's YAML configuration.
- 3Step 3: In dbt Cloud, ensure both projects are connected — the consuming project environment must be linked to the upstream project's production environment.
- 4Step 4: Verify the upstream model name in the ref() call matches exactly, including any version suffix if versioned models are used.
- 5Step 5: Run 'dbt compile' in the consuming project to confirm the cross-project ref resolves before scheduling a run.