High severityconfiguration
Power BI Refresh Error:
IncrementalStrategyNotSupportedError
What does this error mean?
A dbt incremental model failed because the incremental_strategy configured for the model is not supported by the database adapter being used, causing dbt to raise an error during compilation or execution.
Common causes
- 1A model uses incremental_strategy: merge but the target database adapter (e.g., dbt-redshift on older versions) does not support MERGE syntax
- 2A model uses incremental_strategy: insert_overwrite which is only supported by BigQuery, Spark, and Databricks adapters, not by Snowflake or Postgres
- 3A model was copied from a project using one adapter to a project using a different adapter without updating the incremental strategy to one the new adapter supports
How to fix it
- 1Step 1: Check which incremental strategies your adapter supports in the dbt documentation for your database (e.g., dbt-snowflake supports append, merge, delete+insert; dbt-bigquery supports insert_overwrite, merge).
- 2Step 2: Update the model's incremental_strategy config to a strategy supported by your adapter: {{config(materialized='incremental', incremental_strategy='merge')}}.
- 3Step 3: If the unsupported strategy is intentional (e.g., a cross-adapter project), use a conditional macro that selects the strategy based on target.type.
- 4Step 4: Run dbt compile on the model after the fix to confirm the strategy is now valid before running dbt build.