2306 (0902) (RC2306): MQRC_INDEX_NOT_PRESENT

Explanation

The specified index is not present:
  • For a bag, this means that the bag contains one or more data items that have the selector value specified by the Selector parameter, but none of them has the index value specified by the ItemIndex parameter. The data item identified by the Selector and ItemIndex parameters must exist in the bag.
  • For a namelist, this means that the index parameter value is too large, and outside the range of valid values.

Completion code

MQCC_FAILED

Programmer response

Specify the index of a data item that does exist in the bag or namelist. Use the mqCountItems call to determine the number of data items with the specified selector that exist in the bag, or the nameCount method to determine the number of names in the namelist.