What does HRESULT 0xC00E009C (MQ_ERROR_MESSAGE_LOCKED_UNDER_TRANSACTION) mean?

 
Previous Next
MQ_ERROR_MESSAGE_NOT_AUTHENTICATED ERROR_GRAPHICS_SESSION_TYPE_CHANGE_IN_PROGRESS

MQ_ERROR_MESSAGE_LOCKED_UNDER_TRANSACTION

Retry and cleanup

Find the owning transaction and wait/recover it; duplicate consumers cannot force the lock away.

Avoiding a false diagnosis

Do not convert the operation to a nontransactional send merely to suppress the HRESULT; that changes delivery and atomicity guarantees. Code-specific condition: message is reserved by an unresolved transaction.

Example

An order processor using msmq and sql encounters it. It correlates the MSMQ call with the DTC transaction ID and final outcome before replaying business work.

References


Looking for a different code? Search another status or error code.