Document toolboxDocument toolbox

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

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

    Syntax error in CQL : space = IS

Fix

  1. Add quote-marks to the reserve words

    space = "$$space.key$$"