2308 (0904) (RC2308): MQRC_ENCODING_NOT_SUPPORTED

Explanation

The Encoding field in the message descriptor MQMD contains a value that is not supported:
  • For the mqPutBag call, the field in error resides in the MsgDesc parameter of the call.
  • For the mqGetBag call, the field in error resides in:
    • The MsgDesc parameter of the call if the MQGMO_CONVERT option was specified.
    • The message descriptor of the message about to be retrieved if MQGMO_CONVERT was not specified.

Completion Code

MQCC_FAILED

Programmer response

The value must be MQENC_NATIVE.

If the value of the Encoding field in the message is not valid, the message cannot be retrieved using the mqGetBag call:
  • If one of the MQGMO_BROWSE_* options was specified, the message remains on the queue and can be retrieved using the MQGET call.
  • In other cases, the message has already been removed from the queue and discarded. If the message was retrieved within a unit of work, the unit of work can be backed out and the message retrieved using the MQGET call.