on 12-24-2012 9:55 AM
Hi Experts,
We have an issue in graphical mapping wherein there is a node S in the Source which is 0...unbounded. This node S has an element S1 amongst a few other elements. The occurence of S1 is 0..1. Now we populate the target node T only if the element S1 contains a value "Active"(Have made use of IFS Then). This works fine in all cases, however since the occurence of S1 is optional, in case S1 does not occur for a particular case, the mapping leads to context issues(does not throw an error).
Kindly suggest if there is a way i can check if the node S1 is coming or not. Exists condition doesnt seem to be working.
Cheers,
Sriram
Hi Amit, All
Map with Default does not work here. Whenever the field Name is missing in one of the context then rest of the values in the queue gets jumbled up. What happens in my case is as below:
There is a certain case when the field Name as per your mapping above does not come at all(Its not that its an empty tag.the field itself does not come in the XML) Due to this missing field, my mapping doesnt take into acccount that there is a context in whcih Name has gone missing and finds this field in the next context and messes up all the further context values.
Please advise what can be done here. If the source system sends in the Name field(even with an empty tag), this will work, however as per source schema this is an optional field and hence they are reluctant to send it.
Appreciate everyone's help here.
Cheers,
Sriram
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Sriram,
I am agree with Amit's suggestions.
additionally you can try createIf function before mapping the result to target node.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
Paste ur mapping here.
BTW, u can try to use "mapwithdefault" just after S1 element and then use Remove context followed by ur actual mapping conditions (ifs).
Thanks
Amit Srivastava
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Amit, All
Map with Default does not work here. Whenever the field Name is missing in one of the context then rest of the values in the queue gets jumbled up. What happens in my case is as below:
There is a certain case when the field Name as per your mapping above does not come at all(Its not that its an empty tag.the field itself does not come in the XML) Due to this missing field, my mapping doesnt take into acccount that there is a context in whcih Name has gone missing and finds this field in the next context and messes up all the further context values.
Please advise what can be done here. If the source system sends in the Name field(even with an empty tag), this will work, however as per source schema this is an optional field and hence they are reluctant to send it.
Appreciate everyone's help here.
Cheers,
Sriram
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
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.