Query on xmltype variable with > 64k nodes returns NULL or incorrect result (Doc ID 2128646.1)

Last updated on APRIL 19, 2016

Applies to:

Oracle Database - Enterprise Edition - Version 11.2.0.4 and later
Information in this document applies to any platform.

Symptoms

When passing XML with > 64K nodes as a pl/sql variable, query returns NULL or an incorrect result. For instance:

EXPECTED RESULT:
  xml_clob:<Detail><Value>a65536b</Value></Detail>
ACTUAL RESULT:
  xml_clob:

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