ORA-19032: Expected XML tag , got no content

(Doc ID 1152786.1)

Last updated on FEBRUARY 13, 2018

Applies to:

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

Symptoms

SQL statement using the XMLTYPE Member Function fails with:
ORA-19032 "Expected XML tag , got no content
ORA-06512: at sys.xmltype

In the SQL statement three views are joined via OUTER JOINS.
If a certain of the OUTER JOINS is converted to an INNER JOIN, the problem disappears, but the result is incorrect as the data relationship is optional.
The OUTER JOIN also works if you don't select any columns from the third table (via an outer join).

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