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

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

book

Article ID: 117270

calendar_today

Updated On: 10-16-2023

Products

CA Application Test CA Continuous Application Insight (PathFinder) Service Virtualization

Issue/Introduction

When trying to SEND and RECEIVE message from the Proxy and Live Queues 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 releases.

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

There are 2 options

A) do not use Correlation IDs in the tests

OR

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