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 » WMB8 FileInputNode - Issue with Parsed Record Sequence

Post new topic  Reply to topic
 WMB8 FileInputNode - Issue with Parsed Record Sequence « View previous topic :: View next topic » 
Author Message
wmb_wps_soa
PostPosted: Mon Jan 07, 2013 9:42 am    Post subject: WMB8 FileInputNode - Issue with Parsed Record Sequence Reply with quote

Acolyte

Joined: 19 Feb 2010
Posts: 65
Location: Detroit,Michigan,USA.

Hi,

I am having issues with WMB8 FileInput node as the node is not propagating message for each record in the input XML file. I have the message flow with message domain XMLNSC, message set generated from xsd, Record and Elements --> Record detection as Parsed Record Sequence.

Input XML file:

<PayLoad>
<Header>
<TransName></ TransName>
</ Header>
<Details>
<Name>Testing1</ Name>
</Details>
<Details>
<Name>Testing2</ Name>
</Details>
<Details>
<Name>Testing3</ Name>
</Details>
</PayLoad>

When I test the flow with this inputdata, FileInput node is propagating the entire file into next node. But, i wanted it to propagate message for each Details in the input XML file. Can anybody help me to find what I am missing here?

Thank you All,
Back to top
View user's profile Send private message
lancelotlinc
PostPosted: Mon Jan 07, 2013 9:49 am    Post subject: Reply with quote

Jedi Knight

Joined: 22 Mar 2010
Posts: 4941
Location: Bloomington, IL USA

What are the settings on your Records and Elements tab ?
_________________
http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER
Back to top
View user's profile Send private message Send e-mail
Vitor
PostPosted: Mon Jan 07, 2013 9:50 am    Post subject: Reply with quote

Grand High Poobah

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

Just for interest, why are you using parsed record sequence rather than simply itterating through the XML document?
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
wmb_wps_soa
PostPosted: Mon Jan 07, 2013 11:20 am    Post subject: Reply with quote

Acolyte

Joined: 19 Feb 2010
Posts: 65
Location: Detroit,Michigan,USA.

Hi Sirlancelotlinc,

The settings on Records and Elements are:

Record detection : Parsed Record Sequence.


Hi Vitor,

The input file comes with the size of 20MB, so thought of using FileInputNode to do the propagation for each record instead of doing that in the ESQL code.
Back to top
View user's profile Send private message
lancelotlinc
PostPosted: Mon Jan 07, 2013 11:31 am    Post subject: Reply with quote

Jedi Knight

Joined: 22 Mar 2010
Posts: 4941
Location: Bloomington, IL USA

20 MB is not so large. Is there possible size growth in those files over time? Or, will they always be 20 MB ?
_________________
http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER
Back to top
View user's profile Send private message Send e-mail
wmb_wps_soa
PostPosted: Mon Jan 07, 2013 11:46 am    Post subject: Reply with quote

Acolyte

Joined: 19 Feb 2010
Posts: 65
Location: Detroit,Michigan,USA.

Yes, there is a high possibility that the size grows along with the business growth.

Thank you
Back to top
View user's profile Send private message
Esa
PostPosted: Mon Jan 07, 2013 11:50 am    Post subject: Re: WMB8 FileInputNode - Issue with Parsed Record Sequence Reply with quote

Grand Master

Joined: 22 May 2008
Posts: 1387
Location: Finland

wmb_wps_soa wrote:

When I test the flow with this inputdata, FileInput node is propagating the entire file into next node. But, i wanted it to propagate message for each Details in the input XML file. Can anybody help me to find what I am missing here?


What happens if you select 'Skip first record'?
What happens if you try a test file that does not have Header element?
Back to top
View user's profile Send private message
wmb_wps_soa
PostPosted: Mon Jan 07, 2013 11:56 am    Post subject: Reply with quote

Acolyte

Joined: 19 Feb 2010
Posts: 65
Location: Detroit,Michigan,USA.

Hi Esa,

I tried with 'Skip First Records' but nothing happened, as the entire XML file is being passed to next node, its NOT doing record by record breakup.

I do remember that I tried without header also, and it did not worked either. But I can try again that.
Back to top
View user's profile Send private message
lancelotlinc
PostPosted: Mon Jan 07, 2013 11:57 am    Post subject: Reply with quote

Jedi Knight

Joined: 22 Mar 2010
Posts: 4941
Location: Bloomington, IL USA

What is your specification for Custom delimiter ? Or, how are you telling the FileInput node to delineate between records ?
_________________
http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER
Back to top
View user's profile Send private message Send e-mail
wmb_wps_soa
PostPosted: Mon Jan 07, 2013 12:03 pm    Post subject: Reply with quote

Acolyte

Joined: 19 Feb 2010
Posts: 65
Location: Detroit,Michigan,USA.

Hi lancelotlinc,

I dont have any specification for custom delimiter. I have defined "Details" as mult-occrance in the messageset.
Back to top
View user's profile Send private message
lancelotlinc
PostPosted: Mon Jan 07, 2013 12:33 pm    Post subject: Reply with quote

Jedi Knight

Joined: 22 Mar 2010
Posts: 4941
Location: Bloomington, IL USA

Since this is not working, you have two options, as I see it:

1. Define a custom delimiter, -or-

2. Open a PMR to seek IBM advice on why the FileInput node is not recognizing the multi-occurance.

Good luck.
_________________
http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER
Back to top
View user's profile Send private message Send e-mail
Vitor
PostPosted: Mon Jan 07, 2013 2:20 pm    Post subject: Reply with quote

Grand High Poobah

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

wmb_wps_soa wrote:
The input file comes with the size of 20MB, so thought of using FileInputNode to do the propagation for each record instead of doing that in the ESQL code.


You might want to review this sample
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
kimbert
PostPosted: Mon Jan 07, 2013 3:27 pm    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

No need for a PMR - the FileInput node cannot automatically split this type of input document. ESQL can do it very easily, though.

1. Process the header
2. Iterate over the Details array, deleting the message tree after each iteration of the loopo
3. Construct the output bit stream for each iteration under OutputRoot.BLOB.BLOB ( and/or else do whatever else the flow requires )

See the link to the Large Message sample in the previous post for more details.
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 » WMB8 FileInputNode - Issue with Parsed Record Sequence
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.