cancel
Showing results for 
Search instead for 
Did you mean: 

Mapping debug - target node not being created

Former Member
0 Kudos

Hi Gurus,

I have an issue in my mapping. Let's say I have a source structure:

><body>

> <maintag>

> <value>1</value>

> </maintag>

> <maintag>

> <value>2</value>

> </maintag>

><body>

I need to map maintag->target node but only in case if value eq 2. I used a Ifw/oElse function which creates target queue

SUPPRESS(grey)

SUPPRESS(cyan)

SUPPRESS(grey)

[]

[] (dark grey)

which is fine, because only 2nd context matches the condition. But no target node is being created!

Why? How to resolve this?

Thnak you!

Olian

Accepted Solutions (1)

Accepted Solutions (1)

SudhirT
Active Contributor
0 Kudos

Hi Olian,

Did you check the parent node mapping, it shud be mapped with the source node depending upon the occurence how many times you want to generate the output field.try your mapping in normal case for multiple occurence.

Answers (2)

Answers (2)

Former Member
0 Kudos

use IfWithoutElse to check following conditon..

if value = 2(set context of value to root)--> target node

2nd input to ifWithoutElse would be maintag

Former Member
0 Kudos

Try setting the context of your source node up one level (right click on node in mapping area to see Context option).

Keith

Former Member
0 Kudos

Hi Keith, this doesn't help..

regards,

Olian

Former Member
0 Kudos

Hi Olian,

Changing the context to one level up is working for me.

Please refer to the following links:

http://farm4.static.flickr.com/3055/2828227942_e71da4a823_o.jpg

http://farm4.static.flickr.com/3134/2828228398_92f5ba41e0_o.jpg

Here the context of value was set to body in the sample DT i created.

regards,

venkat.