Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ReaderException: InvalidControlStructure #13

Open
MovGP0 opened this issue Nov 4, 2019 · 1 comment
Open

ReaderException: InvalidControlStructure #13

MovGP0 opened this issue Nov 4, 2019 · 1 comment

Comments

@MovGP0
Copy link

MovGP0 commented Nov 4, 2019

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.

@Silvenga
Copy link
Member

Silvenga commented Nov 4, 2019

Any idea @gamingrobot?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants