Forum Discussion

2020's avatar
2020
New Contributor II
6 years ago

When executing pipeline it throws error with JMSWMQ2008

Hi,

i`m new to snaplogic,
i have a simple pipeline like:
File Reader → JMS Producer

In File Reader i set a path to a csv file
In JMS Producer i set
Destination with a name of a queue like QUEUE_NAME1
Destination type : QUEUE
Messafe type: TEXT

When i run this pipeline it works without error.
So i suppose the file is sent to the queue.

In my organization the dev team say: the queue name is changed before sending the csv file.
So the name QUEUE_NAME1 is changed to QUEUE_NAME2 now

So i created a second pipeline to check whether the file cvs is arrived or not.
So i did this:
JMS Consumer–>Binary to document -->Mapper -->JMS Acknowlegde
in JMS Consumer i set:
Client_ID : name of the MQ manager
Destination: QUEUE_NAME2

When i run the second pipeline it throws error:
JMSCMQ0001: IBM MQ call failed with compcode ‘2’ (‘MQCC_FAILED’) reason ‘2085’ (‘MQRC_UNKNOWN_OBJECT_NAME’).
Caused by: com.snaplogic.api.ConfigurationException: An error occurred while creating the consumer

Caused by: com.ibm.msg.client.jms.DetailedInvalidDestinationException: JMSWMQ2008: Failed to open MQ queue ‘QUEUE_NAME2’.
JMS attempted to perform an MQOPEN, but IBM MQ reported an error.
Use the linked exception to determine the cause of this error. Check that the specified queue and queue manager are defined correctly.
Questions:
1-Is my first pipeline correct?
2-Is my second pipeline correct?
3- Is there a way to check if the queue name changed using java code only?
im not able to check the specified queue and queue manager are defined correctly. because i dont have permission level.
Thank you

9 Replies

  • Toby's avatar
    Toby
    New Contributor II

    Yes, I agree but I have not control over it. It’s the List API here >>> Workspace API 2.0 | Databricks on AWS.

    I’ve tried Post but the API isn’t listening for it, the only option is READ with a payload, which is trivial through code or tools such as Postman, but I can’t find a way through Snap. Any ideas welcome! Thanks.