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 » Message sets, TDS and empty last element

Post new topic  Reply to topic
 Message sets, TDS and empty last element « View previous topic :: View next topic » 
Author Message
sorn73
PostPosted: Thu Apr 29, 2004 6:48 am    Post subject: Message sets, TDS and empty last element Reply with quote

Novice

Joined: 24 Mar 2004
Posts: 24
Location: Sweden

I'm trying to parse a file where the lines looks like this:

Code:
data1<HT>data2<HT>data3<HT>data4<HT>data5<CR><LF>


and this works fine. However, sometimes the elements are empty. My problem is that if the last element, data5, is empty, the MRM parser refuse to parse the message. I get a "TDS General Error" and a "MTI. Not all the buffer was used when reading the message".

Does anyone have any smart idea about what I'm doing wrong?
Back to top
View user's profile Send private message
Missam
PostPosted: Thu Apr 29, 2004 9:07 am    Post subject: Reply with quote

Chevalier

Joined: 16 Oct 2003
Posts: 424

Change the Element Data5 Connection Property Repeat to Yes and set MinOccurs 0 and MaxOccurs 1
Back to top
View user's profile Send private message
wooda
PostPosted: Tue May 04, 2004 8:58 am    Post subject: Reply with quote

Master

Joined: 21 Nov 2003
Posts: 265
Location: UK

Hi sorn73
What you should have here is the whole lot inside a parent group/type.
Set the Group Terminator to <CR><LF>
Set the Delimiter to <HT>
and as IamSam said set the min occurs of each element to 0.

(This assumes you intend to have all five fields aunique and not one field repeating 5 times. )
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 » Message sets, TDS and empty last element
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.