You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
first of all, thank you for this library, it is briliant :)
I ran into 1 issue, sometimes I get several messages wrapped together into 1 file, so like this:
UNB
UNH
UNT
UNZ
UNB
UNH
UNT
UNZ
which works fine however sometimes these bundles also contain the UNA, now 1 UNA at the top is fine but if i'ts pure/raw messages that get bundled then I see an UNA infront of each UNB
UNA
UNB
UNH
UNT
UNZ
UNA
UNB
UNH
UNT
UNZ
and that will cause an AssertionError.
it’s easily fixed by removing them before loading in or splitting them per UNA but it took me some time to figure out why some files worked and some did not. So I figured I mention it.
Regards,
The text was updated successfully, but these errors were encountered:
Hm. While it may ba "easy" to fix, I'm not sure if this is concern of pydifact. Because the specification says that one UNA header must be present.
If you wipe out the UNA header of a concatenated second message, the separator characters could be different from the ones the first message uses.
Yes I know, almost all messages worldwide use the same characters - but that's the problem of deduction: Just because you never saw a black swan, it doesn't mean they don't exist.
So it would be really bad to just "ignore" all following UNAs and skip them.
The only way I could think of solving this, is: let pydifact accept concatenated EDIFACTs - and treat each one as separate one.
And, just to ask, why do you get more than one messages wrapped into one file? Who does this? ;-)
Wouldn't it be better to fix the real bug and stop him doing this?
hi
first of all, thank you for this library, it is briliant :)
I ran into 1 issue, sometimes I get several messages wrapped together into 1 file, so like this:
UNB
UNH
UNT
UNZ
UNB
UNH
UNT
UNZ
which works fine however sometimes these bundles also contain the UNA, now 1 UNA at the top is fine but if i'ts pure/raw messages that get bundled then I see an UNA infront of each UNB
UNA
UNB
UNH
UNT
UNZ
UNA
UNB
UNH
UNT
UNZ
and that will cause an AssertionError.
it’s easily fixed by removing them before loading in or splitting them per UNA but it took me some time to figure out why some files worked and some did not. So I figured I mention it.
Regards,
The text was updated successfully, but these errors were encountered: