cancel
Showing results for 
Search instead for 
Did you mean: 

Invalid characters error

Former Member
0 Kudos

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.

Accepted Solutions (0)

Answers (4)

Answers (4)

RaghuVamseedhar
Active Contributor
0 Kudos

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("", "");

Not well-formed XML - & issue

How to create Java Mapping in SAP PI / PO

iaki_vila
Active Contributor
0 Kudos

Hi Sriniva,

Check suggestion in this thread in order to know how to do the java mapping

Regards.

Harish
Active Contributor
0 Kudos

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

0 Kudos

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.