Skip to Content
author's profile photo Former Member
Former Member

unmapped nodes duplicates in target

Hi,

below is my source and target mesg

source

header 0--ub

A 0--1

B 0--1

C 0--1

D 0---1

target

header1

A 0--1

B 0--1

Header2

C 0--1

D 0--1

Header3

E--const

F--Const

my source header is mapped to header1 and header2.

so in target, i see header1, A,B have values as mapped and empty C,D . which i wnt remove.

same behavior in hedaer2, A,B empty but C,D has value.

in header3 i see empty A,B,C,D(as no maped nodes) nad const.

i don wan unmapped fields,

i m trying to use standard functions but nothing i clicking,occurences of items are not fixed.

hav gone thru the use of functn like copyvalue,removecontext etc

pls help me resolving this

thanks,

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Feb 26, 2009 at 10:14 PM

    can you post your sample message here for us to exam ?

    Thanks

    Liang

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      I think now I understand your problem:

      You will need two UDF for your mapping:

      UDF1 for node A and B:

       for (int i=0; i<a.length; i++)
        {
          result.addValue(a<i>);
        }
       for (i=0; i<a.length; i++)
        {
          result.addValue(ResultList.SUPPRESS);
        }
      

      Node A --> RemoveContext --> UDF1 ---> SplitByValue (each value) --> Node A

      Node B --> RemoveContext --> UDF1 ---> SplitByValue (each value) --> Node B

      UDF1 for node C and D:

       for (int i=0; i<a.length; i++)
        {
          result.addValue(ResultList.SUPPRESS);
        }
       for (i=0; i<a.length; i++)
        {
          result.addValue(a<i>);
        }
      

      Node C --> RemoveContext --> UDF2 ---> SplitByValue (each value) --> Node C

      Node D --> RemoveContext --> UDF2 ---> SplitByValue (each value) --> Node D

      Let me how it works.

      Liang

      Edited by: Liang Ji on Feb 27, 2009 5:05 AM

  • Posted on Feb 27, 2009 at 05:21 AM

    Hi,

    Have you tried this:

    1. right-clicking on the nodes C, D and clicking the disable field option for Header 1

    2. right-clicking on the nodes A, B and clicking the disable field option for Header 2

    3. right-clicking on the nodes A, B, C, D and clickng the disable field option for Header 3?

    Regards,

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.