Message Text
Transaction with identifier variable1 already completed
Cause
A statement waiting to execute using an explicit transaction ID has found that the transaction has already been committed or rolled back before it could execute.
Response
Do not commit or rollback the transaction until all statements have finished executing using it.
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.