High severityconfiguration
Power BI Refresh Error:
SnapshotCheckStrategyError
What does this error mean?
A dbt snapshot using the check strategy failed because the check_cols configuration is missing, contains columns not present in the source table, or the strategy encountered a data type incompatibility when comparing column values.
Common causes
- 1check_cols is set to a list that includes a column that was dropped from the upstream source table in a schema change
- 2check_cols: all is used but one or more columns in the source contain data types that cannot be compared (e.g., JSON blobs or nested types on some adapters)
- 3The check_cols list was not updated after a column was renamed in the source, causing dbt to fail when it cannot find the old column name
How to fix it
- 1Step 1: Run DESCRIBE TABLE <source_table> or dbt show --select <source_model> to list the current columns and verify all check_cols entries exist.
- 2Step 2: Update the snapshot YAML or config block to remove or replace any check_cols entries that reference dropped or renamed columns.
- 3Step 3: If using check_cols: all and encountering type comparison errors, switch to an explicit list of comparable scalar columns to avoid comparing incompatible types.
- 4Step 4: After fixing the configuration, run dbt snapshot to verify the snapshot executes cleanly.