I am trying to parse a X12 EDI file of 110 - 004060 . But when I tried to run the file it shows the
ERROR: 'Improper sequencing noted with segment L3 at segment 556, field 1'
Failure to transform: javax.xml.transform.TransformerException: com.berryworks.edireader.EDISyntaxException: Improper sequencing noted with segment L3 at segment 556, field 1
com.berryworks.edireader.EDISyntaxException: Improper sequencing noted with segment L3 at segment 556, field 1
From the analysis, I found that, L3 tag is appending to the <loop id="user-content-L1">... </loop>
<loop id="user-content-LX"><segment id="user-content-LX"></segment><loop id="user-content-N1"></loop></loop><loop id="user-content-*"></loop><loop id="user-content-*"> .... <loop id="user-content-L1">....</loop></loop>
basically it has to be outside the loop.
<lx>...</lx><lx>....</lx><l3><l305>746.14</l305></l3>
Please help me, what should I do now?