The MQ Listener throws “MQGet failed MQRC_TRUNCATED_MSG_FAILED” exception when fetching message in MQ queue which is larger than 4 MB

The MQ Listener throws “MQGet failed MQRC_TRUNCATED_MSG_FAILED” exception when fetching message in MQ queue which is larger than 4 MB

book

Article ID: KB0073821

calendar_today

Updated On:

Products Versions
TIBCO ActiveMatrix BusinessWorks Plug-in for IBM MQ 7.7.0, 7.7.1, 7.7.2

Description

Sometimes the MQ Listener throws “MQGet failed MQRC_TRUNCATED_MSG_FAILED” exception when fetching message in MQ queue which is larger than 4 MB. The MQ Listener will become "stuck" on such messages because it cannot remove them from the queue.

Issue/Introduction

The MQ Listener throws “MQGet failed MQRC_TRUNCATED_MSG_FAILED” exception when fetching message in MQ queue which is larger than 4 MB

Resolution

This issue is because the message in the MQ queue exceeds the max message size of the channel; to fix the issue, the user should check the “max message length” parameter in the MQ Queue Manager, Queue and the Client-connection/Server-connection channel, the default value of this parameter is 4 MB, the user should increase this parameter to make sure the message size not exceed the value. The Max value is 100 MB.