6101 Transaction command out of sequence

Advantage Error Guide

Problem: The application contained a nested transaction.

Solution: Make sure a BEGIN TRANSACTION command is followed either by a COMMIT TRANSACTION or a ROLLBACK TRANSACTION before another BEGIN TRANSACTION is issued. Also, a COMMIT TRANSACTION or a ROLLBACK TRANSACTION cannot be issued without first issuing a successful BEGIN TRANSACTION.