on 01-21-2010 12:55 PM
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
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.