on 02-09-2011 7:06 PM
Hi,
I have a question; not sure if this falls under Java UDF question or PI mapping question.
I have a mapping, source is XML and target is an IDoc.
The current mapping for a target field is as below:
Source field: "delivery_date" (it has date time - a string) - multiple occurance of this tag possible.
Target field: IDoc segment field.
In the map, I have a context collapse for "delivery_date" tag to get all values together (from multiple nodes) and then get the last value from all occurences using a UDF.
I have situation when the value is blank(tag exists, but no value). This is working fine. But when the tag is absent entirely from the source message, I am not sure how to handle this; it is a "SUPRESS" in display queue. "EXISTS"+ "NOT" node function doesn't work in this case if delivery_date tag is absent from source message, may be because the source field is "context collapsed".
Could anyone suggest a solution for this mapping when the tag itself is absent from source message?
Thank you.
Add "MapWithDefault" function after delivery_date in your mapping and then try.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.