on 06-20-2012 5:10 PM
Hi Expert,
The scenario is IDoc to Text file (PI 7.0) and having two mappings
1) Graphical Mapping
2) Java Mapping
The output of graphical mapping is properly passing & in view source I can can see value as & but the output of
Java mapping is not proper.In interface mapping test tab it is throwing error that XML can not be correctly formed.
And in output payload it is throwing error "Whitespace is not allowed at this location. Error processing resource".
No special operation is done on "&" in JAVA mapping. The code page is of UTF-8. I cannot remove & as it is mandatory in output.
Please suggest.
Thanks in Advance
Regards
Abhay Rajhans
In addition to above experts replies, if you want to change in java mapping use replaceAll string method to achieve this. You can read each line and save it in string and call the replace method as below
str.replaceAll("&", "&");
http://www.javamex.com/tutorials/regular_expressions/search_replace.shtml
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Message mapping handles & internally but you have to do it manually in JAVA Mapping because GUI Mapping output is having &.
Baskar already provided the trick implement it.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi.
The character "&" is not valid for your XML. You need to change this character as "&" in your output.
Regards
Lucho
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
>>>Whitespace is not allowed at this location
this error apperas when you have & only (not escaped with &) so the program is trying to find something after & and it finds whitespace... which is wrong - please make sure that you have & in both mappings and everything will be ok
Regards,
Michal Krawczyk
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
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.