I am trying to parse a fixed length flat. I have created the appropriate template (by defining the
template in a xml file, adhering to all the requirements for templates).
However when I parse the flat file I get the following error
java.lang.NullPointerException
at wm.b2b.edi.EDIConverter.getSegment(EDIConverter.java:657)
at wm.b2b.edi.EDIConverter.createLoop(EDIConverter.java:478)
at wm.b2b.edi.EDIConverter.toEDIValues(EDIConverter.java:375)
at wm.b2b.edi.convertToValues(edi.java:667)
The source flat file does not have any repeating segments, in fact there is just one record/segment. I have crossed checked the specification of my template I do not see any errors. Is it necessary to have repeating segments in the flat file?
Your advice is appreciated.
thanks