My Oracle Support Banner

ODI 12c CKM on Complex File Uses Incorrect Date Function when the Complex File Data Server is Defined with External Database and Resulting in "SQLSyntaxErrorException: ORA-00904: "NOW": invalid identifier" Error (Doc ID 2473980.1)

Last updated on FEBRUARY 15, 2019

Applies to:

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

Symptoms

NOTE: In the example below, any details including user / schema names or table names represent a fictitious sample (based upon made up data). Any similarity to actual installations, persons, living or dead, is purely coincidental and not intended in any manner.

 

The following error is observed on CKM task when proceeding with the Flow Control on an Oracle Data Integrator (ODI) 12c Mapping that loads data to a Complex File, and the Complex File Data Server is defined to use an external database in the ODI Topology:

ODI-1228: Task insert PK errors-Copy of CKM SQL- fails on the target connection MY_COMPLX_FILE
Caused By: java.sql.SQLSyntaxErrorException: ORA-00904: "NOW": invalid identifier

   at oracle.jdbc.driver.T4CTTIoer11.processError(T4CTTIoer11.java:495)
   at oracle.jdbc.driver.T4CTTIoer11.processError(T4CTTIoer11.java:447)
   at ...
   Caused by: Error : 904, Position : 602, Sql = insert into MY_E_TABLE
   (
     ODI_SESS_NO,
     ODI_ERR_TYPE,
     ODI_ERR_MESS,
     ODI_ORIGIN,
     ODI_CHECK_DATE,
     ODI_CONS_NAME,
     ODI_CONS_TYPE,
     COL1,
     COL2,
     ...
   )
   select 'mySessionGUID',
   'F',
   'ODI-15064: The primary key PK_ is not unique.',
   'MyMappingName',
   NOW(),
   'PK_',
   'PK',
   COL1,
   COL2,
   ...
from ...
...
)
  , Error Msg = ORA-00904: "NOW": invalid identifier

   at oracle.jdbc.driver.T4CTTIoer11.processError(T4CTTIoer11.java:499)
   ... 38 more

Changes

 

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
Changes
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.