Posted: Thu Apr 29, 2004 6:48 am Post subject: Message sets, TDS and empty last element
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?
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. )
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