yes, problem is in both files (in the document from TLW all colons have been changed to '@'. the problem of course, stay the same).
contact you edi-partner; they are sending incorrect x12 files.
the problem is fundamental; there is no 'good' (correct ) way to solve it.
if your edi-partner does not want to send correct x12, you will have to monkey-patch it....
possible ways out (but please, first check with your edi-partner to see what is going on!!):
1. check with edi-partner that they do not use sub-field separator (officially called component data separator) in their messages.
if they indeed never use it: write small preprocess script for bots that changes the subfield separator in the ISA header to another value (that is never used in the data ;-)
2. change x12 grammar definition to accommodate for this....
henk-jan
On 05/29/2012 02:05 PM, Quinlan Shanley wrote:
> henk-jan,
>
> We currently use a VAN (Innovis). The document I've been referring to is a production 850 I download from our VAN's website. We use a software to connect to our mailbox at the VAN. The software is
> call TrustedLink for Windows (TLW). For some reason, when I get the document from the TLW, the colons are changed to @ symbols. I've included both documents.
>
> In short, the documents I've downloaded from our VAN could have been changed by some preparation process that I don't know about.
>
> Regards,
> Quin Shanley
>
> On Monday, May 28, 2012 11:49:27 AM UTC-5, eppye wrote:
>
> what probably happens in 850_004010.x12 is that the colon is defined as a sub-field separator.
> in x12 a rule is that the separators can not be used in the data (yes, this is pretty pathetic....I know. x12 does not have an escape sign...)
>
> looks like same problem occurs in the other files.
>
> these x12 are not valid x12. Compare this to not well-formed xml. The basic syntax rules are violated.
> your partner should use another subfield separator.
> filtering out the colons will probably not work, as you will also filter out the correct colons.
>
> are you sure this x12 is 'as in production'? (you can send it, I will check if this is indeed a non-valid file)
>
> henk-jan
>
> On 05/28/2012 06:20 PM, Quinlan Shanley wrote:
> > henk-jan,
> >
> > Maybe something else is happening here? I am very new to BOTS so I do not yet know all the ins-and-outs. Below are the segments of the EDI doc that is giving me trouble and the file errors
> messages.
> > I also attached the file errors as a screenshot.
> >
> > MSG^
HTTP://WWW-03.IBM.COM/PROCUREMENT/PROWEB.NSF/CONTENTDOCSBYTITLE/ <
HTTP://WWW-03.IBM.COM/PROCUREMENT/PROWEB.NSF/CONTENTDOCSBYTITLE/>!
> > N1^ST^IBM INVOICE TO CODE: 26P/896^92^992!
> > N2^BLDG 006 SHIP TO CODE: 5GQ/895!
> >
> > Errors:
> >
> > State Re* Route Date/time #in InEditype InMessagetype FromChannel FromPartner ToChannel ToPartner
> OutEditype OutMessagetype InFile OutFile Error MappingScript FromMail ToMail
> >
> > *
> >
> >
> > *
> >
> > Error IBM_850_004010 2012-05-28 11:15:53 0 x12
> > IBM_850_In
> >
> >
> >
> >
> >
ftp://In/850_004010_2.x12 <
ftp://In/850_004010_2.x12> <
http://localhost:8080/filer/?action=this&idta=10382 <
http://localhost:8080/filer/?action=this&idta=10382>>
> > Traceback (most recent call last): InMessageFieldError: line:47 pos:26; expect field, is a subfield; record "N2 BLDG 006 SHIP TO CODE 5GQ/895 ".
> >
> >
> >
> > *
> >
> >
> > *
> >
> > Error IBM_850_004010 2012-05-28 11:15:53 0 x12
> > IBM_850_In
> >
> >
> >
> >
> >
ftp://In/850_004010_1.x12 <
ftp://In/850_004010_1.x12> <
http://localhost:8080/filer/?action=this&idta=10380 <
http://localhost:8080/filer/?action=this&idta=10380>>
> > Traceback (most recent call last): InMessageFieldError: line:46 pos:27; expect field, is a subfield; record "N1 ST IBM INVOICE TO CODE 26P/896 (etc)".
> >
> >
> >
> > *
> >
> >
> > *
> >
> > Error IBM_850_004010 2012-05-28 11:15:53 0 x12
> > IBM_850_In
> >
> >
> >
> >
> >
ftp://In/850_004010.x12 <
ftp://In/850_004010.x12> <
http://localhost:8080/filer/?action=this&idta=10378 <
http://localhost:8080/filer/?action=this&idta=10378>>
> > Traceback (most recent call last): InMessageFieldError: line:10 pos:10; expect field, is a subfield; record "MSG HTTP //
WWW-03.IBM.COM/PROCUREME <
http://WWW-03.IBM.COM/PROCUREME> (etc)".