cancel
Showing results for 
Search instead for 
Did you mean: 

Mapping exception

Former Member
0 Kudos

Hi All,

I have one mapping exception

Here i describe my mapping

Descrption:(line break)

Text:----


maximum length=132

The above fields are Source fileds.

"Full Description" is the target field.

Here i mapped

Description and Text field mapped UDF and finally mapped to Fulldescription.

In the UDF: return string1System.getProperty("line.separator")string2;

so this mapping correct and successfully process with line break when the for example Text Fied data:my country is India

in XI XML message mapping like that :<Full Description> Descrption: my country is India</Full Description>

Here we pass one condition if full description field more than 2000 chacters it throw error and cancel the process and send mail to particular person.

In this case we test the mapping

Text Field data: my country is India and i am belongs andhrapradesh..........

-


-


-


-


(more than 2000 chacters)

This above Text field data is in Paragraph wise,so when we can test it XI mapping can read the first line of the paragraph only not readed second line more than 2000 chacters. so at that time it not throws any error.In this case also it is successful

But we need error when more 2000 chacters.so my question how to read all lines of the data? Can you please help me out.

Thank you very much in advance.

Regards

Sateesh

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Sateesh,

Just add one more line to your UDF code. It will work.

String temp = string2.replaceAll("\n","");

return string1 System.getProperty("line.separator")temp;

This would resolves your issue.

Regards,

Swetha.