Data Load to Ledger Stat Fails with Error Message ORA-00957: duplicate column name

(Doc ID 2011725.1)

Last updated on DECEMBER 01, 2016

Applies to:

Oracle Financial Services Analytical Applications Infrastructure - Version 7.3.5.0.0 and later
Oracle Financial Services Profitability Management - Version 6.1 and later
Information in this document applies to any platform.
Oracle Financial Services Analytical Applications Infrastructure (OFSAAI)
Oracle Financial Services Analytical Applications (OFSAA)
Oracle Financial Services Profitability Management (PFT)

Symptoms

In OFSAAI 7.3.5.0.0 / PFT 6.1, when attempting to load data using type II ledger stat load, the batch and SQL procedure is failing with the following error in FSI_MESSAGE_LOG:

ERROR

160 3 17-APR-15 44309 30 batch_id_14 WRAPPER_LEDGER_STAT_LOAD- Error: -957: ORA-00957: duplicate column name

The SQL trace file shows a duplicate column name error on year_s as below. The following statement encountered a error during parse:

INSERT
INTO lsl
(
  ident_code,
  year_s,
  YEAR_S,
  GL_ACCT_ID,
  ACCUM_TYPE,
  CMN_COA_ID,
  CONSOLIDAT,
  PRDCT_ID,
  ISOCRNCYCD,
  ORG_ID,
  CRNCYTYPCD,
  BALTYPECD,
  VERSION_ID,
  SCENARIOS_ID,
  ARRANGEMENT_ID,
  ACTIVITY_ID,
  LOB_ID,
  COSTCENTRE_ID,
  STD_ACTIVITY_ID,
  CUSTOMERS_ID,
  ROLE_ID,
  DEPARTMENT_ID,
  DIVISION_ID,
  m1,
  m2,
  m3,
  m4,
  m5,
  m6,
  m7,
  m8,
  m9,
  m10,
  m11,
  m12,
  y1,
  y2,
  y3,
  y4,
  y5,
  y6,
  y7,
  y8,
  y9,
  y10,
  y11,
  y12
)
SELECT 10361,2013,
YEAR_S,
GL_ACCT_ID,
ACCUM_TYPE,
CMN_COA_ID,
CONSOLIDAT,
PRDCT_ID,
ISOCRNCYCD,
ORG_ID,
CRNCYTYPCD,
BALTYPECD,
VERSION_ID,
SCENARIOS_ID,
ARRANGEMENT_ID,
ACTIVITY_ID,
LOB_ID,
COSTCENTRE_ID,
STD_ACTIVITY_ID,
CUSTOMERS_ID,
ROLE_ID,
DEPARTMENT_ID,
DIVISION_ID,
m1,
m2,
m3,
m4,
m5,
m6,
m7,
m8,
m9,
m10,
m11,
m12,
m1,
m1+m2,
m1+m2+m3,
m1+m2+m3+m4,
m1+m2+m3+m4+m5,
m1+m2+m3+m4+m5+m6,
m1+m2+m3+m4+m5+m6+m7,
m1+m2+m3+m4+m5+m6+m7+m8,
m1+m2+m3+m4+m5+m6+m7+m8+m9,
m1+m2+m3+m4+m5+m6+m7+m8+m9+m10,
m1+m2+m3+m4+m5+m6+m7+m8+m9+m10+m11,
m1+m2+m3+m4+m5+m6+m7+m8+m9+m10+m11+m12
FROM STG_LEDGER_FACT_v l
WHERE ds       ='1'
AND year_s     =2013
AND financ_id IN
(SELECT leaf_node FROM ofsa_detail_elem WHERE aggregate_method=100
)

Error encountered: ORA-00957


Steps to reproduce:
1. Run Ledger Load Type II
2. Check for errors.

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