Informix Error -11032: Invalid transaction state.
Cause and resolution
Invalid transaction state.
This Informix CLI error code is the same as SQLSTATE value 25000. The following function can return this error code: SQLDisconnect().
A transaction is in process on the hdbc connection. The transaction remains active. Wait for the transaction to finish before you call SQLDisconnect() for the hdbc connection.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-11032 fires when SQLDisconnect() is called while a transaction is still active on the
connection — per the official guidance, this is the same as SQLSTATE value 25000.
- An in-process transaction on the
hdbcconnection at the time of theSQLDisconnect()call, per the official guidance — the direct, only cause; the transaction remains active.
Solutions / Resolution
- Wait for the transaction to finish before calling
SQLDisconnect(), per the official guidance.
Examples
N/A
No specific triggering statement is documented beyond disconnecting mid-transaction.
Diagnostic Checks
- Check for an open transaction on the connection, and commit or roll it back before disconnecting.
Related Errors / Related Topics
No closely related error codes are cross-referenced for -11032 in this set yet.
SQLDisconnect() was called with an active transaction still in progress — finish the
transaction first.