StructureHere we find some structural validation errors that are based on the "Invoice" description of release 90.1.
The UN-documents have already a correct example in document "COR1-901.ASC".
But we use the old one as a showcase.
Error in UNA segmentThe character definition of the UNA segments is wrong. The space character before the terminator is missing.
Therefore all segments are getting separated based on the "U" character, which makes no sense.
The UNA segment is not necessary and could be suppressed. Here you see the default characters that would have been used.
Segment not foundAnother problem is a typo of the segment "ALL".
The last segment was "CUX" within the segment group 3.
Then we have the segment "PAT" outside of segment group 3.
But the message definition allows only the segments DTM, ALI and FTX between CUX and PAT.
It is very obvious that the ALL is a type and the ALI segment is the correct one.