+

Search Tips | Advanced Search

2068 (0814) (RC2068): MQRC_SELECTOR_NOT_FOR_TYPE


Explanation

On the MQINQ call, one or more selectors in the Selectors array is not applicable to the type of the queue with attributes that are being inquired upon.

This reason also occurs when the queue is a cluster queue that resolved to a remote instance of the queue. In this case only a subset of the attributes that are valid for local queues can be inquired. See the usage notes in the description of MQINQ in MQINQ - Inquire object attributes for more information about MQINQ.

The call completes with MQCC_WARNING, with the attribute values for the inapplicable selectors set as follows:

  • For integer attributes, the corresponding elements of IntAttrs are set to MQIAV_NOT_APPLICABLE.
  • For character attributes, the appropriate parts of the CharAttrs string are set to a character string consisting entirely of asterisks (*).


Completion code

MQCC_WARNING


Programmer response

Verify that the selector specified is the one that was intended.

If the queue is a cluster queue, specifying one of the MQOO_BROWSE, MQOO_INPUT_*, or MQOO_SET options in addition to MQOO_INQUIRE forces the queue to resolve to the local instance of the queue. However, if there is no local instance of the queue the MQOPEN call fails.

Parent topic: API reason codes

Last updated: 2020-10-04