on 01-16-2008 1:54 PM
Hi All,
In my scenario, I am getting a string with length 14.
I need to extract 8 digit date from it and map it to target field of length 8. Problem is that, when i look into the display queue in mapping, I am getting correct result. But whenever I am trying to test the whole mapping its giving error on that perticular field as
Cannot produce target element . Check xml instance is valid for source xsd and target-field mapping fulfills requirements of target xsd .
Thanks in advance,
Reyaz
hi reyaz,
you can try FormatNum function under Arithmetic.
or you can also go for user define finction which can convert string value into date format using simple java code
regards,
navneet
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
1. Does the date u r trying to send has some separator? Like "/" in 06/12/1983, then there is a length mismatch.
2. Also the UDF output is in string format and i think ur target element is date field and not a string
3. Are u checking with the blank field also? Have u handled that situation.
Regards,
Prateek
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.