XMLSAVEDOM FAILS WITH ERROR 20 WHEN CLOB IS 1999 OR 2000 BYTES (Doc ID 2153283.1)

Last updated on NOVEMBER 30, 2016

Applies to:

Oracle Database - Enterprise Edition - Version 11.2.0.3 to 12.1.0.2 [Release 11.2 to 12.1]
Information in this document applies to any platform.

Symptoms

XML data saved in a database clob datatype column and after retrieving the data from the database, application calls the Oracle provided library xmlSaveDom() to parse it into a buffer_string and it will fail with error 20 where length of data is 1999 or 2000 bytes.


Cause

Sign In with your My Oracle Support account

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

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms