In a database procedure, more or less subtransactions were dynamically opened than 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 nesting of subtransactions. Correct the database procedure.