Common syntax error in CQL


Space key is a reserve word

Click here for the list of reserve word

Steps to Reproduce

  1. Create a new space with space key “IS”

  2. Edit the home page and create a CQL Search Macro with the following CQL

    1 space = $$space.key$$
  3. You will get this error message

    1 Syntax error in CQL : space = IS

Fix

  1. Add quote-marks to the reserve words

    1 space = "$$space.key$$"