Message Text
Forest variable1 cannot be attached to target database
Cause
The operation is required to be executed against a database that doesn't have the subject forests attached.
Response
Issue the query against a different database that doesn't have the subject forests attached.
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.