[UNIX, Linux, Windows, IBM i]

2137 (0859) (RC2137): MQRC_OPEN_FAILED

Explanation

A queue or other MQ object could not be opened successfully, for one of the following reasons:
  • An MQCONN or MQCONNX call was issued, but the queue manager was unable to open an object that is used internally by the queue manager. As a result, processing cannot continue. The error log will contain the name of the object that could not be opened.
  • An MQPUT call was issued to put a message to a distribution list, but the message could not be sent to the destination to which this reason code applies because that destination was not opened successfully by the MQOPEN call. This reason occurs only in the Reason field of the MQRR response record.

Completion code

MQCC_FAILED

Programmer response

Do one of the following:
  • If the error occurred on the MQCONN or MQCONNX call, ensure that the required objects exist by running the following command and then retrying the application:
    
    STRMQM -c qmgr
    
    where qmgr should be replaced by the name of the queue manager.
  • If the error occurred on the MQPUT call, examine the MQRR response records specified on the MQOPEN call to determine the reason that the queue failed to open. Ensure that sufficient response records are provided by the application on the call to enable the error(s) to be determined.