2091 (082B) (RC2091): MQRC_XMIT_Q_TYPE_ERROR
Explanation
On an MQOPEN or MQPUT1 call, a message is to be sent to a remote queue manager. The ObjectName or ObjectQMgrName field in the object descriptor specifies the name of a local definition of a remote queue but one of the following applies to the XmitQName attribute of the definition:
- XmitQName is not blank, but specifies a queue that is not a local queue
- XmitQName is blank, but RemoteQMgrName specifies a queue that is not a local queue
This reason also occurs if the queue name is resolved through a cell directory, and the remote queue manager name obtained from the cell directory is the name of a queue, but this is not a local queue.
Completion code
MQCC_FAILED
Programmer response
Check the values specified for ObjectName and ObjectQMgrName. If these are correct, check the queue definitions.
This reason code is also used to identify the corresponding event message Transmission Queue Type Error.
Parent topic: API reason codes