Parent Child Hierarchy Creation issue — Oracle Analytics

Oracle Analytics Cloud and Server

Welcome to the Oracle Analytics Community: Please complete your User Profile and upload your Profile Picture

Parent Child Hierarchy Creation issue

Received Response
1
Views
1
Comments
Rajagopal R-Oracle
Rajagopal R-Oracle Rank 5 - Community Champion

Hi.,

Getting the below error while executing data population script created by wizard when creating parent child hierarchy in obiee 11.1.1.7.1

Error report -

ORA-06502: PL/SQL: numeric or value error

ORA-06512: at line 41

06502. 00000 -  "PL/SQL: numeric or value error%s"

*Cause:    An arithmetic, numeric, string, conversion, or constraint error

           occurred. For example, this error occurs if an attempt is made to

           assign the value NULL to a variable declared NOT NULL, or if an

           attempt is made to assign an integer larger than 99 to a variable

           declared NUMBER(2).

*Action:   Change the data, how it is manipulated, or how it is declared so

           that values do not violate constraints.

Answers

  • FTisiot
    FTisiot Rank 6 - Analytics Lead

    Basically reading the error You should verify that the source column definition in your Closure Table has:

    - Not Nullable columns where you're trying to push a null

    - Numbers defined as NUMBER(2) where the query is trying to push a number greater than 99.

    Compare the datatype with the result of the SQL generated by OBIEE and you'll understand where the error is.