imsweb / x12-parser

A Java parser for ANSI ASC X12 documents.
Other
80 stars 44 forks source link

We found an ending segment but we never stored the first part of the loop! #56

Open arpit-invenio opened 3 years ago

arpit-invenio commented 3 years ago

I have created a custom xml to handle 4010/850 Purchase order. But getting the below error We found an ending segment but we never stored the first part of the loop! The Error occurs when the code tried to appendEndingSegment for PO1 loop. I have verified the xml with the example edi file and looks fine. Any help would be appreciated

arpit-invenio commented 3 years ago

The specification is very much similar to https://www.erico.com/public/library/edi/ERICO850_4010.pdf I am getting the error on the PO1 loop which has an inner loop PID. Exact error comes at MSG, which is a part of PO1 loop but comes after the inner PID Loop. I am attaching the xml that I created 850.4010.txt

angelaszek commented 3 years ago

Could you provide a sample file that produces this error? Thanks.