Skip to Content
avatar image
Former Member

Invalid characters error

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.

Untitled.png (1.7 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • avatar image
    Former Member
    Oct 29, 2015 at 06:37 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 29, 2015 at 06:56 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 29, 2015 at 07:05 AM

    Hi Sriniva,

    Check @Raghu Vamseedhar Reddy KadipiReddy suggestion in this thread in order to know how to do the java mapping

    Regards.

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 29, 2015 at 08:35 PM

    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

    Add comment
    10|10000 characters needed characters exceeded