My Oracle Support Banner

Insert Into XMLTYPE Stored as Binary Fails with ORA-31061, ORA-19202, LPX-00217 (Doc ID 1498052.1)

Last updated on JANUARY 17, 2020

Applies to:

Oracle Database - Enterprise Edition - Version 11.2.0.3 and later
Oracle Database Cloud Schema Service - Version N/A and later
Oracle Database Exadata Cloud Machine - Version N/A and later
Oracle Cloud Infrastructure - Database Service - Version N/A and later
Oracle Database Cloud Exadata Service - Version N/A and later
Information in this document applies to any platform.

Symptoms

On a database using the AL32UTF8 characterset, inserting into an XMLType column fails with the following errors:

ORA-31061: XDB error: XML event error
ORA-19202: Error occurred in XML processing
In line 19222 of orastream:
LPX-00217: invalid character 162 (U+00A2)

Statement which fails:

insert into MY_TABLE values (XMLType(bfilename('MY_COL', 'xxxxxxxxxxxx.xml'),nls_charset_id('AL32UTF8')));

The character (00A2) is a cent sign

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Cause
Solution


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.