x12-parser icon indicating copy to clipboard operation
x12-parser copied to clipboard

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

Open arpit-invenio opened this issue 4 years ago • 2 comments

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 avatar Oct 03 '21 00:10 arpit-invenio

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

arpit-invenio avatar Oct 03 '21 00:10 arpit-invenio

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

angelaszek avatar Oct 25 '21 20:10 angelaszek