Message Text
Invalid syntax for path index: variable1 exception_stack
Cause
Only a subset of XPath 2.0 syntax is allowed in index creation. User has supplied a path expression that has some non-permitted syntax.
Response
Check the syntax of path expression. Only a sub-set of XPath 2.0 grammar is allowed in index creation.
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.