| title | BCP082 |
|---|---|
| description | The name <name> doesn't exist in the current context. Did you mean <name>? |
| ms.topic | reference |
| ms.custom | devx-track-bicep |
| ms.date | 10/30/2025 |
This diagnostic is similar to BCP057, it occurs when the referenced name doesn't exist, likely due to a typo. The compiler identifies and suggests a similarly named symbol.
The name <name> doesn't exist in the current context. Did you mean <name>?
Warning / Error
Fix the typo.
The following example raises the diagnostic because substirng looks like a typo.
var prefix = substirng('1234567890', 0, 11)You can fix the diagnostic by using substring instead:
var prefix = substring('1234567890', 0, 11)For more information about Bicep diagnostics, see Bicep core diagnostics.