My Oracle Support Banner

DBMS_XMLGEN.GETXML Raises ORA-01008 If The Bind Variable Is NULL, Up To 10.2 (Doc ID 1448994.1)

Last updated on FEBRUARY 11, 2020

Applies to:

Oracle Database - Standard Edition - Version 10.1.0.2 to 10.2.0.4 [Release 10.1 to 10.2]
Oracle Database Cloud Schema Service - Version N/A and later
Oracle Cloud Infrastructure - Database Service - Version N/A and later
Oracle Database Backup Service - Version N/A and later
Oracle Database Cloud Service - Version N/A and later
Information in this document applies to any platform.

Symptoms


Generating an xml document using dbms_xmlgen.getxml for a query where a bind variable is set to null raises the errors
ORA-19202: Error occurred in XML processing
ORA-01008: not all variables bound
up to the Oracle Server 10.2.0.4

Example



It works starting from Oracle Server 11.1 where the output is

<?xml version="1.0"?>
<ROWSET>
<ROW>
<RUN_ID/>
</ROW>
</ROWSET>

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
References


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