OBIEE 11g: Unable to Convert to DATE Format using Essbase Data Source (Doc ID 2168277.1)

Last updated on AUGUST 16, 2016

Applies to:

Business Intelligence Suite Enterprise Edition - Version 11.1.1.9.0 and later
Information in this document applies to any platform.

Symptoms

When try to convert VARCHAR2 to DATE format in Edit Formula or prompt, the following error returns.
The issue reproduces when using Essbase Data source (Back-end database is Essbase).

  1. Set on Edit Formula.
    e.g.
    to_datetime(TRIM(LEADING '.' from "XXXXXX"."XXXXXX"."XXXXXX")||' 00:00:00','yy/mm/dd hh:mi:ss')

  2. Error will display on Result Tab.

Error
View Display Error

Odbc driver returned an error (SQLExecDirectW).
Error Details
Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P
State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 43113] Message returned from OBIS. [nQSError: 59140] The evaluation of the index -1 expression on row count 0 failed. [nQSError: 46046] Datetime value XXXXXX does not match the specified format. (HY000)
SQL Issued: SELECT 0 s_0, CAST (TRIM(LEADING '.' FROM "XXXXXX"."XXXXXX"."XXXXXX") AS DATE ) s_1 FROM "XXXXXX" FETCH FIRST 65001 ROWS ONLY

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