Bootstrap FreeKB - IBM MQ - Resolve "MQRC_OPTION_NOT_VALID_FOR_TYPE"
IBM MQ - Resolve "MQRC_OPTION_NOT_VALID_FOR_TYPE"

Updated:   |  IBM MQ articles

Let's say you are getting the following error.

JMSCMQ0001: WebSphere MQ call failed with compcode '2' ('MQCC_FAILED') reason '2045' ('MQRC_OPTION_NOT_VALID_FOR_TYPE').

 

This suggests that the application attempted to do something like this with the wrong type specified.

  • Create a connection to IBM MQ (using MQOPEN)
  • Get messages from a queue
  • Put a message on a queue
  • Close a connection to IBM MQ (using MQCLOSE)

If you have access to the IBM MQ server, the display queue command can be used to determine the queue type.

echo "display queue (QUEUE001)" | runmqsc MANAGER01

 

QUEUE01 could be a local queue . . . 

AMQ8409I: Display Queue details.
  QUEUE(QUEUE01)                          TYPE(QLOCAL)

 

Or a remote queue . . . 

AMQ8409I: Display Queue details.
  QUEUE(QUEUE01)                          TYPE(QREMOTE)

 

Or an alias to another queue.

AMQ8409I: Display Queue details.
  QUEUE(QUEUE01)                          TYPE(QALIAS)

 

This may be a coding problem with the app using the wrong type.




Did you find this article helpful?

If so, consider buying me a coffee over at Buy Me A Coffee



Comments


Add a Comment


Please enter bba455 in the box below so that we can be sure you are a human.