Subject:Optional values (ZZ1) causes error when converting to EDI to XML Author:Java Bear Date:14 Feb 2007 09:23 AM
I am having problems using the "Convert to XML using adapter" option on certain files that I try to open. I am using the "Electronic Data Interchange (EDI)" converter on an EDI file, and get an IOException error decoding value "ZZ1". I have been looking for a description of the standard which is D93A, but are not able to see this value clearly specified. Is this part of the EDI standard D93A? Is there perhaps an option in the converter, so that it is not validated?
Subject:Optional values (ZZ1) causes error when converting to EDI to XML Author:Tony Lavinio Date:14 Feb 2007 05:05 PM
There are lots of ways to handle this.
But first, ZZ1 is not a standard value for any of the elements
in the D93A EDIFACT standard.
You can turn off table-lookup validation for everything in
the file by specifying tbl=no on the URL. But that's overkill.
You can create a file that lives in the same directory as the
EDIFACT.jar file that came with Stylus Studio. Call it
EDIFACT.properties, and put in one line that looks like this:
D93A.???.ZZ1=something
You'll have to know which element was failing on the ZZ1 lookup,
and put the name of that element where the ??? is above. You can
also put a description of what ZZ1 means where the 'something' is.
Typically values beginning with ZZ or ZZZ are mutually defined by
the sender and receiver to mean something that isn't covered in the
standard.