Multiple ISA segments in a single file.

Sep 12, 2013 at 1:49 PM
We have received files from a vendor that contain multiple ISA sements in a single file. My program loops on;
For Each interchange In parser.ParseMultiple(memStream, encoding)
Is this acceptable?

At present my program seems to be in an infinite loop, but without knowing whether this is an allowed structure in ANSI-837/5010, I don't know whether it is a bug or, bad data.
Sep 12, 2013 at 2:14 PM
OK, not an infinite loop.

I am analyzing the results now. It may not be an issue. But confirmation of my original question would be nice.
Coordinator
Sep 12, 2013 at 2:35 PM
Yes this is legal, that's why the Parse method got obsoleted and replaced by ParseMultiple.
It doesn't happen often, but it does happen.
It's probably a result of clearinghouses who are trying to combine files from multiple senders and retain the same header information from the original sender, but could be for other reasons.
The nice thing is you don't have to worry about each ISA section having different delimiters, the parser should handle that for you.