KB Article #48927
error from the mapping program when the X12 file has data with decimal values
When we give the decimal value in the field which is defined as type N2( Numeric with precision 2), it gives the following errors during compilation.
Non numeric characters in numeric element. Document position = INPUT: EDI_004010_845/CON_LOOP/CTB/e06. Segment counter = 7
Resolution
the error that is thrown when we give the decimal value as an input in the numeric field (N2) is according to the standard, and an X12 documents shouldn't contain explicit decimal points in numeric fields.
A value of a numeric data element includes only an implied decimal point not the explicit decimal point. It is used when the position of the decimal point within the data is permanently fixed and is not to be transmitted with the data, so the decimal point should not be transmitted in an element value defined as N2. I.e. for a N2 you should have e.g. "1010" in the input document and after the document has been parsed you will have the value "10.10" in our DMBuilder structure