Error
Error Code: 1397

MariaDB Error 1397: Unknown XA Transaction ID

📦 MariaDB
📋

Description

Error 1397, XAER_NOTA, signifies that MariaDB cannot find a global XA transaction matching the provided XID (eXtended Transaction ID). This usually occurs in distributed transaction processing when attempting to commit or rollback a transaction that is either unknown, already completed, or never existed on the server.
💬

Error Message

XAER_NOTA: Unknown XID
🔍

Known Causes

4 known causes
⚠️
Incorrect XID Provided
The XID specified in the XA command does not match any active or prepared distributed transaction known to the MariaDB server.
⚠️
Transaction Already Processed
The distributed transaction associated with the XID has already been committed or rolled back by another process or participant, making subsequent operations on it invalid.
⚠️
Server State Loss
A MariaDB server restart or an unexpected shutdown may have resulted in the loss of knowledge about prepared XA transactions, rendering their XIDs unknown.
⚠️
Distributed Coordination Mismatch
In a multi-resource distributed transaction, the transaction coordinator or other participants may have lost sync or have a conflicting view of the XID's state with MariaDB.
🛠️

Solutions

Coming Soon

Detailed step-by-step solutions for this error are being prepared. In the meantime, try these general troubleshooting tips:

General Troubleshooting Tips

  • Check the error message carefully for specific details
  • Review recent changes that might have caused the error
  • Search for the exact error code in the official documentation
  • Check log files for additional context
  • Try restarting the application or service
🔗

Related Errors

5 related errors