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

EDIFACT Support empty (trigger) segments #10

Closed
benisantos opened this issue Apr 28, 2020 · 4 comments · Fixed by #11
Closed

EDIFACT Support empty (trigger) segments #10

benisantos opened this issue Apr 28, 2020 · 4 comments · Fixed by #11
Milestone

Comments

@benisantos
Copy link

Support empty segments like the "SRC" one in IATA PADIS EDIFACT (https://www.iata.org/contentassets/18a5fdb2dc144d619a8c10dc1472ae80/pnrgov20edifact20implementation20guide2016_1.pdf).

When an empty segment (SRC') is reached, this exception is thrown:
Message: EDIE003 - Invalid processing state: INVALID (previous: TAG_3); input: '''

We have "fixed" it, but we don't know if it's the best solution :)

@MikeEdgar
Copy link
Member

Hi @benisantos - thank you for opening this issue, I'll take a look into it. Is there any way you could provide a sample interchange with any sensitive data removed?

@benisantos
Copy link
Author

Hi @MikeEdgar, thank you for taking a look.

I've attached a file with the first example of the Appendix B of the IATA PNRGOV Impl. Guide.

  • It has several empty segments, like SRC and DAT.

IATA_APPENDIX_B_PNR_EXAMPLE_1.txt

@MikeEdgar
Copy link
Member

@benisantos - FYI this has been released. Please open a new issue if you run into any other issues or think of any other features that may be generally useful. Thank you!

@benisantos
Copy link
Author

Awesome! Thank you @MikeEdgar

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

Successfully merging a pull request may close this issue.

2 participants