You will need to inspect the code that is causing this error. Look for any eval, invoke, or spawn functions, and see what options have set the transaction-mode to update
.
transaction-mode
[DEPRECATED: Use the update
and commit
options instead.] Explicitly set the transaction mode for this context. Allowed values: auto
(default), query
, update-auto-commit
, update
. For details, see Transaction Mode in the Application Developer's Guide.
For simple updates to be implicitly committed, specify a transaction mode of update-auto-commit
. A transaction mode of update creates a new multi-statement update transaction and requires an explicit commit in the code.
Within a session there can be only one active multi-statement transaction at a time. If a new multi-statement transaction is specified nested inside a multi-statement transaction, MarkLogic throws the exception XDMP-NESTEDMULTI.
https://docs.marklogic.com/8.0/messages/XDMP-en/XDMP-NESTEDMULTI
Cause
An eval or invoke with transaction-mode update
was attempted in a multi-statement transaction.
Response
Use transaction-mode update-auto-commit
instead.