My Oracle Support Banner

Unable To Load XML Using ODI when Unique Temporary Object Names Enabled (Doc ID 2658850.1)

Last updated on AUGUST 20, 2020

Applies to:

Oracle Data Integrator - Version 12.2.1.4.0 and later
Information in this document applies to any platform.

Symptoms

When using Oracle Data Integrator (ODI) to load from an Oracle Database source table to a target XML file, the mapping executes successfully when Agent option "Use Unique Temporary Object Names" is set to "False." However, if the option is set to "True," the mapping errors during the drop or create of the temporary table in the LKM:

ODI-1228: Task Drop staging (C$) table-LKM SQL to SQL (Built-In)- fails on the target connection <CONNECTION>.
Caused By: java.sql.SQLSyntaxErrorException: unknown token: <XML_SCHEMA>.
  at org.hsqldb.jdbc.JDBCUtil.sqlException(Unknown Source)
  at org.hsqldb.jdbc.JDBCUtil.sqlException(Unknown Source)
  at org.hsqldb.jdbc.JDBCStatement.fetchResult(Unknown Source)
  at org.hsqldb.jdbc.JDBCStatement.execute(Unknown Source)
Caused by: org.hsqldb.HsqlException: unknown token: <XML_SCHEMA>.
  at org.hsqldb.error.Error.error(Unknown Source)
  at org.hsqldb.error.Error.error(Unknown Source)
  at org.hsqldb.ParserBase.read(Unknown Source)
  at org.hsqldb.ParserDDL.compileDrop(Unknown Source)
  at org.hsqldb.ParserCommand.compilePart(Unknown Source)
  at org.hsqldb.ParserCommand.compileStatements(Unknown Source)
  at org.hsqldb.Session.executeDirectStatement(Unknown Source)
  at org.hsqldb.Session.execute(Unknown Source)
  ... 28 more
Caused by: java.sql.SQLSyntaxErrorException: unknown token: <XML_SCHEMA>. in statement [
INSERT INTO <XML_SCHEMA>.."C$_0<UNIQUE_CHARACTERS>" (
COLUMN1,
COLUMN2,
COLUMN2
)
VALUES(
? ,
? ,
?
)
]
  at org.hsqldb.jdbc.JDBCUtil.sqlException(Unknown Source)
  at org.hsqldb.jdbc.JDBCUtil.sqlException(Unknown Source)
  at org.hsqldb.jdbc.JDBCPreparedStatement.<init>(Unknown Source)
  at org.hsqldb.jdbc.JDBCConnection.prepareStatement(Unknown Source)
  ...
Caused by: org.hsqldb.HsqlException: unknown token: <XML_SCHEMA>.
  at org.hsqldb.error.Error.error(Unknown Source)
  at org.hsqldb.error.Error.error(Unknown Source)
  at org.hsqldb.ParserBase.read(Unknown Source)
  at org.hsqldb.ParserBase.readThis(Unknown Source)
  at org.hsqldb.ParserDML.compileInsertStatement(Unknown Source)
  at org.hsqldb.ParserCommand.compilePart(Unknown Source)
  at org.hsqldb.ParserCommand.compileStatement(Unknown Source)
  at org.hsqldb.Session.compileStatement(Unknown Source)
  at org.hsqldb.StatementManager.compile(Unknown Source)
  at org.hsqldb.Session.execute(Unknown Source)
  ... 41 more

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.