no version exists for query variable1
An attempt was made to query for a version of a document that does not exist.
Use dls:document-history to return the version history of the document, then retry the query for an existing version of the document.
dls:document-history
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.