Skip to Content
avatar image
Former Member

Message Mapping error

Hi Experts,

My Input structure is complex structure. here is the example

Source Structure

ZEmployee

Data

-- Employee first name

-- Employee Last name

-- Employee number

-- Employee Joining date

-- Employee Joining time

-- Lines occureance ( 0 .. unbounded)

-


TDFFORMATE

-


TDLINE (0..1)

Target Structure is

ZEmployee

-- Employee first name

-- Employee Last name

-- Employee number

-- Employee Joining date

-- Employee Joining time

-- Employee Notes

In my scenario i need to concatenate all the TDLINES and pass to Employee Notes in the target for each employee. I Have written the User Defined Funcion to concatenate all TDLINES and pass to Employee notes. I facing the problem here.

In the target XML:

<EmployeeNOTES>Problem Description<b>__cC_</b>16.03.2007 11:38:57 20156600<b>__cC___cC_</b>testing problem description<b>__cC_______________________cC_</b>Escalation Note<b>__cC_</b>16.03.2007 11:38:57 20156600<b>__cC___cC_</b>escalation note</EmployeeNOTES>

I am not able to find why __cC___ is appending at the end of each TDLINE concatenation.

UDF:

String output=new String( );

for(int j=0; j<a.length; j++)

output += a[j];

{

rsult.addValue(output);

}

Can any one help to resolve this issue.

Regards,

Srini

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Mar 16, 2007 at 07:22 PM

    Hi Srini,

    cC is the constant ResultList.CC (Context Change). Before passing the TDLINE to the user defined function, use 'removeContexts' or right click on the TDLINE and set an appropriate higher context.

    Regards,

    Eshwar

    Add comment
    10|10000 characters needed characters exceeded