|
next
|
 Subject: XML to EDI Author: Stylus User Date: 20 May 2008 12:16 PM
|
Sure, it's build 1050g, SS 2008. What appears to happen in SS is first it writes the invalid file (decimal in n0 field), then it attempts to read it back into the IDE. An error message comes up at that point, but from the stack trace it's clear that SS is reading the file, and it's also been completely written out to disk.
I just finished testing what happens when saving an XML file with a bad date field. The converter caught the invalid date as it was saving the file, but on disk was left a fragment of an EDI file, with data up until the time of the error. I put the invalid date in the GS segment, and what I found on disk was a file with only an ISA segment.
We're going to be going on to use the components from generated Java code, but we're doing preliminary testing in SS. What is important to us is that only good EDI files are sent and received, and getting invalid and incomplete files on disk is what we are trying to avoid. We'd like to see all validity checking done before anything is written to disk (at least in the destination folder).
If we have to write a temporary file, read it in order to check it, and then move it if the read is successful, I guess we would consider this an acceptable workaround, but the performance hit will be expensive.
|
next
|
 Subject: XML to EDI Author: Stylus User Date: 20 May 2008 01:10 PM
|
Sure, I'll send in the XML file, and the resulting EDI X12 file.
So I understand the design, could you tell me what happens within the EDI converter with numbers that come in with decimal points when the destination is an EDI field with implied decimal positions?
What would be ideal is to be able to send in XML the actual value, with conversion (multiplying, rounding, truncating, etc) happening in the converter.
We have the Java BigDecimal type mapped to the XML elements which are decimal in the schema, and it is quite likely these will serialize to text containing the decimal point in all cases, even when the value is a whole number, or when the destination has implied decimal positions in the X12 spec.
|
|
|
|