Mapping Validation Error
Greetings,I have a simple map (for an EDI990 not that it matters). The input file is simple for the portion in error.
AcceptorDeclineCode which can hold an A or D.
Reason which can hold a three character code or be empty or missing.
On the output I have a field that I wish to put the Reason in IF it exists and was declined and have the field not present in the output file if accepted or the reason doesn't exists. I created the map as such:
Equal functoid with parameters AcceptorDeclineCode and D.
NotEqual functiod with parameters Reason and empty string.
logical existance functoid with parameters Reason.
All three of these output into a Logical AND functiod.
The logical and functoid outputs to a Value Mapping functoid with second parameter of Reason. The value mapping functoid outputs into my output schema field.
I use test data of:
AcceptorDeclineCode: A
Reason: XYZ
and
AcceptorDeclineCode: D
Reason: XYZ
D works. A returns the following error:
Output validation error: The element 'K1" in namespace http://.... has incomplete content. List of possible elements expected: 'K101'.
My output should look as so for accept:
ISA*.......
GS*.......
ST*.......
B1*.....
N9*....
SE*...
GE*....
IEA*......
Notice NO K1 line.
My output should look as so for decline:
ISA*.......
GS*.......
ST*.......
B1*.....
N9*....
K1*XYZ....
SE*...
GE*....
IEA*......
Any ideas?
Thanks,
Brian