|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Regarding TDS message Format creation |
« View previous topic :: View next topic » |
Author |
Message
|
anilmekala |
Posted: Wed Sep 03, 2014 9:38 am Post subject: Regarding TDS message Format creation |
|
|
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 |
|
 |
mqjeff |
Posted: Wed Sep 03, 2014 9:59 am Post subject: |
|
|
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 |
|
 |
kimbert |
Posted: Wed Sep 03, 2014 1:34 pm Post subject: |
|
|
 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 |
|
 |
fjb_saper |
Posted: Wed Sep 03, 2014 5:42 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 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 |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|