dbt "found N models ... but could not match any" selection in CI
dbt loaded the project and found your models, but the --select (or --models) criterion matched no nodes, so it reports "Nothing to do" or a warning that the selection matched nothing. The build silently did no work.
What this error means
dbt run prints "Found N models ..." then "Nothing to do. Try checking your model configs and model specification args" or "The selection criterion 'X' does not match any nodes".
Found 24 models, 8 tests, 0 snapshots, 0 analyses, 412 macros, 0 operations
The selection criterion 'tag:nightly' does not match any nodes
Nothing to do. Try checking your model configs and model specification argsCommon causes
A selector that matches no nodes
A tag, path, or model name in --select does not exist in the project (a typo, or a tag never applied), so the set is empty.
Wrong selection method syntax
Using --select path:wrong/dir or a misspelled method makes dbt resolve an empty set instead of erroring loudly.
How to fix it
List the graph and fix the selector
- Run
dbt lsto print the nodes dbt actually sees. - Confirm the tag, path, or name in
--selectexists in that list. - Correct the selector so it matches real nodes.
dbt ls --select tag:nightlyApply the tag the selector expects
If you select by tag, ensure the models actually carry it in their config.
{{ config(tags=['nightly']) }}How to prevent it
- Validate selectors with
dbt lsbefore wiring them into CI. - Keep tags and paths consistent between models and selectors.
- Treat an empty selection as a failure in scheduled jobs if work was expected.