Database variable1 contains no forests
You tried to upload to a database that is not attached to a forest.
Add at least one forest to the database and try again.
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.