2057 (0809) (RC2057): MQRC_Q_TYPE_ERROR


Explanation

One of the following occurred:

  • On an MQOPEN call, the ObjectQMgrName field in the object descriptor MQOD or object record MQOR specifies the name of a local definition of a remote queue (to specify a queue manager alias), and in that local definition the RemoteQMgrName attribute is the name of the local queue manager. However, the ObjectName field in MQOD or MQOR specifies the name of a model queue on the local queue manager; this is not allowed. For more information, see MQOPEN.
  • If the environment variable AMQ_BLOCK_RECONN_DYN_QUEUES has been set on a queue manager in a uniform cluster, this return code can occur on an MQOPEN call when the call results in the creation of a new dynamic queue, if the connection to the queue manager was made using the connect option MQCNO_RECONNECT.
  • On an MQPUT1 call, the object descriptor MQOD or object record MQOR specifies the name of a model queue.
  • On a previous MQPUT or MQPUT1 call, the ReplyToQ field in the message descriptor specified the name of a model queue, but a model queue cannot be specified as the destination for reply or report messages. Only the name of a predefined queue, or the name of the dynamic queue created from the model queue, can be specified as the destination. In this situation the reason code MQRC_Q_TYPE_ERROR is returned in the Reason field of the MQDLH structure when the reply message or report message is placed on the dead-letter queue.


Completion code

MQCC_FAILED


Programmer response

Specify a valid queue.

This reason code is also used to identify the corresponding event message Queue Type Error.

Parent topic: API reason codes