IBM MQ SendReceive causes Reason Code 2045 MQRC_OPTION_NOT_VALID_FOR_TYPE
search cancel

IBM MQ SendReceive causes Reason Code 2045 MQRC_OPTION_NOT_VALID_FOR_TYPE

book

Article ID: 77730

calendar_today

Updated On:

Products

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

Issue/Introduction

IBM MQ Native Send Receive step is throwing this error when you try to GET and PUT messages to the queue in DEVTEST. 

----------------------------------------------------------------------------
| Message:     Error opening queue ##### with options 8194, Completion Code 2 (MQCC_FAILED), Reason Code 2045 (MQRC_OPTION_NOT_VALID_FOR_TYPE)
----------------------------------------------------------------------------
| Trapped Exception: Error opening queue #### with options 8194, Completion Code 2 (MQCC_FAILED), Reason Code 2045 (MQRC_OPTION_NOT_VALID_FOR_TYPE)
| Trapped Message:on Code 2 (MQCC_FAILED), Reason Code 2045 (MQRC_OPTION_NOT_VALID_FOR_TYPE) | Trapped Message:

Environment

All Supported DevTest Environments. 

Cause

In  IBM MQ messaging, QUEUES were created with QUEUE TYPE as REMOTE Queues.  DEVTEST only supports LOCAL Queues, 

Resolution

Created the Queues as LOCAL Queues and that resolved the issue.