-
Notifications
You must be signed in to change notification settings - Fork 87
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
File has multiple messages #87
Comments
In Analyser I split them correctly How do you use Reader? |
$parser = new Parser($file_content); $reader->readEdiDataValue(['NAD', ['1' => 'SE']], 2, 0); But for more than 1 message the 'File has multiple messages' error is logged. |
Since Reader accepts an array, if you don't want to change the code you could call setParsedFile on each message. |
OK. Like in #84 I did not noticed splitMultiMessage. I will have a look. Thank you. |
Thank you for pointing out splitMulitMessage. Have a look for testSplitMultiMessage. That figures out how to use it. edifact/tests/EDITest/ReaderTest.php Line 78 in 594112d
|
Seperating the file and loop each message. edifact/tests/EDITest/ReaderTest.php Line 78 in 594112d
|
edifact/src/EDI/Reader.php
Line 94 in 594112d
Will that be possible someday?
For now you have to seperate the messages within a file manually?
Thank you.
The text was updated successfully, but these errors were encountered: