# Deprecations

Deprecations are about features in your project code (models, configs, syntax) that will stop working in future versions.

note

Deprecated functionality still works in the v1.10 release but is no longer supported and will be removed in a future version. Deprecations currently show as warnings but don't prevent runs and other commands (unless you've configured [warnings as errors](./global-configs/warnings.md)), but will cause errors after upgrading if not addressed.

Not the same as [behavior change flags](./global-configs/behavior-changes.md) (which are opt-in/out flags in your `dbt_project.yml` file) or [deprecated CLI flags](../docs/dbt-versions/core-upgrade/upgrading-to-v2.md#deprecated-flags) (which are command-line flags being removed in Fusion). See the [Changes overview](./changes-overview.md) for a quick comparison.

Upgrading to [Fusion](../docs/dbt-versions/core-upgrade/upgrading-to-v2.md)? You must resolve all deprecations listed on this page before upgrading.

As dbt runs, it generates different categories of [events](./events-logging.md), one of which is *deprecations*. Deprecations are a special type of warning that lets you know that there are problems in parts of your project that will result in breaking changes in a future version of dbt. Although it's just a warning for now, it is important to resolve any deprecation warnings in your project to enable you to work with more safety, feedback, and confidence going forward.

## Identify deprecation warnings

Finding deprecations that impact your code can be a daunting task when looking at the standard logs. Identifying them is the first step towards remediation. There are several methods for quickly locating deprecations and automatically remediating some of them.

### dbt CLI

To view deprecations from your CLI, run:

```bash
dbt parse --no-partial-parse --show-all-deprecations
```

The `--no-partial-parse` flag ensures that even deprecations only picked up during parsing are included. The `--show-all-deprecations` flag ensures that each occurrence of the deprecations is listed instead of just the first.

(Applies to dbt v2.0 and later)

Fusion and `dbt parse`

When you use the dbt Fusion engine, omit `--no-partial-parse` from the command above. That flag is deprecated in Fusion and may log deprecation warning `dbt1700`. Run `dbt parse --show-all-deprecations` without `--no-partial-parse`.

For more information, refer to [Deprecated flags](../docs/dbt-versions/core-upgrade/upgrading-to-v2.md#deprecated-flags) in the guide to upgrading to the dbt Fusion engine.

```bash

19:15:13 [WARNING]: Deprecated functionality
Summary of encountered deprecations:
- MFTimespineWithoutYamlConfigurationDeprecation: 1 occurrence
```

### The dbt platform

If you're using dbt, you can view deprecation warnings from the **Dashboard** area of your account.

[![The deprecation warnings listed on the dbt dashboard.](/img/docs/dbt-platform/deprecation-warnings.png?v=2 "The deprecation warnings listed on the dbt dashboard.")](#)The deprecation warnings listed on the dbt dashboard.

Click into a job to view more details and locate the deprecation warnings in the logs (or run the `parse` command with flags from the Studio IDE or dbt CLI).

[![Deprecation warnings listed in the logs.](/img/docs/dbt-platform/deprecation-list.png?v=2 "Deprecation warnings listed in the logs.")](#)Deprecation warnings listed in the logs.

### Automatic remediation

Some deprecations can be automatically fixed with a script. Read more about it in [this dbt blog post](https://www.getdbt.com/blog/how-to-get-ready-for-the-new-dbt-engine#:~:text=2.%20Resolve%20deprecation%20warnings). [Download the script](https://github.com/dbt-labs/dbt-autofix) and follow the installation instructions to get started.

**Coming soon**: The IDE will soon have an interface for running this same script to remediate deprecation warnings in dbt.

### Silence deprecation warnings

dbt Labs recommends fixing deprecation warnings rather than silencing them. If you need to temporarily reduce noise in logs, use `--warn-error-options` with the `silence` parameter. This works with any dbt command, including `dbt test` and `dbt parse`.

For full configuration options (CLI flag, environment variable, and `dbt_project.yml`), refer to [Warnings](./global-configs/warnings.md).

To silence all deprecation warnings in dbt Core:

```bash
dbt test --warn-error-options '{"silence": ["Deprecations"]}'
```

(Applies to dbt v2.0 and later)

In Fusion, behavior differs from dbt Core:

* The `Deprecations` group may not silence all deprecation-style warnings. Prefer the specific event name from your logs (for example, `SemanticModelDeprecated`).
* Some deprecated configs are hard errors in Fusion and cannot be silenced. You must fix them.

For more information about how Fusion handles `warn_error_options`, supported names, and hard-error cases, refer to [Fusion behavior and warning codes](./global-configs/warnings.md#fusion-behavior-and-warning-codes).

## List of Deprecation Warnings

The following are deprecation warnings in dbt today and the associated version number in which they first appear.

### ArgumentsPropertyInGenericTestDeprecation

dbt has deprecated the ability to specify a custom top-level property called `arguments` on generic tests. This deprecation warning is only raised when the behavior flag `require_generic_test_arguments_property` is set to `false`.

#### ArgumentsPropertyInGenericTestDeprecation warning resolution

For example, you may have previously had a property called `arguments` on custom generic tests:

model.yml

```yaml
models:
  - name: my_model_with_generic_test
    data_tests:
      - my_custom_generic_test:
          arguments: [1,2,3]
          expression: "order_items_subtotal = subtotal"
```

You should set the `require_generic_test_arguments_property` flag to `true` and nest any keyword arguments to your test under the new `arguments` property:

model.yml

```yaml
models:
  - name: my_model_with_generic_test
    data_tests:
      - my_custom_generic_test:
          arguments: 
            arguments: [1,2,3]
            expression: "order_items_subtotal = subtotal"
```

Alternatively, the original `arguments` keyword could be renamed to something else that does not collide with the new `arguments` key in the dbt framework. This renaming would also need to occur in the test macro definition, and the renamed key would still need to be specified within the `arguments` property to be valid syntactically. For example:

model.yml

```yaml
models:
  - name: my_model_with_generic_test
    data_tests:
      - my_custom_generic_test:
          arguments:
            renamed_arguments: [1,2,3]
            expression: "order_items_subtotal = subtotal"
```

### ConfigDataPathDeprecation

In [dbt v1.0](<https://docs.getdbt.com/docs/dbt-versions/core-upgrade/Older versions/upgrading-to-v1.0.md>) `data-paths` has been renamed to [seed-paths](./project-configs/model-paths.md). If you receive this deprecation warning, it means that `data-paths` is still being used in your project's `dbt_project.yml`.

Example warning:

CLI

```bash
23:14:58  [WARNING]: Deprecated functionality
The `data-paths` config has been renamed to `seed-paths`. Please update your
`dbt_project.yml` configuration to reflect this change.
```

#### ConfigDataPathDeprecation warning resolution

Change `data-paths` to `seed-paths` in your `dbt_project.yml`.

### ConfigLogPathDeprecation

[dbt v1.5](<https://docs.getdbt.com/docs/dbt-versions/core-upgrade/Older versions/upgrading-to-v1.5.md>) specifying `log-path` in `dbt_project.yml` was deprecated. Receiving this deprecation warning means that `log-path` is still specified in your `dbt_project.yml` and it's not set to the default value `logs`.

Example:

CLI

(Applies to dbt v1.11 and later)

```bash
23:39:18  [WARNING]: Deprecated functionality
The `log-path` config in `dbt_project.yml` has been deprecated and will no
longer be supported in a future version of dbt-core. If you wish to write dbt
logs to a custom directory, please use the --log-path CLI flag or DBT_ENGINE_LOG_PATH
env var instead.
```

#### ConfigLogPathDeprecation warning resolution

Remove `log-path` from your `dbt_project.yml` and specify it via either the CLI flag `--log-path` or environment variable (Applies to dbt v1.11 and later) `DBT_ENGINE_LOG_PATH` [as documented here](./global-configs/logs.md#log-and-target-paths).

### ConfigSourcePathDeprecation

In [dbt v1.0](<https://docs.getdbt.com/docs/dbt-versions/core-upgrade/Older versions/upgrading-to-v1.0.md>) `source-paths` has been renamed to [model-paths](./project-configs/model-paths.md). Receiving this deprecation warning means that `source-paths` is still being used in your project's `dbt_project.yml`.

Example:

CLI

```bash
23:03:47  [WARNING]: Deprecated functionality
The `source-paths` config has been renamed to `model-paths`. Please update your
`dbt_project.yml` configuration to reflect this change.
23:03:47  Registered adapter: postgres=1.9.0
```

#### ConfigSourcePathDeprecation warning resolution

Change `source-paths` to `model-paths` in your `dbt_project.yml`.

### ConfigTargetPathDeprecation

In [dbt 1.5](<https://docs.getdbt.com/docs/dbt-versions/core-upgrade/Older versions/upgrading-to-v1.5.md>) specifying `target-path` in `dbt_project.yml` was deprecated. Receiving this deprecation warning means that `target-path` is still specified in your `dbt_project.yml` and it's not set to the default value, `target`.

Example:

CLI

(Applies to dbt v1.11 and later)

```bash
23:22:01  [WARNING]: Deprecated functionality
The `target-path` config in `dbt_project.yml` has been deprecated and will no
longer be supported in a future version of dbt-core. If you wish to write dbt
artifacts to a custom directory, please use the --target-path CLI flag or
DBT_ENGINE_TARGET_PATH env var instead.
```

#### ConfigTargetPathDeprecation warning resolution

Remove `target-path` from your `dbt_project.yml` and specify it via either the CLI flag `--target-path` or environment variable (Applies to dbt v1.11 and later) [`DBT_ENGINE_TARGET_PATH`](./global-configs/logs.md#log-and-target-paths).

### CustomKeyInConfigDeprecation

This warning is raised when you use custom config keys that dbt does not recognize as part of the official config spec. This applies to configuration blocks in both SQL and YAML files.

Example that results in the warning:

```yaml
models:
  - name: my_model
    config:
      custom_config_key: value
```

#### CustomKeyInConfigDeprecation warning resolution

Nest custom keys under `meta` and ensure `meta` is nested under `config` (similar to [`PropertyMovedToConfigDeprecation`](#propertymovedtoconfigdeprecation)). For example:

```yaml
models:
  - name: my_model
    config:
      meta:
        custom_config_key: value
```

### CustomKeyInObjectDeprecation

This warning is displayed when you specify a config that dbt does not recognize as part of the official config spec. This could be custom configs or defining `meta` as top-level keys in the `columns` list.

Previously, when you could define any additional fields directly under `config`, it could lead to collisions between pre-existing user-defined configurations and official configurations of the dbt framework.

As of dbt Core v1.10 and in the dbt Fusion engine, top-level config keys will be reserved for official configurations of the dbt framework.

This deprecation warning is only raised for the following adapters:

* Snowflake
* Databricks
* BigQuery
* Redshift

#### CustomKeyInObjectDeprecation warning resolution

Nest custom configs under `meta` and ensure `meta` is nested under `config` (similar to [`PropertyMovedToConfigDeprecation`](#propertymovedtoconfigdeprecation)).

The same resolution applies whether the custom key is in a model config or a generic test definition. Select the relevant tab for an example:

### Model config

Example that results in the warning:

```yaml
models:
  - name: my_model
    config:
      custom_config_key: value
    columns:
      - name: my_column
        meta:
          some_key: some_value
```

Example of the resolution:

```yaml
models:
  - name: my_model
    config:
      meta:
        custom_config_key: value
    columns:
      - name: my_column
        config:
          meta:
            some_key: some_value
```

### Generic test definition

If you define a custom key directly under a test in a `tests:` block, nest it under `config.meta`.

Example that results in the warning:

```yaml
tests:
  - name: custom_generic_test
    description: My custom generic test
    arguments:
      - name: active_timestamp
        type: timestamp
        description: The active timestamp for the model
```

Example of the resolution:

```yaml
tests:
  - name: custom_generic_test
    description: My custom generic test
    config:
      meta:
        arguments:
          - name: active_timestamp
            type: timestamp
            description: The active timestamp for the model
```

#### Accessing nested configurations

To access custom configurations nested under attributes of `meta`, use `config.get('meta')` and then index the meta dictionary by the name of your custom attribute. Users will need to adjust their code that accesses the custom config keys directly as top-level keys.

Example before custom configurations were nested under meta:

```jinja
{% set my_custom_config = config.get('custom_config_key') %}
```

After configs are nested:

```jinja
{% set my_custom_config = config.get('meta').custom_config_key %}
```

### CustomOutputPathInSourceFreshnessDeprecation

dbt has deprecated the `--output` (or `-o`) flag for overriding the location of source freshness results from the `sources.json` file destination.

#### CustomOutputPathInSourceFreshnessDeprecation warning resolution

Remove the `--output` or `-o` flag and associated path configuration from any jobs running dbt source freshness commands. There is no alternative for changing the location of only the source freshness results. However, you can still use `--target-path` to write *all* artifacts from the step to a custom location.

### CustomTopLevelKeyDeprecation

This warning informs users when they use custom top-level keys in their YAML files that are not supported by dbt.

This deprecation warning is only raised for the following adapters:

* Snowflake
* Databricks
* BigQuery
* Redshift

#### CustomTopLevelKeyDeprecation warning resolution

Move custom top-level keys in your YAML files under `config.meta`.

For example, when you use a custom top-level key such as `custom_metdata`:

dbt\_project.yml

```yaml
models:
  my_project:
    staging:
      +materialized: view
    marts:
      +materialized: table

custom_metadata:
  owner: "data_team"
  description: "This project contains models for our analytics platform"
  last_updated: "2025-07-01"
```

You should move the key under `config.meta`:

dbt\_project.yml

```yaml
models:
  my_project:
    staging:
      +materialized: view
    marts:
      +materialized: table

config:
  meta:
    custom_metadata:
      owner: "data_team"
      description: "This project contains models for our analytics platform"
      last_updated: "2025-07-01"
```

### DuplicateNameDistinctNodeTypesDeprecation

dbt raises this warning when two unversioned resources in the same package share the same name (for example, a model and a seed both named `sales`) and the `require_unique_project_resource_names` flag is set to `false`. Previously, dbt did not always detect these name conflicts, which meant duplicate names could sometimes point to the wrong resource.

When the `require_unique_project_resource_names` flag is set to `true`, dbt raises a `DuplicateResourceNameError`. For more information, see [Unique project resource names](./global-configs/behavior-flags/require_unique_project_resource_names.md).

#### DuplicateNameDistinctNodeTypesDeprecation warning resolution

Rename one of the conflicting resources to ensure all names are unique.

### DuplicateYAMLKeysDeprecation

This warning is raised when two identical keys exist in the `profiles.yml`.

Previously, if identical keys existed in the [`profiles.yml` file](../docs/local/profiles.yml.md), dbt would use the last configuration listed in the file.

profiles.yml

```yml

my_profile:
  target: 
  outputs:
...

my_profile: # dbt would use this profile key
  target: 
  outputs:
...
```

Note that in a future version, dbt will stop supporting duplicate keys with silent overwrite.

#### DuplicateYAMLKeysDeprecation warning resolution

Remove duplicate keys from your `profiles.yml` file.

### EnvironmentVariableNamespaceDeprecation

This warning is raised when you're using environment variables that conflict with dbt's reserved namespace `DBT_ENGINE`. Previously, both dbt internal variables and custom variables used the `DBT_` prefix⁠. If the environment variable defined in dbt collides with a custom environment variable, the project may break.

All new dbt environment variables are now prefixed with `DBT_ENGINE` to prevent naming collisions and minimize disruption for users.

#### EnvironmentVariableNamespaceDeprecation

Review your custom environment variables and ensure they don't conflict with dbt's reserved namespace `DBT_ENGINE`.

### ExposureNameDeprecation

In [dbt 1.3](<https://docs.getdbt.com/docs/dbt-versions/core-upgrade/Older versions/upgrading-to-v1.3.md#new-and-changed-documentation>), dbt began allowing only letters, numbers, and underscores in the `name` property of [exposures](./exposure-properties.md).

Example:

CLI

```bash
23:55:00  [WARNING]: Deprecated functionality
Starting in v1.3, the 'name' of an exposure should contain only letters,
numbers, and underscores. Exposures support a new property, 'label', which may
contain spaces, capital letters, and special characters. stg_&customers does not
follow this pattern. Please update the 'name', and use the 'label' property for
a human-friendly title. This will raise an error in a future version of
dbt-core.
```

#### ExposureNameDeprecation warning resolution

Ensure your exposure names only contain letters, numbers, and underscores. A more human-readable name can be put in the [`label`](./exposure-properties.md#overview) property of exposures.

### GenerateSchemaNameNullValueDeprecation

dbt raises this deprecation warning when a custom `generate_schema_name` macro returns a `null` value. Returning `null` schema names can lead to invalid or unpredictable behavior.

This deprecation warning is raised when the [`require_valid_schema_from_generate_schema_name` flag](./global-configs/behavior-flags/require_valid_schema_from_generate_schema_name.md) is set to `false`. When the flag is set to `true`, dbt raises an error during parsing.

#### GenerateSchemaNameNullValueDeprecation warning resolution

If your project defines a `generate_schema_name` macro, update the macro to return a valid schema name. For example:

macros/get\_custom\_schema.sql

```sql
{% macro generate_schema_name(custom_schema_name, node) -%}
    {%- if custom_schema_name is none -%}
        {{ return(target.schema) }}
    {%- else -%}
        {{ custom_schema_name | trim }}
    {%- endif -%}
{%- endmacro %}
```

### GenericJSONSchemaValidationDeprecation

This deprecation type is a catch-all/fallback. dbt attempts to handle all JSON schema validation errors with specific deprecation event types, but it is possible that we missed something. Missing something means that either dbt failed to handle a specific case with a deprecation event *or* the JSON schema is incorrect in a particular area.

#### GenericJSONSchemaValidationDeprecation warning resolution

If you are seeing this warning, unfortunately, there isn't much you can do at this time, but we are continuing to work on reducing instances of this deprecation. If you would like guidance on a specific instance you are seeing, please [contact support](mailto:support@getdbt.com) (available for cloud-based dbt platform customers) or the [community Slack](https://www.getdbt.com/community) (for dbt Core users).

### MFCumulativeTypeParamsDeprecation

In dbt [v1.9](../docs/dbt-versions/core-upgrade/upgrading-to-v1.9.md) implementing `window` and `time_to_grain` directly on the `type_params` of a [metric](./global-configs/behavior-flags/require_nested_cumulative_type_params.md) was deprecated.

Example:

CLI

```bash
15:36:22  [WARNING]: Cumulative fields `type_params.window` and
`type_params.grain_to_date` has been moved and will soon be deprecated. Please
nest those values under `type_params.cumulative_type_params.window` and
`type_params.cumulative_type_params.grain_to_date`. See documentation on
behavior changes:
https://docs.getdbt.com/reference/global-configs/behavior-changes.
```

#### MFCumulativeTypeParamsDeprecation warning resolution

Nest your `window` and `time_to_grain` under the `cumulative_type_params` property within the `type_params` of the relevant metric.

### MFTimespineWithoutYamlConfigurationDeprecation

Before dbt v1.9, the MetricFlow time spine configuration was stored in a `metricflow_time_spine.sql` file. In [v1.9](../docs/dbt-versions/core-upgrade/upgrading-to-v1.9.md) dbt introduced the [YAML timespine defintion](../docs/build/metricflow-time-spine.md#configuring-time-spine-in-yaml) for MetricFlow. It was then decided that it would be the standard going forward. If you see this deprecation warning, you don't have a YAML timespine definition for Metricflow.

Example:

CLI

```bash
19:56:41  [WARNING]: Time spines without YAML configuration are in the process of
deprecation. Please add YAML configuration for your 'metricflow_time_spine'
model. See documentation on MetricFlow time spines:
https://docs.getdbt.com/docs/build/metricflow-time-spine and behavior change
documentation:
https://docs.getdbt.com/reference/global-configs/behavior-changes
```

#### MFTimespineWithoutYamlConfigurationDeprecation warning resolution

Define your MetricFlow timespine in [YAML](../docs/build/metricflow-time-spine.md#creating-a-time-spine-table).

### MissingArgumentsPropertyInGenericTestDeprecation

dbt has deprecated specifiying keyword arguments as properties on custom generic data tests or data tests that use the [alternative `test_name` format](./resource-properties/data-tests.md#alternative-format-for-defining-tests). Instead, arguments to tests should be specified under the new `arguments` property.

This deprecation warning is only raised when the behavior flag `require_generic_test_arguments_property` is set to `true`.

#### MissingArgumentsPropertyInGenericTestDeprecation warning resolution

If you previously set arguments as top-level properties on custom generic tests:

model.yml

```yaml
models:
  - name: my_model_with_generic_test
    data_tests:
      - dbt_utils.expression_is_true:
          expression: "order_items_subtotal = subtotal"
```

Or using the alternative `test_name` format:

model.yml

```yaml
models:
  - name: my_model_with_generic_test
    data_tests:
    - name: arbitrary_name
      test_name: dbt_utils.expression_is_true
      expression: "order_items_subtotal = subtotal"
      where: "1=1"
```

You should now nest arguments under `arguments` and framework configurations under `config`:

model.yml

```yaml
models:
  - name: my_model_with_generic_test
    data_tests:
      - dbt_utils.expression_is_true:
          arguments: 
            expression: "order_items_subtotal = subtotal"
```

Or with framework configurations:

model.yml

```yaml
models:
  - name: my_model_with_generic_test
    data_tests:
    - name: arbitrary_name
      test_name: dbt_utils.expression_is_true
      arguments:
         expression: "order_items_subtotal = subtotal"
      config:
        where: "1=1"
```

### MissingPlusPrefixDeprecation

dbt has deprecated specifying configurations without [the `+` prefix](https://docs.getdbt.com/reference/dbt_project.yml#the--prefix) in `dbt_project.yml`. Only folder and file names can be specified without the `+` prefix within resource configurations in `dbt_project.yml`.

Example:

CLI

```bash
18:16:06  [WARNING][MissingPlusPrefixDeprecation]: Deprecated functionality
Missing '+' prefix on `tags` found at `my_path.sub_path.another_path.tags` in
file `dbt_project.yml`. Hierarchical config
values without a '+' prefix are deprecated in dbt_project.yml.
```

This deprecation warning is only raised for the following adapters:

* Snowflake
* Databricks
* BigQuery
* Redshift

#### MissingPlusPrefixDeprecation warning resolution

If you previously set one of the impacted configurations without a `+`, such as `materialized`:

dbt\_project.yml

```yaml
models: 
  marts:
    materialized: table
```

You should now set it with the `+` prefix to disambiguate between paths:

dbt\_project.yml

```yaml
models: 
  marts:
    +materialized: table
```

### ModelParamUsageDeprecation

The `--models` / `--model` / `-m` flag was renamed to `--select` / `--s` way back in dbt Core v0.21 (Oct 2021). Silently skipping this flag means ignoring your command's selection criteria, which could mean building your entire DAG when you only meant to select a small subset. For this reason, the `--models` / `--model` / `-m` flag will raise a warning in dbt Core v1.10, and an error in Fusion. Please update your job definitions accordingly.

#### ModelParamUsageDeprecation warning resolution

Update your job definitions and remove the `--models` / `--model` / `-m` flag and replace it with `--select` / `--s`.

### ModulesItertoolsUsageDeprecation

dbt has deprecated the use of `modules.itertools` in Jinja.

Example:

CLI

```bash
15:49:33  [WARNING]: Deprecated functionality
Usage of itertools modules is deprecated. Please use the built-in functions
instead.
```

#### ModulesItertoolsUsageDeprecation warning resolution

If you are currently using functions from the `itertools` module within Jinja SQL templates, use the available built-in [dbt functions](./dbt-jinja-functions-context-variables.md) and [Jinja methods](../docs/build/jinja-macros.md) instead.

For example, the following SQL file:

models/itertools\_usage.sql

```sql
{%- set A = [1, 2] -%}
{%- set B = ['x', 'y', 'z'] -%}
{%- set AB_cartesian = modules.itertools.product(A, B) -%}

{%- for item in AB_cartesian %}
  {{ item }}
{%- endfor -%}
```

Should be converted to use alternative built-in dbt Jinja methods. For example:

macros/cartesian\_product.sql

```sql
{%- macro cartesian_product(list1, list2) -%}
  {%- set result = [] -%}
  {%- for item1 in list1 -%}
    {%- for item2 in list2 -%}
      {%- set _ = result.append((item1, item2)) -%}
    {%- endfor -%}
  {%- endfor -%}
  {{ return(result) }}
{%- endmacro -%}
```

models/itertools\_usage.sql

```sql
{%- set A = [1, 2] -%}
{%- set B = ['x', 'y', 'z'] -%}
{%- set AB_cartesian = cartesian_product(A, B) -%}

{%- for item in AB_cartesian %}
  {{ item }}
{%- endfor -%}
```

### PackageInstallPathDeprecation

The default location where packages are installed when running `dbt deps` has been updated from `dbt_modules` to `dbt_packages`. During a `dbt clean` dbt detected that `dbt_modules` is defined in the [clean-targets](./project-configs/clean-targets.md) property in `dbt_project.yml` even though `dbt_modules` is not the [`packages-install-path`](./project-configs/packages-install-path.md).

Example:

CLI

```bash
22:48:01  [WARNING]: Deprecated functionality
The default package install path has changed from `dbt_modules` to
`dbt_packages`. Please update `clean-targets` in `dbt_project.yml` and
check `.gitignore`. Or, set `packages-install-path: dbt_modules`
If you'd like to keep the current value.
```

#### PackageInstallPathDeprecation warning resolution

The following are recommended approaches:

1. Replace `dbt_modules` with `dbt_packages` in your `clean-targets` spec (and `.gitignore`).
2. Set `packages-install-path: dbt_modules` if you want to keep having packages installed in `dbt_modules`.

### PackageMaterializationOverrideDeprecation

The behavior where installed packages could override built-in materializations without your explicit opt-in is deprecated. Setting the [`require_explicit_package_overrides_for_builtin_materializations` flag](./global-configs/behavior-flags/require_explicit_package_overrides_for_builtin_materializations.md) to `false` in your `dbt_project.yml` allowed packages that matched the name of a built-in materialization to continue to be included in the search and resolution order.

#### PackageMaterializationOverrideDeprecation warning resolution

Explicitly override built-in materializations, in favor of a materialization defined in a package, by reimplementing the built-in materialization in your root project and wrapping the package implementation.

For example:

```jinja

{% materialization table, snowflake %}
    {{ return (package_name.materialization_table_snowflake()) }}
{% endmaterialization %}
```

Once you've added the override for your package, remove the `require_explicit_package_overrides_for_builtin_materializations: false` flag from your `dbt_project.yml` to resolve the warning.

### PackageRedirectDeprecation

This deprecation warning means a package currently used in your project, defined in `packages.yml`, has been renamed. This generally happens when the ownership of a package has changed or the scope of the package has changed. It is likely that the package currently referenced in your `packages.yml` has stopped being actively maintained (as development has been moved to the new package name), and at some point, the named package will cease working with dbt.

CLI

```bash
22:31:38  [WARNING]: Deprecated functionality
The `fishtown-analytics/dbt_utils` package is deprecated in favor of
`dbt-labs/dbt_utils`. Please update your `packages.yml` configuration to use
`dbt-labs/dbt_utils` instead.
```

#### PackageRedirectDeprecation warning resolution

Begin referencing the new package in your `packages.yml` instead of the old package.

### ProjectFlagsMovedDeprecation

The `config` property that had been configurable in `profiles.yml` was deprecated in favor of `flags` in the `dbt_project.yaml`. If you see this deprecation warning, dbt detected the `config` property in your `profiles.yml`.

Example:

CLI

```bash
00:08:12  [WARNING]: Deprecated functionality
User config should be moved from the 'config' key in profiles.yml to the 'flags' key in dbt_project.yml.
```

#### ProjectFlagsMovedDeprecation warning resolution

Remove `config` from `profiles.yml`. Add any previous [`config`](./global-configs/about-global-configs.md) in `profiles.yml` to `flags` in `dbt_project.yml`.

### PropertyMovedToConfigDeprecation

Some historical properties are moving entirely to configs.

This will include: `freshness`, `meta`, `tags`, `docs`, `group`, and `access`

Changing certain properties to configs is beneficial because you can set them for many resources at once in `dbt_project.yml` (project-level/folder-level defaults). More info on the difference between properties and configs [here](./configs-and-properties.md).

#### PropertyMovedToConfigDeprecation warning resolution

If you previously set one of the impacted properties, such as `freshness`:

```yaml

sources: 
  - name: ecom
    schema: raw
    description: E-commerce data for the Jaffle Shop
    freshness:
      warn_after:
        count: 24
        period: hour
```

You should now set it under `config`:

```yaml

sources: 
  - name: ecom
    schema: raw
    description: E-commerce data for the Jaffle Shop
    config:
      freshness:
        warn_after:
          count: 24
          period: hour
```

### ResourceNamesWithSpacesDeprecation

In [dbt 1.8](../docs/dbt-versions/core-upgrade/upgrading-to-v1.8.md#managing-changes-to-legacy-behaviors), allowing resource names to have spaces in them was deprecated. If you get this deprecation warning, dbt detected a resource name with a space in it.

Example:

CLI

```bash
16:37:58  [WARNING]: Found spaces in the name of `model.jaffle_shop.stg supplies`
```

#### ResourceNamesWithSpacesDeprecation warning resolution

Rename the resource in violation so it no longer contains a space in its name.

### SourceFreshnessProjectHooksNotRun

If you are seeing this, it means that the behavior flag `source_freshness_run_project_hooks` is set to `false` and either `on-run-start` or `on-run-end` is defined ([docs](./global-configs/behavior-flags/source_freshness_run_project_hooks.md)). Previously, project hooks wouldn't be run on sources when `dbt source freshness` was run.

Example:

CLI

```bash
19:51:56  [WARNING]: In a future version of dbt, the `source freshness` command
will start running `on-run-start` and `on-run-end` hooks by default. For more
information: https://docs.getdbt.com/reference/global-configs/legacy-behaviors
```

#### SourceFreshnessProjectHooksNotRun warning resolution

Set `source_freshness_run_project_hooks` to `true`. For instructions on skipping project hooks during a `dbt source freshness` invocation, check out the [behavior change documentation](./global-configs/behavior-flags/source_freshness_run_project_hooks.md).

### SourceOverrideDeprecation

The `overrides` property for sources is deprecated.

This deprecation warning is only raised for the following adapters:

* Snowflake
* Databricks
* BigQuery
* Redshift

#### SourceOverrideDeprecation warning resolution

Remove the `overrides` property and [enable or disable a source](./source-configs.md#configuring-sources) from a package instead.

### UnexpectedJinjaBlockDeprecation

If you have an unexpected Jinja block - an orphaned Jinja block or a Jinja block outside of a macro context - you will receive a warning, and in a future version, dbt will stop supporting unexpected Jinja blocks. Previously, these unexpected Jinja blocks were silently ignored.

macros/my\_macro.sql

```sql

{% endmacro %} # orphaned endmacro jinja block

{% macro hello() %}
hello!
{% endmacro %}
```

#### UnexpectedJinjaBlockDeprecation warning resolution

Delete the unexpected Jinja blocks.

### WEOIncludeExcludeDeprecation

The `include` and `exclude` options for `warn_error_options` have been deprecated and replaced with `error` and `warn`, respectively.

#### WEOIncludeExcludeDeprecation warning resolution

Anywhere `warn_error_options` is configured, replace:

* `include` with `error`
* `exclude` with `warn`

For example:

```yaml
...
  flags:
    warn_error_options:
      include:
        - NoNodesForSelectionCriteria
```

Should now be configured as:

```yaml
...
  flags:
    warn_error_options:
      error:
        - NoNodesForSelectionCriteria
```

## Was this page helpful?

YesNo

[Privacy policy](https://www.getdbt.com/cloud/privacy-policy)[Create a GitHub issue](https://github.com/dbt-labs/docs.getdbt.com/issues)

This site is protected by reCAPTCHA and the Google [Privacy Policy](https://policies.google.com/privacy) and [Terms of Service](https://policies.google.com/terms) apply.
