Trailing spaces not counted in EDIFACT record length

21 views
Skip to first unread message

Wojciech Kazimierczak

unread,
Apr 30, 2025, 11:20:41 AMApr 30
to Bots Open Source EDI Translator
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

Eppye Bots

unread,
Apr 30, 2025, 12:33:14 PMApr 30
to bots...@googlegroups.com
no, this is an error. there is no reason for this.
kind regards, Henk-Jan Ebbers


--
You received this message because you are subscribed to the Google Groups "Bots Open Source EDI Translator" group.
To unsubscribe from this group and stop receiving emails from it, send an email to botsmail+u...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/botsmail/0f859de0-6b91-4b95-a7af-044582700f49n%40googlegroups.com.

Eppye Bots

unread,
Apr 30, 2025, 2:36:35 PMApr 30
to bots...@googlegroups.com
tested this; and indeed this does happen.
kind regards, Henk-Jan Ebbers


On Wed, Apr 30, 2025 at 5:20 PM Wojciech Kazimierczak <w.kazim...@gmail.com> wrote:
--
Reply all
Reply to author
Forward
0 new messages