Bird
0
0

A team tries to share a model by referencing it with ref('team_c.sales'), but the model does not exist. What is the likely error and how to fix it?

medium📝 Debug Q6 of 15
dbt - Governance and Collaboration
A team tries to share a model by referencing it with ref('team_c.sales'), but the model does not exist. What is the likely error and how to fix it?
ACompilation error; fix by creating the referenced model or correcting the name
BRuntime error; fix by restarting dbt
CSilent failure; no fix needed
DWarning only; ignore and continue
Step-by-Step Solution
Solution:
  1. Step 1: Identify error from referencing non-existent model

    dbt throws a compilation error if a referenced model does not exist.
  2. Step 2: Determine how to fix the error

    Fix by either creating the missing model or correcting the reference name in ref().
  3. Final Answer:

    Compilation error; fix by creating the referenced model or correcting the name -> Option A
  4. Quick Check:

    Missing model ref = compile error [OK]
Quick Trick: Check model names carefully to avoid compile errors [OK]
Common Mistakes:
MISTAKES
  • Thinking error is runtime
  • Ignoring missing model errors
  • Assuming warnings instead of errors

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More dbt Quizzes