Medium severityconfiguration
Power BI Refresh Error:
CompilationError
What does this error mean?
A dbt command using the state:modified selector failed because no comparison manifest was found at the path specified by the --state flag.
Common causes
- 1The --state path points to a directory that does not contain a manifest.json from a prior production run
- 2The CI pipeline did not download the production artifacts before running dbt with --select state:modified
- 3The dbt Cloud job's Compare Changes configuration was not set up or the deferred job was deleted
- 4A fresh environment has no previous manifest because it has never completed a successful run
How to fix it
- 1Step 1: Confirm that manifest.json exists at the path provided to --state: ls -la ./prod-artifacts/.
- 2Step 2: In CI/CD pipelines, add a step to download the production manifest before running dbt — use dbt Cloud's artifacts API or your object storage bucket.
- 3Step 3: In dbt Cloud, configure the job's 'Defer to a previous run state' setting to reference the production environment's latest successful run.
- 4Step 4: For first-run environments, run dbt build without state selection to establish a baseline, then switch to state:modified for subsequent runs.