MQ

MQ

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
  • 1.  Where can I find the reason a message was Nack'd?

    Posted Mon February 27, 2023 07:07 AM

    Hello : ) 

    Context

    I am new to IBM MQ. I am trying to understand why a Consumer is Nack'ing a message. It's worth mentioning that I don't have direct access to the consumer. 

    The problem

    In particular, one of the consumers is Nack'ing a message and putting it back to the Queue. But I am unable to know where to find the reason the message was not acknowledged. Where should I expect this (exception?) to be logged? 

    I am happy to provide further details if needed. 



    ------------------------------
    I M
    ------------------------------


  • 2.  RE: Where can I find the reason a message was Nack'd?

    Posted Tue February 28, 2023 03:19 AM

    Hi IM,

    I need to clarify what you mean, probably a terminology misunderstanding.

    When you say that the consumer is "nack'ing" the message do you mean that it is sending back a MQRO_NAN report or do you just mean in the more general sense that the application has in some sense refused to process the message, and has rolled back the transaction and left the message on the queue?

    I suppose in either case however, the reason for the application not to consume the message is a decision the application makes, and so any reasoning or exception would need to be written by the application. It is unlikely that we could guess why and it is unlikely that the queue manager could know why either.

    Does your application have any logging or perhaps a verbose mode you can run it in?

    Cheers,
    Morag



    ------------------------------
    Morag Hughson
    MQ Technical Education Specialist
    MQGem Software Limited
    Website: https://www.mqgem.com
    ------------------------------