ORA-31011, ORA-19202 and LPX-240 from XML Query

(Doc ID 1596080.1)

Last updated on FEBRUARY 08, 2017

Applies to:

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

Symptoms

 Getting below error -

select XMLTRANSFORM (bald.ases_rec, pxri.xsl_prces_rule)
from api5afs.prces_xsl_rule_itm pxri,api5afs.bas_ases_log bald
where bald.wh_prces_dte = '31jul13'
and bald.intrfc_type_cde = 'A-BAS-GCD-SMG'
and bald.applic_fclty_id= 16866456
AND pxri.intrfc_type_cde = bald.intrfc_type_cde

Error:
*
Error at line 2
ORA-31011: XML parsing failed
ORA-19202: Error occurred in XML processing
LPX-00240: element-start tag is not well formed
Error at line 39

This error is only coming in 11g but the same code runs fine in 10.2.0.4 and 10.2.0.5.

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