Getting "Failed to create OdiRef object for target" And ClassCastException When Trying To Run Mapping in ODI 12.1.3

(Doc ID 2074859.1)

Last updated on DECEMBER 13, 2016

Applies to:

Oracle Data Integrator - Version to [Release 12c]
Information in this document applies to any platform.


 After migrating from Oracle Warehouse Builder (OWB) to Oracle Data Integrator (ODI) 12.1.3 successfully, Mappings that used to run fine in OWB fail in ODI with the following error, and the Session never starts:

Failed to create OdiRef object for target: xxxxx.
Please check the Validation Results window for more information.

 ... while the "Messages - Log" window shows:

WARNING oracle.odi.mapping.generation.GenerationException: Failed to create OdiRef object for target: xxxxx.
  at oracle.odi.domain.odireference.OdiRef.initialize(
  at oracle.odi.domain.odireference.OdiRef.<init>(
  at oracle.odi.domain.mapping.generator.MappingGenerator.createOdiRef(
  at ...
Caused by: oracle.odi.mapping.generation.GenerationException: Failed to initialize OdiDataSetRef object
  at oracle.odi.domain.odireference.OdiDataSetRef.<init>(
  at oracle.odi.domain.odireference.OdiRef.initialize(
  ... 111 more
Caused by: java.lang.ClassCastException: oracle.odi.mapping.generation.CorrelatedQuery cannot be cast to oracle.odi.mapping.generation.Expression
  at oracle.odi.domain.odireference.OdiDataSetRef.getNewExpressionForMerge(
  at oracle.odi.domain.odireference.OdiDataSetRef.getNewExpressionForMerge(
  at oracle.odi.domain.odireference.OdiDataSetRef.getNewExpressionForMerge2(
  at oracle.odi.domain.odireference.OdiDataSetRef.extractExpressionText(
  at oracle.odi.domain.odireference.OdiDataSetRef.initialize(
  at oracle.odi.domain.odireference.OdiDataSetRef.<init>(
  ... 112 more


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