MQJE001:completion code 2 reason 2207 - mqexception error in DevTest

Document ID : KB000117270
Last Modified Date : 10/10/2018
Show Technical Document Details
Issue:
When trying to SEND and RECEIVE message from the Proxy and Live Queues I am getting the below error message

Error: Completion Code 2 (MQCC_FAILED), Reason Code 2207 (MQRC_CORREL_ID_ERROR)
============================================================================
| Exception:
============================================================================
| Message: Completion Code 2 (MQCC_FAILED), Reason Code 2207 (MQRC_CORREL_ID_ERROR)
----------------------------------------------------------------------------
| Trapped Exception: MQJE001: Completion Code 2, Reason 2207
| Trapped Message: com.ibm.mq.MQException: MQJE001: Completion Code 2, Reason 2207
----------------------------------------------------------------------------
STACK TRACE
com.ibm.mq.MQException: MQJE001: Completion Code 2, Reason 2207
at com.ibm.mq.MQQueue.get(MQQueue.java:1033)
at com.
Environment:
All supported DevTest versions
Cause:
It looks like the queue does not support Correlation ID that is apparently used in the asset/test case
see here:
https://www.ibm.com/support/knowledgecenter/en/SSFKSJ_9.0.0/com.ibm.mq.tro.doc/q042480_.html

An MQGET call was issued to retrieve a message using the correlation identifier as a selection criterion, but the call failed because selection by correlation identifier is not supported on this queue.


 
Resolution:
You have 2 Options

A) do not use Correlation IDs in the tests

OR

B) Contact your Middleware admins and enable Correlation ID selectors on that queue