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

2041

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

The object handle is stale: definitions affecting the object changed after the program opened it.

QUICK ANSWER

The object handle is stale: definitions affecting the object changed after the program opened it.

LIKELY CAUSES, IN THE ORDER OF THIS ENTRY

  1. Definitions that affect the object changed after it was opened.
  2. The REFRESH CLUSTER command was running.

CHECKED 14 Nov 2026 IBM: 2041 (07F9) (RC2041): MQRC_OBJECT_CHANGED | IBM MQ 10.0.x

MOST LIKELY

Definitions that affect the object changed after it was opened.

FIRST CHECK

Close the handle with MQCLOSE, reopen the object, and retry; this is usually enough.

TRY IT ▸

Site search

What it means

Object definitions that affect this object have changed since the handle was returned by MQOPEN, so the call is refused. The code can occur while REFRESH CLUSTER runs.

Typical causes

  • Definitions that affect the object changed after it was opened.
  • The REFRESH CLUSTER command was running.

How to fix it

  1. Close the handle with MQCLOSE, reopen the object, and retry; this is usually enough.
  2. If the object's attributes matter to the program logic, call MQINQ after reopening to get the new values.

Example

Illustrative only; names and values are invented.

MQPUT failed  CompCode=2  Reason=2041  Queue=APP.CLUSTER.QUEUE