x12 version and ISA11/12

386 views
Skip to first unread message

O

unread,
Jan 29, 2013, 1:41:18 PM1/29/13
to bots...@googlegroups.com
Fairly new to BOTs but thus far all has gone well after scrounging a lot of ideas from this group.

Have hit a problem with a new partner where they want a x12 810 version 005010. Grammar and all was there already so seemed like an easy addition. Problem is no matter what I've done I can not get the output 810 to put set ISA11 to U and ISA12 to 00501

I've got a partner file with syntax to set version to 00501 (and ISA11/12 as well) have set it directly in my translation script for that parter, used q query in the grammer for the message type to set the version etc. all to no avail.

I've got debug added to my translation script that shows the out.ta_info['version'] is 00501 and have debug in my partner script that shows it is being set to again set the version to 00501.

However, when I add debug to envelope.py where the ISA line is created is hows version as 00403 and puts ^ in ISA11 and 00403 in ISA12. It will set in correctly in the GS segment.


Any thoughts on where I could have gone wrong?

ISA*00*          *00*          *01*BLAH     *01*BLAHBLAH      *130129*1938*^*00403*000000050*1*P*>~
GS*U*8005250642*033040353*20130129*1938*50*X*005010~

henk-jan ebbers

unread,
Jan 29, 2013, 1:58:37 PM1/29/13
to bots...@googlegroups.com

On 01/29/2013 07:41 PM, O wrote:
> Fairly new to BOTs but thus far all has gone well after scrounging a lot of ideas from this group.
>
> Have hit a problem with a new partner where they want a x12 810 version 005010. Grammar and all was there already so seemed like an easy addition. Problem is no matter what I've done I can not get
> the output 810 to put set ISA11 to U and ISA12 to 00501
http://code.google.com/p/bots/wiki/GrammarsPartnerSyntax

use 'version' for ISA12
ISA11 is a strange thing. Before version 00403 it was 'U'.
After that it was used for a 'repetion character' .
I think 'U' would be against x12 rules....
if you want to set the repetion character, set 'reserve'
bij default (in grammar.py) this is indeed ^


let me know if you this helps.

kind regards,
henk-jan ebbers

>
> I've got a partner file with syntax to set version to 00501 (and ISA11/12 as well) have set it directly in my translation script for that parter, used q query in the grammer for the message type to
> set the version etc. all to no avail.
>
> I've got debug added to my translation script that shows the out.ta_info['version'] is 00501 and have debug in my partner script that shows it is being set to again set the version to 00501.
>
> However, when I add debug to envelope.py where the ISA line is created is hows version as 00403 and puts ^ in ISA11 and 00403 in ISA12. It will set in correctly in the GS segment.
>
>
> Any thoughts on where I could have gone wrong?
>
> ISA*00* *00* *01*BLAH *01*BLAHBLAH *130129*1938*^*00403*000000050*1*P*>~
> GS*U*8005250642*033040353*20130129*1938*50*X*005010~
>
> --
> 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.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

O

unread,
Jan 29, 2013, 4:31:46 PM1/29/13
to bots...@googlegroups.com

Thanks for the tips. Got everything but changing the ^ in ISA11 to a U.

Setting reserve or sfield_sep etc. gives and error of

OutMessageError: Character "U" is in use as separator in this x12 file. Field: "CUR".

My guess is our partner probably doesn't really care what is in that field so I'll submit what we have and hopefully they wont complain. If worse comes to worse I'll write a post/process script to change the character.

henk-jan ebbers

unread,
Jan 29, 2013, 4:37:25 PM1/29/13
to bots...@googlegroups.com

On 01/29/2013 10:31 PM, O wrote:
>
> Thanks for the tips. Got everything but changing the ^ in ISA11 to a U.
>
> Setting reserve or sfield_sep etc. gives and error of
if you set it to 'U', yes that is what I would expect.

>
> OutMessageError: Character "U" is in use as separator in this x12 file. Field: "CUR".
>
> My guess is our partner probably doesn't really care what is in that field
right!
(if their docs says 'U', they probably copied this from older docs)


henk-jan

> so I'll submit what we have and hopefully they wont complain. If worse comes to worse I'll write a post/process script to change the character.

Kurohai

unread,
Nov 3, 2015, 8:31:26 PM11/3/15
to Bots Open Source EDI Translator
I know this is an old thread, but I wanted to post my fix to the ISA11 issue since I came across it while Googling.

I was able to change the '^' to ':' by setting reserve in the partnerscript and NOT using ISA11. Setting both to ':' gave me the error.
OutMessageError: [F51]: Character ":" is used as separator in this x12 file, so it can not be used in content. Field: ":".


TL;DR
This works:
syntax = {
    # 'ISA11': ':',
    'reserve': ':',
}

These do not work:
syntax = {
    'ISA11': ':',
    'reserve': ':',
}

syntax = {
    'ISA11': ':',
    # 'reserve': ':',
Reply all
Reply to author
Forward
0 new messages