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 » Regarding TDS message Format creation

Post new topic  Reply to topic
 Regarding TDS message Format creation « View previous topic :: View next topic » 
Author Message
anilmekala
PostPosted: Wed Sep 03, 2014 9:38 am    Post subject: Regarding TDS message Format creation Reply with quote

Acolyte

Joined: 19 Oct 2012
Posts: 63

Hi All,

Hope every body doing good.

I am trying to create TDS message set for following this format

{ Parent HU attributes 1
{ Child HU attributes } 0..n
{ Child Shipment attributes } 0..n
}

sample incomming message :

{H12345678++B+BRU+HUB+MNL+HUB+P+1997-02-04 18:04:51\+01:00++MIX+DOX ++MNL-MIX-DOX+10+{}+{9786213213+LHR+MNL}{1212543223+BRU+MNL}}

I have create partenthu complex type and i have set parameters as follows

Data Element Saparation : Tag Delimited

Group Indicator : {

Group Terminator :}

Delimiter : +

Tag Data separator : +

Child Hu Coplex type i have set the parameters as follows

Group Indicator : {

Group Terminator :}

Delimiter : +

Tag Data separator : +

Finally i am getting below exception

MTI. Not all the buffer was used when reading message

Help me how to resolve this error.

Regards,

Anil.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Wed Sep 03, 2014 9:59 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

So you're still using v7? and thus can't use DFDL?

Also, your model doesn't match the data.

You generally shouldn't expect to have both the Delimiter and the Tag Separator as the same value. With the way you've set it up, the "H12345678" is a tag, and the element it tags has no value.

There's also no way for your model to tell that the last Child HU has occurred, so it can start looking for the first Shipment - unless the fields in each are different enough that the TDS parser can backtrack.
Back to top
View user's profile Send private message
kimbert
PostPosted: Wed Sep 03, 2014 1:34 pm    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

Its not necessarily wrong to have Tag Data Separator and Delimiter set to the same value. It's quite common when the first field of a delimited record is a tag.

Debugging TDS models is always difficult. You must get used to taking debug-level user trace and reading it.

But as mqjeff has pointed out, you will find DFDL a great deal easier to work with. Might be worth upgrading to v9 if you are still on v7.
_________________
Before you criticize someone, walk a mile in their shoes. That way you're a mile away, and you have their shoes too.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Wed Sep 03, 2014 5:42 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20696
Location: LI,NY

And remember V7 goes out of support in just about 12 months. So now's the right time to push for the migration...
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Regarding TDS message Format creation
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.