cancel
Showing results for 
Search instead for 
Did you mean: 

Invalid XML character (Unicode: 0x2)

former_member217283
Participant
0 Kudos

Hi all,

My interface is:  file (with content conversion) --> PI--> abap proxy.

I have a error in the message mapping because there is a character invalid for xml 1.0 format.

We configures the sender file adapter with others file encoding and file type binary but the problem is the same.

I read the solution with a java mapping, add a CDATA tag in the xml in the fields, but the problem is the same if in the future is use another invalid character.

Somebody know another solution for this problem?

Thanks in advance

Mónica

Accepted Solutions (1)

Accepted Solutions (1)

iaki_vila
Active Contributor
0 Kudos

Hi Monica,

This theme has been largely discussed and the unique solution is to eliminate the invalid character or to avoid to have it in the sender system, in your case in the file.

I think the better solution is to do a java mapping as first mapping (no add CDATA is nedded): http://scn.sap.com/docs/DOC-16138

Regards.

Answers (1)

Answers (1)

RaghuVamseedhar
Active Contributor
0 Kudos

Monica,

It is data issue, should be fixed in source system. Unicode 0x2 is 'Start of Text', which is represented as  . & should be escaped in XML.

Unicode character table

Please request source system to remove that character in data. If it is not possible, check this