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="L1">...
<loop Id="LX"><segment Id="LX"></segment><loop Id="N1"></loop></loop><loop Id="*"></loop><loop Id="*"> .... <loop Id="L1">....
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?