Pushing and Reading a message to / from IBM MQ : Error {"CompCode: 2, Reason: 2195"} RRS feed

  • Question

  • Hi,

    I have IBM MQ installed on a Windows 2012 Virtual Machine.

    I have also installed the MQ Client on the same VM.

    I have a Win Forms app which puts a message on the queue and this works fine.

    The same app also reads a message from the queue. When I try to run below code it falls over on the last line with the Exception " Error {"CompCode: 2, Reason: 2195"}"

                    string message = "";

                    requestMessage = new MQMessage();

                    requestMessage.Format = MQC.MQFMT_STRING;

                    message = requestMessage.ReadString(requestMessage.MessageLength);

    Anyone got any ideas why this is?

    What am I missing?

    There are lot's of posts elsewhere on this but little on how to actually resolve it.


    • Moved by Kristin Xie Tuesday, November 17, 2015 2:53 AM
    Monday, November 16, 2015 10:58 AM


All replies


    If the link is about what you are talking about, then it may be best that you post there.

    Monday, November 16, 2015 7:01 PM
  • I just finished a large IBM MQ project, what you are referring to is an error with the Coded Character Set Identifier (CCSID). Look at the MQMessage fields, you might need to set CharacterSet in addition to Format. You can specify this on a message being dispatched to a queue as well as one being received from a queue.

    Monday, November 16, 2015 9:10 PM