Lesstep
Azure Pipelines · YAML · Checked November 9, 2026

Azure Pipelines: "Unexpected symbol" or "Unrecognized value", "Located at position N within expression"

Azure Pipelines reads an expression, such as a condition, a ${{ }} or a $[ ], and stops at the first word it cannot use. The message gives that word, its position, and the expression as Azure Pipelines saw it, after any ${{ }} inside it was filled in. That last part usually shows the cause.

How to read it

/azure-pipelines.yml (Line: 99, Col: 14): Unexpected symbol: 'all-features'. Located at position 12 within expression: parameters.all-features.
##[error]Unrecognized value: 'dependencies'. Located at position 21 within expression: and(succeeded(), eq(dependencies.JobA.outputs['PSA.varBoolA'], 'true')).

The seven cases below come from the Stack Overflow questions on this message for Azure Pipelines: nine questions, about 33,000 views together.

When the pipeline is a pull request's build validation, the pull request waits on it: Azure DevOps Pull Requests, a plugin for JetBrains IDEs, lists the pull request's branch policies with their state in IntelliJ IDEA, Rider or PyCharm, and with Pro runs a failed build policy again once the YAML is fixed. Its Pipelines tab (version 1.0.86 and later) lists the runs of the repositories you have open and opens a failed task's log in the editor, free to read.

1. A name with a dash: Unexpected symbol: 'all-features'

Microsoft's page on expressions allows parameters.name only when the name starts with a letter or _ and goes on with letters, digits or _. For any other name, use the index form: ${{ parameters['all-features'] }}, variables['my-var'].

2. ${{ }} inside ${{ }}: Unexpected symbol: 'env', within eq(${{ env

Inside an expression, parameters and variables are read directly. Write ${{ if eq(parameters.env, 'prd') }}:, not ${{ if eq(${{ parameters.env }}, 'prd') }}:.

3. A missing brace: Unexpected symbol: 'apiName}${{location'

The expression runs to the next }}, so a ${{ }} that is closed with one brace swallows the text after it, as in '${{parameters.environmentName}}${{parameters.apiName}${{parameters.location}}'. Close each one with two braces.

4. elif: Unexpected symbol: 'eq', within elif eq(...)

The keyword is elseif, in its own list item like the if: - ${{ elseif eq(variables.buildpipe, 'exe') }}:. Microsoft's page on expressions lists if, elseif and else for conditional insertion.

5. A parameter's value pasted into a condition: Unrecognized value: 'sandbox'

condition: ne(${{ parameters.deploy_images }}, 'NO') becomes ne(sandbox, 'NO') before the run, and sandbox without quotes is not a value. Write the whole comparison as a template expression, as Microsoft's page on conditions does, or put quotes around the parameter:

condition: and(succeeded(), ${{ ne(parameters.deploy_images, 'NO') }})
condition: and(succeeded(), ne('${{ parameters.deploy_images }}', 'NO'))

6. dependencies on a step: Unrecognized value: 'dependencies'

Microsoft's page on expressions calls the context dependencies for jobs and stages: a job's or a stage's condition can read it, a step's cannot. Map the output into a job variable, then test the variable in the step, or move the condition up to the job:

- job: JobB
  dependsOn: JobA
  variables:
    varBoolA: $[ dependencies.JobA.outputs['PSA.varBoolA'] ]
  steps:
  - script: echo run
    condition: eq(variables['varBoolA'], 'true')

7. Run-time values in ${{ }}: Unrecognized value: 'resources', Unexpected symbol: '*'

Azure DevOps pull requests in IntelliJ IDEA, Rider and PyCharm

Azure DevOps Pull Requests, a plugin by Lesstep for JetBrains IDEs 2024.1 or later and Android Studio, reads the organization, project and repository from your git remote and lists the pull requests that wait for your review in an IDE tool window, on Azure DevOps Services and on Azure DevOps Server. It shows the branch policies of a pull request with their state, so a required build that has not passed is next to its pull request, and with Pro you run a failed or expired build policy again from there. The review inbox is free; voting, commenting, completing and creating are Pro, with a 30-day trial.

Get it on JetBrains Marketplace

Azure DevOps and Azure Pipelines are trademarks of Microsoft Corporation; IntelliJ IDEA, Rider and PyCharm are trademarks of JetBrains s.r.o. This page is not affiliated with or endorsed by Microsoft or JetBrains.

More: A task is missing · The 'name' parameter value '$(VAR)' is not a valid Boolean · A template expression is not allowed in this context · The step name X appears more than once · 日本語