Delphi / Object Pascal · Database exception

dbExpress TransactionActive Error

What does dbExpress TransactionActive Error mean in Delphi / Object Pascal?

Returned when an operation is attempted on a TDBXConnection that requires no transaction to be active, but one already is - for example changing connection-level settings that can't change mid-transaction.

dbExpress TransactionActive ErrorDelphi (VCL) · Delphi (FireMonkey) · Delphi (dbExpress)

Condition

Returned when an operation is attempted on a TDBXConnection that requires no transaction to be active, but one already is - for example changing connection-level settings that can't change mid-transaction.

Fix

Commit or roll back the active transaction before performing an operation that requires a clean transaction state, and structure connection-level configuration changes to happen outside transaction boundaries.

Related database exception