Learn it on Mainframe Path. Do it with Mainframe KIT.Learn on Mainframe Path ▸
Mainframe KIT ● Nothing leaves this tab

2031

MQRC_MSG_TOO_BIG_FOR_Q_MGR (X'07EF')MQ REASON CODE · CHECKED 2026-11-14
Checked against IBM documentation

A put failed because the message is longer than the queue manager or queue maximum message length, or a channel on the route restricts it.

QUICK ANSWER

A put failed because the message is longer than the queue manager or queue maximum message length, or a channel on the route restricts it.

LIKELY CAUSES, IN THE ORDER OF THIS ENTRY

  1. The message is longer than the lesser of the queue manager and queue MaxMsgLength and MQMF_SEGMENTATION_ALLOWED was not set.
  2. Segmentation is allowed, but the data cannot be split into segments small enough for the queue manager limit.
  3. A channel the message passes through has a maximum message length lower than the queue manager's, and the message exceeds it.

CHECKED 14 Nov 2026 IBM: 2031 (07EF) (RC2031): MQRC_MSG_TOO_BIG_FOR_Q_MGR - IBM MQ 10.0.x

MOST LIKELY

The message is longer than the lesser of the queue manager and queue MaxMsgLength and MQMF_SEGMENTATION_ALLOWED was not set.

FIRST CHECK

Check that BufferLength is specified correctly.

TRY IT ▸

Site search

What it means

An MQPUT or MQPUT1 failed because the message was too long and segmentation was not allowed. Without segmentation the length cannot exceed the lesser of the queue manager and queue MaxMsgLength. The same code can appear in the Feedback field of a report message when a message channel agent could not put the message on a remote queue, or when a channel limits the message length below the queue manager value.

Typical causes

  • The message is longer than the lesser of the queue manager and queue MaxMsgLength and MQMF_SEGMENTATION_ALLOWED was not set.
  • Segmentation is allowed, but the data cannot be split into segments small enough for the queue manager limit.
  • A channel the message passes through has a maximum message length lower than the queue manager's, and the message exceeds it.

How to fix it

  1. Check that BufferLength is specified correctly.
  2. Increase the queue manager MaxMsgLength; the queue MaxMsgLength may also need raising.
  3. Break the message into several smaller messages, or specify MQMF_SEGMENTATION_ALLOWED so the queue manager can segment it.
  4. Check the channel definitions.

Example

Illustrative only; names and values are invented.

MQPUT failed  CompCode=2  Reason=2031  QMgr=QM01
DISPLAY CHANNEL(CHL.TO.QM02) MAXMSGL