Search This Blog

SBL-EAI-00245: Character '%1' cannot be represented in XML

Applies to:

Siebel CRM - Version: 8.0.0.3 [20416] and later   [Release: V8 and later ]
Information in this document applies to any platform.

***Checked for relevance on 13-JAN-2011Y***


Symptoms


The customer was trying to convert some data to an XML document on Siebel 8.0 and received the error below:



Error invoking service 'EAI XML Write to File', method 'WriteEAIMsg' at step 'Write XML'.(SBL-BPR-00162)
--
'EAI XML Write to File' service with method 'WriteEAIMsg' failed while generating XML to be written to file '\\pdbh9tn25\FTEXPIMP\XMLExport\SRQ$$__SBS Field Operations.XML'.
(SBL-EAI-04266)
--
The XML Hierarchy cannot be converted to an XML Document.(SBL-EAI-04112)
--
Character '0x0001' cannot be represented in XML(SBL-EAI-00245)


However the same data was being converted without errors on Siebel 7.5. The only difference was that the offending character was converted to ‘ü’ (u umlaut).


Cause


The cause was the difference between the character set converter of Siebel 7.5 and 8.0.

On 7.5 the character set converter allowed non characters to be converted as strange characters like ‘ü’ instead of raising errors.

On 8.0 the character set converter is more restrictive and raises an error when non characters are converted to the given character set. This is the correct behavior.

Solution


The customer found that if they set the “Ignore Char Set Conversion Error” to true on the XML converter they are able to save the data to file without errors however there will be a question mark where offending characters are found.

This made their process finish correctly and the XML message be created without errors.

Just note that the “Ignore Char Set Conversion Error” argument will replace offending characters with a question mark. However it is advisable to use this argument set to True only while the data is not corrected on the database as it might mask other character set errors.









Applies to:

Siebel CRM - Version: 8.0.0.3 [20416] and later   [Release: V8 and later ]
Information in this document applies to any platform.

***Checked for relevance on 13-JAN-2011Y***


Symptoms


The customer was trying to convert some data to an XML document on Siebel 8.0 and received the error below:



Error invoking service 'EAI XML Write to File', method 'WriteEAIMsg' at step 'Write XML'.(SBL-BPR-00162)
--
'EAI XML Write to File' service with method 'WriteEAIMsg' failed while generating XML to be written to file '\\pdbh9tn25\FTEXPIMP\XMLExport\SRQ$$__SBS Field Operations.XML'.
(SBL-EAI-04266)
--
The XML Hierarchy cannot be converted to an XML Document.(SBL-EAI-04112)
--
Character '0x0001' cannot be represented in XML(SBL-EAI-00245)


However the same data was being converted without errors on Siebel 7.5. The only difference was that the offending character was converted to ‘ü’ (u umlaut).


Cause


The cause was the difference between the character set converter of Siebel 7.5 and 8.0.

On 7.5 the character set converter allowed non characters to be converted as strange characters like ‘ü’ instead of raising errors.

On 8.0 the character set converter is more restrictive and raises an error when non characters are converted to the given character set. This is the correct behavior.

Solution


The customer found that if they set the “Ignore Char Set Conversion Error” to true on the XML converter they are able to save the data to file without errors however there will be a question mark where offending characters are found.

This made their process finish correctly and the XML message be created without errors.

Just note that the “Ignore Char Set Conversion Error” argument will replace offending characters with a question mark. However it is advisable to use this argument set to True only while the data is not corrected on the database as it might mask other character set errors.

No comments:

Post a Comment