In a database procedure, more or fewer subtransactions were dynamically opened than were closed. The subtransactions opened but not closed until the end of the database procedure were rolled back.
Check which error in the database procedure generated this nesting of subtransactions. Correct the database procedure.