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

2019

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

The object handle passed to an MQ call is not valid, for example because it never came from MQOPEN, was already closed, or is used from the wrong thread.

QUICK ANSWER

The object handle passed to an MQ call is not valid, for example because it never came from MQOPEN, was already closed, or is used from the wrong thread.

LIKELY CAUSES, IN THE ORDER OF THIS ENTRY

  1. The parameter pointer is not valid, or for MQOPEN it points to read-only storage.
  2. The value was not returned by an earlier MQOPEN.
  3. An earlier MQCLOSE made the handle invalid.
  4. A shared handle was invalidated by another thread issuing MQCLOSE.
  5. A nonshared handle is being used by a thread that did not create it.
  6. On MQGET or MQPUT, the handle refers to an object that is not a queue.

CHECKED 14 Nov 2026 IBM: 2019 (07E3) (RC2019): MQRC_HOBJ_ERROR - IBM MQ 10.0.x

MOST LIKELY

The parameter pointer is not valid, or for MQOPEN it points to read-only storage.

FIRST CHECK

Make sure a successful MQOPEN was done for the object before the call.

TRY IT ▸

Site search

What it means

IBM says the object handle (Hobj) is not valid. The call completes with MQCC_FAILED. The handle must come from a successful MQOPEN and still be in scope.

Typical causes

  • The parameter pointer is not valid, or for MQOPEN it points to read-only storage.
  • The value was not returned by an earlier MQOPEN.
  • An earlier MQCLOSE made the handle invalid.
  • A shared handle was invalidated by another thread issuing MQCLOSE.
  • A nonshared handle is being used by a thread that did not create it.
  • On MQGET or MQPUT, the handle refers to an object that is not a queue.

How to fix it

  1. Make sure a successful MQOPEN was done for the object before the call.
  2. Make sure MQCLOSE has not already been done for that handle.
  3. Use the handle only within its valid scope (see the MQOPEN description for scope rules).

Example

Illustrative only; names and values are invented.

MQGET failed  CompCode=2  Reason=2019  Hobj=0