Data session #number cannot be released with open transaction(s) (Error 1549)

A data session-based object is being closed while there are open transactions. The data session will remain active.

Close the data session by issuing SET DATASESSION TOnumber followed by the appropriate number of END TRANSACTION or ROLLBACK commands.