on 10-29-2015 6:14 AM
Hi Experts,
Need your help...
My sender system is sending messages with some characters as shown in the attached screenshot. The messages are failing in SAP PI at message mapping level and its throwing following error.
Fatal Error: com.sap.engine.lib.xml.parser.ParserException: Invalid char #0x11 (:main:, row:75, col:37) at com.sap.aii.mappingtool.tf7.Transformer.checkParserException
Will XML language accepts these kind of characters, If yes how to transform those messages without failure.
Thanks,
Srinivas.
Srinivas,
It seems source system (or user) is sending "Device Control One" character in file. http://unicode-table.com/en/#0011
Ideally  or U+0011 should be converted to  . Request source to escape non-printable characters.
If you have no control on source, you can try this
//remove escape 'Device Control One' character OR escape & in data.
inputContent = inputContent.replaceAll("", "");
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Srinivas,
you can replae the special char in java mapping.
You can refer to the below blog for the same-
Java Mapping: To change the encoding type or replacing special characters.
regards,
Harish
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Srinivas,
You can either follow up with your business team on the sender side to remove the '0x11' character and resend the message or use Java Mapping in your service to remove the same.
Please check the below link,same issue has been discussed and resolved earlier.
https://scn.sap.com/thread/1883183
Thanks,
Anir.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
76 | |
9 | |
8 | |
7 | |
6 | |
5 | |
5 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.