79694482

Date: 2025-07-08 15:33:26
Score: 4
Natty:
Report link

Thanks for sharing your question — I know how frustrating this kind of error can be.

It looks like `dbt` can't locate the model you're referencing. Here are a few things you might want to double-check:

1. Spelling: Make sure that the name you're using in `ref('model_name')` exactly matches the filename (without the `.sql` extension) of your model in the `models/` directory.

2. File structure: Ensure your model is saved in the correct subfolder and not accidentally nested inside another file or mislocated.

3. dbt_project.yml: If you're using model-paths or subfolders, verify that the paths are correctly defined in your `dbt_project.yml` file.

4. Model is enabled: Check that the model is not disabled via a config block (`enabled: false`) or selector logic.

If you've already reviewed those and the issue persists, feel free to share a minimal reproducible example. I'm happy to take another look.

Best of luck — and welcome again to the DBT community! It's a great place to learn and share.

Warm regards,

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (1): regards
  • Blacklisted phrase (2): Thanks for sharing
  • Long answer (-1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Mehdi Atty