Hello,
I've discovered that bots is not taking into account the trailing spaces in EDIFACT records, when checking the maximum length.
Example:
RFF record (data element) C506.1154 has a max. 35 characters.
Such a segment:
RFF+ON:01234567xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
gives an error: Record "UNH-CPS-LIN-RFF" field "C506.1154" too big (max 35): "01234567xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx".
However this segment with trailing spaces:
RFF+ON:01234567 '
gives no error.
After checking the code it seems to me it is done by purpose. Do you know what was the reason?
Best regards,
Wojtek