| title | BCP018 |
|---|---|
| description | Expected the <character> character at this location. |
| ms.topic | reference |
| ms.custom | devx-track-bicep |
| ms.date | 10/30/2025 |
This diagnostic occurs when a character, such as a bracket, is missing.
Expected the <character> character at this location.
Error
Add the missing character.
The following example raises the diagnostic because the code is missing a }.
output tennisBall object = {
type: 'tennis'
color: 'yellow'You can fix the diagnostic by adding the missing }.
output tennisBall object = {
type: 'tennis'
color: 'yellow'
}For more information, see Objects
The following example raises the diagnostic because the code is missing a ].
output colors array = [
'red'
'blue'
'white'You can fix the diagnostic by adding the missing ].
output colors array = [
'red'
'blue'
'white'
]For more information, see Arrays.
The following example raises the diagnostic because the code is missing = and the assigned value.
output month intYou can fix the diagnostic by completing the output declaration.
output month int = 3For more information, see Outputs.
For more information about Bicep diagnostics, see Bicep core diagnostics.