Power QueryExercises

Expression.SyntaxError: Token Literal expected

By Tahir Nas · Examples run in our simulator · Updated

Expression.SyntaxError: Token Literal expected.

The parser reached a place where a value should be, such as after an operator or before a closing bracket, and found nothing. Typically an expression was cut off while editing.

Common causes

How to fix it

  1. Complete or remove the dangling operator.
  2. Remove trailing commas inside lists and records.
  3. Undo the last edit, then make the change in smaller pieces.

Find the step that fails

Minimal example

Raises the error:

1 + 

Fixed:

1 + 2

Both snippets are run by the Power Query Exercises simulator on every build: the first must raise Expression.SyntaxError, the second must run.

Related lessons

Similar errors