on 03-15-2007 8:52 AM
Hi everyone.
Yesterda i thought the problem was solved but i realised that when node PLURIANUAL (source) doesn't (no PLURIANUALs for that item) under node ITEM, mapping is not working.
I've done as Jin Shin told me in thread
but is not working when PLURIANUAL node is not coming (defined as 0 ... unbounded), so node POSPRE is being mapped wrong. Only work in the case that all ITEMs had PLURIANUAL node. Else, doesn't work.
I put again the sample :
<b>Source message ...</b>
<item>
<POSPRE>444/55555</POSPRE>
<PLURIANUAL>
<EJ_PL>2000</EJ_PL>
<AMOUNT>00</AMOUNT>
</PLURIANUAL>
........
.........
.........
<PLURIANUAL>
<EJ_PL>2001</EJ_PL>
<AMOUNT>01</AMOUNT>
</PLURIANUAL>
</item>
<POSPRE>111/22222</POSPRE>
<PLURIANUAL>
<EJ_PL>2000</EJ_PL>
<AMOUNT>00</AMOUNT>
</PLURIANUAL>
........
.........
.........
<PLURIANUAL>
<EJ_PL>2001</EJ_PL>
<AMOUNT>01</AMOUNT>
</PLURIANUAL>
</item>
<item>
....
...
...
</item>
<b>As target, i have to have this .......</b>
<item>
<PLURIANUAL>
<EJ_PL>2000</EJ_PL>
<AMOUNT>00</AMOUNT>
<POSPRE>444/55555</POSPRE>
</PLURIANUAL>
<PLURIANUAL>
<EJ_PL>2001</EJ_PL>
<AMOUNT>01</AMOUNT>
<POSPRE>444/55555</POSPRE>
</PLURIANUAL>
.........
.........
.........
<PLURIANUAL>
<EJ_PL>2000</EJ_PL>
<AMOUNT>00</AMOUNT>
<POSPRE>111/22222</POSPRE>
</PLURIANUAL>
</item>
Regards.
Inigo
So when you do the mapping do you get an error like doesn't fulfil target mapping?
Are you mapping anything to the PLURIANUAL node?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
have the mapping node <b>exists</b>. use it in a IF condition
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
OK I understand you say it is being mapped wrong but how... could you please give a sample of your target and structure with the wrong mapping
Also what is the plurianial node mapped to in the target? PROSPRE? if so this will cause an issue because if your mapping of PROSPRE is dependant on PLURIANIAL and no PLURIANIAL is present in the target then you are bound to get a strange mapping...
So please do a few things for me...
paste the Target Structure that comes whren no Plurianial node is present... also paste the relevant source structure and if you can let me know what mappings you are using and if possible what result you would want to get if there was no plurianial node...
Message was edited by:
Alex Ong
User | Count |
---|---|
84 | |
24 | |
11 | |
9 | |
7 | |
6 | |
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.