Quantcast
Channel: SCN : All Content - Process Integration (PI) & SOA Middleware
Viewing all articles
Browse latest Browse all 7030

How to deal with invalid XML character (Unicode: 0x1a)

$
0
0

Hi,

 

 

I have a File -> PI -> ECC scenario.

Every now and then i get an error in the mapping and the error is this:

<SAP:P2>com.sap.aii.utilxi.misc.api.BaseRuntimeException:</SAP:P2>

<SAP:P3>An invalid XML character (Unicode: 0x1a) was found</SAP:P3>

<SAP:P4>in the element content of the document.</SAP:P4>

 

The error is caused because the file i receive contains names with a unicode character.unicode error in xml.png

I can only make it visible in Notepad. The little arrow in the name is what causes the error.

If i remove the little arrow from the name, the processing works fine.

 

So that is my description of the error.

I've been looking on scn and found some descriptions of the issue, but never a real solution.

 

Now it would be best of course not to send the unicode character in the first place but that is not feasible at the moment, so I am looking for ways to remove the character before the XML is created.

 

Are there ways to do this?

 

My thoughts go to "Run Operating System Command Before Message Processing"

Is that an option to remove the character? If so, what steps should i follow to achieve this?

 

Are there other options?

 

Regards

Robert


Viewing all articles
Browse latest Browse all 7030

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>