Closed phax closed 3 years ago
To be more precise: the error seems to occur in all versions prior to d99b. The first version I found a reference was D95A
Probably it's a bug in UnEdifactDefinitionReader
's pattern matching. The EDIFACT directories are a pain to parse because they don't maintain a consistent structure across versions.
The issue with the current state of the definition reader is, that after reading the ID and description of the (complex) element it will stop on the next blank line. In the posted examples the directory for D01B
contains the note below the actual component definitions while in the D96A
case it is above and therefore contains a blank line that leads to the premature ending of the component.
While debugging different directory definitions I learned that moveToNextPart(reader)
will read everything till the next entry separator is found. This can lead to situations where certain elements/components are missing completely as those lines are already consumed by the above mentioned method.
Hi Claude, there seems to be a small issue with the
UnEdifactSpecificationReader
implementation (checked with 2.0.0-M2).The C770 definition from D96A looks like this:
-> the information about element 9424 is missing.
Compared to D01B version, where the outcome is as expected.
Is it easy for you to adopt the specification reader accordingly?
Thanks, Philip