New: Cookbooks and AI ExplanationsStep-by-Step recipes to solve problems connected to Roadmaps and Cheat Sheets. Need more details? Use AI buttons for structured and simple explanations with concrete examples throughout the whole platform.Take a look
dbt run just failed: Found a cycle. No idea which two models are pointing at each other.
What you'll have at the end
A dbt project that compiles and runs again: the two mart models that were pointing at each other now share a new intermediate model instead, and every downstream value comes out the same as the design intended.
You need
A dbt project with a staging layer already in place and two mart-level models whose ref() calls point at each other, producing a failed run and a 'Found a cycle' error.
Not covered
A model that legitimately needs its own last build through the {{ this }} variable is a single model referencing itself, a different problem from two separate models pointing at each other.
Checked 25 Aug 2026
Part of the dbt (Data Build Tool) cookbook