I’m trying to make wM handle my company’s 850, 860, and 820 EDI transactions using wM. Here’s my wM version info:
Build Number 425
The server is running on a Unix platform.
I’m having a fundamental problem while mapping the EDI 850 to another internal flat file schema. I do the usual thing: map the 850 header, loop over each line item detail /T850DT/ST/P01, and then map the summary. The internal flat file schema is VERY flat: the output array is /InternalFF/11.
In my mapping service I have a LOOP where the input array is /T850DT/ST/PO1 and the output array is /InternalFF/11. Under that I invoke a service called MapLineItemDetail that takes a document type PO1 as input and 11 output.
I’m sending in an EDI 850 document that has 3 PO1 children. When I run my service I get back my InternalFF with an array of 3 “11” documents, as it should, but all three are null.
When I step through the debugger, I can see that the LOOP is executed three times. The proper data for each PO1 element is visible in the Results tab, so I believe the input data is arriving as it should.
What did I miss in the mapping step, and why are the values null? I map four String values from the PO1 to the 11 document, so those are mapped by value. How can the output 11 document be null? How to best debug this? Please advise. Thanks - MOD