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 » UnorderedSet in AllElementsDelimited Message

Post new topic  Reply to topic
 UnorderedSet in AllElementsDelimited Message « View previous topic :: View next topic » 
Author Message
sanhsi
PostPosted: Tue Aug 20, 2013 6:01 am    Post subject: UnorderedSet in AllElementsDelimited Message Reply with quote

Novice

Joined: 26 Nov 2007
Posts: 12

Hi,

I am facing an issue in parsing input message of below format:

0;h1;h2;h3;h4
2;A1;A2;A3;A4
3;L1;L2;L3
5;T1;T2;T3;T4;T5
9;F1;F2

The incoming message have only one occurrance of 1st and last record and position is also fix.
Remaining 3 records can come multiple times and in any order.

To parse this message, I have created an MRM messageSet of TDS physical format.

The messageDefinition has a message with a headerType, an UnorderedSet group with 2nd, 3rd and 4th record and FooterType.

All the combinations are working fine but one.
If record 2 is coming after record 3 then it is throwing exception. The exception shows that if I keep record 2 after the record 3, while parsing the message record 3 type is trying to read all the message and in that processes throws exception that "NOT ALL BUFFER USED"

Can somebody help me resolve the issue please?

Please let me know if you need more information.
Back to top
View user's profile Send private message
Vitor
PostPosted: Tue Aug 20, 2013 6:31 am    Post subject: Re: UnorderedSet in AllElementsDelimited Message Reply with quote

Grand High Poobah

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

sanhsi wrote:
Please let me know if you need more information.


Which version of WMB; i.e. do you have access to DFDL or not?
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Tue Aug 20, 2013 6:31 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

Use DFDL not MRM.

Use a choice, not an unordered set.
Back to top
View user's profile Send private message
sanhsi
PostPosted: Tue Aug 20, 2013 6:43 am    Post subject: Reply with quote

Novice

Joined: 26 Nov 2007
Posts: 12

Thanks Vitor, mqjeff for quick response!

I am on wmb6.1 so no DFDL.

@mqjeff: when using choice, it is not able to parse anything after header record. If I check the parsed message in debug, it says unresolved choice for everything after header record!
Back to top
View user's profile Send private message
mqjeff
PostPosted: Tue Aug 20, 2013 6:47 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

sanhsi wrote:
Thanks Vitor, mqjeff for quick response!

I am on wmb6.1 so no DFDL.

@mqjeff: when using choice, it is not able to parse anything after header record. If I check the parsed message in debug, it says unresolved choice for everything after header record!


Use tags to resolve the choice.
Back to top
View user's profile Send private message
sanhsi
PostPosted: Wed Aug 21, 2013 1:21 am    Post subject: Reply with quote

Novice

Joined: 26 Nov 2007
Posts: 12

@mqjeff: Thanks a ton!!!

It worked!
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 » UnorderedSet in AllElementsDelimited Message
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.