My Oracle Support Banner

"unexpected token: VALUE" in ODI when Executing XML Mapping which Works in an Earlier Version (Doc ID 2374272.1)

Last updated on JUNE 16, 2022

Applies to:

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


On Oracle Data Integrator (ODI) ODI

When executing a mapping which takes data from an XML file and imports it into a MS SQL Server table for manipulation, the mapping fails with the following error during the 'Insert New Rows' task:

ODI-1298: Serial task "SERIAL-MAP_MAIN-<NAME> (50)" failed because child task "SERIAL-<NAME> (60)" is in error.
ODI-1298: Serial task "SERIAL-<NAME> (60)" failed because child task "Insert new rows-LKM SQL to SQL (Built-In)-Load <NAME> (70)" is in error.
ODI-1227: Task Insert new rows-LKM SQL to SQL (Built-In)-Load <NAME> fails on the source connection XML_Data_Connection.
Caused By: java.sql.SQLSyntaxErrorException: unexpected token: VALUE : line: 6
  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.executeQuery(Unknown Source)
  at com.sunopsis.jdbc.driver.xml.SnpsXmlStatementRedirector.executeQuery(
Caused by: org.hsqldb.HsqlException: unexpected token: VALUE : line: 6
  at org.hsqldb.error.Error.parseError(Unknown Source)
  at org.hsqldb.ParserBase.unexpectedToken(Unknown Source)
  at org.hsqldb.ParserDQL.XreadSelect(Unknown Source)
  at org.hsqldb.ParserDQL.XreadQuerySpecification(Unknown Source)
  at org.hsqldb.ParserDQL.XreadSimpleTable(Unknown Source)
  at org.hsqldb.ParserDQL.XreadQueryPrimary(Unknown Source)
  at org.hsqldb.ParserDQL.XreadQueryTerm(Unknown Source)
  at org.hsqldb.ParserDQL.XreadQueryExpressionBody(Unknown Source)
  at org.hsqldb.ParserDQL.XreadQueryExpression(Unknown Source)
  at org.hsqldb.ParserDQL.compileCursorSpecification(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)
  ... 24 more

The mapping reads from an XML file using "LKM SQL to SQL (Built-in)" and generates this SQL code which results in the above error:



The same mapping does not fail when run in




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

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