# No spaces in source and semantic model names

| require\_source\_and\_semantic\_model\_names\_without\_spaces | dbt **Latest** | dbt Core |
| ------------------------------------------------------------- | -------------- | -------- |
| Introduced                                                    | 2026.4         | 1.12.0   |
| Matured (default → `true`)                                    | —              | —        |
| Removed                                                       | —              | —        |

The `require_source_and_semantic_model_names_without_spaces` flag is set to `false` by default.

Source names and semantic model names should contain letters, numbers, and underscores — *not* spaces. dbt raises the [`ResourceNamesWithSpacesDeprecation`](../../deprecations.md#resourcenameswithspacesdeprecation) warning if it detects a space in a source name or semantic model name. When the `require_source_and_semantic_model_names_without_spaces` flag is set to `true`, dbt raises an error.

This flag extends [`require_resource_names_without_spaces`](./require_resource_names_without_spaces.md) to cover source and semantic model names specifically.

## 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.
