cancel
Showing results for 
Search instead for 
Did you mean: 

Message Mapping Problem

Former Member
0 Kudos

Hello,

I am geting the error "Character reference "&#0" is an invalid XML character., org.xml.sax.SAXParseException: Character reference "&#0", when I am running a IDoc through a mapping. That's the responsible field <USNAM>R/2 &#0;&#0;&#0;&#0;&#0;&#0;&#0;&#0;</USNAM>

Only way I know how to change that is running it through a mapping and doesn't map anything to USNAM but mappings don't even work. It's like a deadlock with no solution.

Do you have any suggestions how to get rid of <USNAM> within SAP PI? That field is not important, but it's filled with &#0 when it's send to SAP PI. I can't change that fact.

Accepted Solutions (0)

Answers (2)

Answers (2)

RaghuVamseedhar
Active Contributor
0 Kudos

Adding to above information.

Jochen,

Request source system not to send null characters http://unicode-table.com/en/#0000 or send well-formed XML (& escaped). If they can not change there code, then implement Java mapping.

iaki_vila
Active Contributor
0 Kudos

Hi Jochen,

You have to do a java mapping to scape/exclude those characters.

Check Raghu Vamseedhar Reddy KadipiReddy blog

Regards,