data build_error ai_generated true

Compilation Error: model depends on missing source

ID: data/dbt-model-compilation-error

Also available as: JSON · Markdown
82%Fix Rate
86%Confidence
3Evidence
2023-01-01First Seen

Version Compatibility

VersionStatusIntroducedDeprecatedNotes
any active

Root Cause

dbt model references undefined source or model.

generic

Workarounds

  1. 88% success Run dbt deps and verify sources.yml configuration
  2. 90% success Check model reference: {{ ref("model_name") }} spelling

Dead Ends

Common approaches that don't work:

  1. Hardcode table names instead of ref()/source() 82% fail

    Loses dbt lineage tracking

  2. Create stub models 78% fail

    Wrong data in downstream models