-
Notifications
You must be signed in to change notification settings - Fork 38
Open
Description
I get an InvalidControlStructure error, when the file starts ie. with UNB+IBMA or UNB+IATB.
Example
using var ediReader = new EdifactReader(stream, "EdiWeave.Rules.EdifactD00A");
var ediItems = ediReader.ReadToEnd().ToList();UNA:+.? '
UNB+IATB:1+6XPPC:ZZ+LHPPC:ZZ+940101:0950+1'
UNH+1+PAORES:93:1:IA'
MSG+1:45'
IFT+3+XYZCOMPANY AVAILABILITY'
ERC+A7V:1:AMD'
IFT+3+NO MORE FLIGHTS'
ODI'
TVL+240493:1000::1220+FRA+JFK+DL+400+C'
PDI++C:3+Y::3+F::1'
APD+74C:0:::6++++++6X'
TVL+240493:1740::2030+JFK+MIA+DL+081+C'
PDI++C:4'
APD+EM2:0:1630::6+++++++DA'
UNT+13+1'
UNZ+1+1'
Minimal Example:
UNB+IATB:1+6XPPC:ZZ+LHPPC:ZZ+940101:0950+1'
UNZ+1+1'
Current Behaviour
Exception: ReaderException
ErrorCode: InvalidControlStructure
Message: No valid separator set was found.
Source: EdiWeave.Framework.Readers.EdiReader.Read()
Expected Behaviour
The file should be parsed like a normal EDIFACT file.
Metadata
Metadata
Assignees
Labels
No labels