ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » IIB10: Can't find value in o/p msg from Aggregate Reply node

Post new topic  Reply to topic
 IIB10: Can't find value in o/p msg from Aggregate Reply node « View previous topic :: View next topic » 
Author Message
john.ormerod
PostPosted: Wed Nov 25, 2020 5:33 am    Post subject: IIB10: Can't find value in o/p msg from Aggregate Reply node Reply with quote

Apprentice

Joined: 14 Feb 2017
Posts: 49

Hello

I'm using IIB 10.0.0.7 in Ubuntu 20.04

In a node that receives the message from an Aggregate Reply node, I want to find a value in the payload. InputRoot.XMLNSC.xxx failed to find the value.

I used the Flow Exercise to view the message contents. There are two xml elements before the first XMLNSC element (there are several in the whole msg).

Below shows the, mostly collapsed, elements copied from the Exerciser

Code:
<message>
<Properties>
</Properties>
<ComIbmAggregateReplyBody>
<OrderCreate>
<Properties>
</Properties>
<MQMD>
</MQMD>
<XMLNSC>
<OrderEnvelope>
<Header>
<OrderNumber>X-123456789</OrderNumber>
<CustomerNumber>CF-C-FAIZ01</CustomerNumber>
</Header>
<PriceData>


I coded the IF stmt as
Code:
IF InputRoot.ComIbmAggregateReplyBody.OrderCreate.XMLNSC.OrderEnvelope.Header.OrderNumber = 'X-123456789' THEN


When I tried to retrieve the data 'envelope' out of the Aggregate Reply node, no data was available, but there was an error msg telling me that it had all gone horribly wrong (sorry, I didn't capture it, and could not recreate it).

My conclusion is that the xml path used above is not correct. I am at a loss to work out what it should be. A google search yielded nothiing.

Is there someone out there who can help?

Regards, John
Back to top
View user's profile Send private message Send e-mail
Vitor
PostPosted: Wed Nov 25, 2020 5:50 am    Post subject: Re: IIB10: Can't find value in o/p msg from Aggregate Reply Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

john.ormerod wrote:
I used the Flow Exercise to view the message contents. There are two xml elements before the first XMLNSC element (there are several in the whole msg).


When you have this kind of "it's not where it should be" problem, nothing beats a old school Trace node. Debugger, Flow Exerciser, they all interpret what the tree looks like.

Trace out the Root immediately before the compute and this should give you a clearer indication of what your ESQL needs to look like.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
john.ormerod
PostPosted: Wed Nov 25, 2020 6:11 am    Post subject: Reply with quote

Apprentice

Joined: 14 Feb 2017
Posts: 49

Hi Vitor

Many thanks for your speedy reply.
I'm a 'Sunday driver' when it comes to IIB - just helping out.
Will do that.

Rgds, John
Back to top
View user's profile Send private message Send e-mail
Vitor
PostPosted: Wed Nov 25, 2020 6:43 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

john.ormerod wrote:
I'm a 'Sunday driver' when it comes to IIB - just helping out.


We've all been driving in the "why does that statement not find any value" car at some point.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
john.ormerod
PostPosted: Mon Nov 30, 2020 2:48 am    Post subject: Reply with quote

Apprentice

Joined: 14 Feb 2017
Posts: 49

Hi Vitor

My experienced colleague used the debuger to determine the path.

He concluded that my assumption was correct. He entered it his Toolklt and it worked when deployed!

Just goes to show that: it's not who you know, but what you know.

Anyway, topic closed and thanks for you help.

Regards, John
Back to top
View user's profile Send private message Send e-mail
Vitor
PostPosted: Mon Nov 30, 2020 5:32 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

john.ormerod wrote:
My experienced colleague used the debuger to determine the path.


a) Glad you got your problem resolved

b) I still maintain there's nothing better than an olde-timye Trace node


_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » IIB10: Can't find value in o/p msg from Aggregate Reply node
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.