KB Article #176259

"EDI error attribute created" error when parsing an EDI message

Problem

-- trying to parse an X12 message with such ISA segment :

ISA^00^          ^00^          ^ZZ^PARTNER1       ^ZZ^COMMUNITY1     ^100218^1327^U^00401^000106213^0^T^º~

-- getting such error on Linux / Unix / Windows platforms (except W2008R2)

EDI error attribute created: {{1,1,"ISA",16,"I15",0,"","","CSC error, CscReadChar: converter error: csc utf8 invalid utf8 character head format '0xBA'","X12",""},{2,1,"ISA",0,"",0,"","","Extra data at end of segment. Document position = HEADER/ISA. Segment counter = 1","X12",""}}

-- cause the processing engine to crash on Windows 2008 R2

Resolution

* Both X12 and EDIFACT delimiters have to be ASCII characters (printable characters)
That means they fall in the range of 0-127 (Decimal) or 00-7F (HEX)

* in the example below, º is the subcomponent separator, and is not a printable character (ascii code 167), so the EDI parsing fails

* change the subelement separator in the ISA segment accordingly

* on Windows 2008 R2, the error is not corectly handled, and caused the PE to crash. The problem occurs ion B2Bi 1.5.0_SP10 and lower versions. It will be fixed in a later version (please refer to readme of future Service Packs)