Error in OBIEE Reports.ORA-01445

When making some formula or adding new columns,I am getting the following Err..
State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 17001] Oracle Error code: 1445, message: ORA-01445: cannot select ROWID from, or sample, a join view without a key-preserved table at OCI call OCIStmtExecute. [nQSError: 17010] SQL statement preparation failed. (HY000)
Its something related to joins.Can anyone Help.
Edited by: Darwin S on Aug 22, 2009 8:48 PM

you should post this on the OBIEE forum Business Intelligence Suite Enterprise Edition

Similar Messages

  • Error in webi report  - ORA-06502

    Dear All,
    I have create an object in Universe "description" , I am using this object in WEBI report.
    When I run the WEBI report I am getting below error:
    Database error occurred :the databasr error text is  ORA-06502: PL/SQL: numeric or value error: character string buffer too small
    ORA-06512: at line 1 .  (Error: WIS 10901)
    This object is working fine in Dev and Quality.
    But it is getting above error in the Prod environment in WEBI report.
    Actually i think its this "description" object which is the reason
    dbms_lob.substr( xyz.DESCRIPTION, 4000, 1 )
    Any help is highly appreciated

    hello,
    yes the DB across the landscapes is same version ...
    the failure is due to....see the below test in the field
    "cess Code |ZCCONSI| configured "
    These 'bar' looking characters are what is causing the failure:
    Any ideas on how to fix this.....will string function work at all for this?
    Thanks

  • Error in apex report Ora-20001 The printng engine could not be reached

    I created a report query. When I test it I got the following error.
    Ora-20001 Report engine colud not find the requested url.

    hi All,
    i want to have Print Option Enabled on my Reports
    i did as mentioned in the Document
    Configuring Report Printing in a Full Development Environment
    To configure the printing of reports in a full development environment:
    1. Log in to Oracle Application Express Administration Services. See "Logging in to
    Oracle Application Express Administration Services" on page 2-3.
    2. Click Manage Service.
    3. Under Manage Environment Settings, click Instance Settings.
    4. Scroll down to Report Printing:
    5. For Oracle BI Publisher, select one of the following:
    – Standard Support - This is the default setting. Standard Support enables you
    to print report regions and report queries using either the built-in templates
    provided with Oracle Application Express or other XSL-FO compatible
    formats you provide. This setting does not support RTF (rich text format).
    Standard Support provides declarative formatting of report regions and report
    queries with basic control over page attributes, including orientation, size,
    column heading formats, page header, and page footer.
    – Advanced Support - Requires a valid license of Oracle BI Publisher (also
    known as Oracle XML Publisher). Advanced Support provides you with all
    the capabilities of the Standard setting plus the ability to define RTF-based
    report layouts developed using the BI Publisher Word Template Builder.
    To learn more about installing and configuring Oracle BI Publisher, see PDF
    Printing in Application Express 3.1. See:
    6. For Print Server Protocol, select the protocol that the print server uses.
    7. For Print Server Host Address, specify the host address of the print server engine.
    8. For Print Server Port, define the port of the print server engine. By default, this is
    set to 8888 when the report server is installed.
    9. For Print Server Script, define the script that is the print server engine. The default
    setting is:
    /xmlpserver/convert
    10. Click Apply Change
    After Configuring the Print Option,
    i am having Oracle 10g Releae2 on Hp- Unix, and Apex 3.1
    i didnt Install Oracle BI publisher
    i want to Enable Print Option on my Reports
    when i try to give the Print a Report
    i am getting the Below Error
    <div id="report_7026503216111526_catch"></div><pre>report error:
    ORA-20001: The printing engine could not be reached because either the URL specified is incorrect or a proxy URL needs to be specified.</pre>
    please Help me out
    Many thanks

  • Error in OBIEE report

    Hi Gurus,
    I have a summary report and detailed report and a currency prompt in my dashboard. The summary report has to be displayed only if one currency is selected by the user. For this, I am using a condition in section and in the report I am using count('@{PV_variable}') and setting a filter on it i.e., count('@{PV_variable}')<=1 which returns result only if one currency is selected or no rows when more than one is selected.
    But I am getting this error:
    Message returned from OBIS. [nQSError: 43119] Query Failed: [nQSError: 15036] Logical table Fact - Processed Invoices needs a primary key to support count aggregates on that table.Please have your System Administrator look at the log for more details on this error. (HY000)
    Please let me know if the logic I am using is correct and how to resolve the above error

    15036
    Logical table needs a primary key to support count aggregates on that table.
    Cause. Table is missing a key definition in the metadata repository.
    Response. Add a key definition to this table.
    look at this doc http://kpipartners.blogspot.com/2009_04_01_archive.html
    hope it helps
    Thanks,
    RM

  • Query run in Sql prompt correctly but give error in APEX report ORA-01843

    Hi. all APEX user
    Last week I upgrade APEX 3.2 to 4.0.2 . Now i have a problem. PL/SQL reports which are working in APEX 3.2 not working in 4.0.2. Help me.....
    I am working on a mission critical application we have to upgrade there next month.
    Query code is :-
    select * from (
    Select pp.PAYMENT_DATE,pp.PATIENT_ID,p.name as name,pa.Service_Subtype,pp.PAYMENT_RECEIPT_ID,pa.Ward_Type,(pp.TOTAL_CHARGE-pp.discount) as amount ,pa.Service_Booked_By,pp.PAYMENT_COLLECTOR,
    case when pp.discount=0 then 1
    when pp.TOTAL_CHARGE = pp.discount then 3
    else 2
    end payment_status
    from patients p,PATIENT_Payment pp,PATIENT_account pa where p.patient_id = pp.patient_id and pp.patient_id=pa.patient_id and pa.SERVICE_SUBTYPE=pp.SERVICE_SUBTYPE AND pp.SERVICE_REGISTRATION_ID=pa.SERVICE_REGISTRATION_ID and
    (pp.PAYMENT_DATE>=to_date(:P15_date_from,'dd-mon-rr')) AND
    (pp.PAYMENT_DATE<=to_date(:P15_date_to,'dd-mon-rr'))AND
    (pa.GROUP_NAME=:p15_Group or :p15_Group='ALL') AND
    (pp.service_type=:p15_Service_Type or :p15_Service_Type='ALL') AND
    (pp.SERVICE_SUBTYPE=:p15_SERVICE_SUBTYPE or :p15_SERVICE_SUBTYPE='ALL') AND
    (pa.WARD_TYPE=:p15_Ward or :p15_Ward='ALL') AND
    (pp.PAYMENT_COLLECTOR=:p15_Collector or :p15_Collector='ALL')
    )order by pp.PAYMENT_DATE
    ) where payment_status=:p15_status
    order by 1

    In your query, you expect the date to have the format 'dd-mon-rr'. Have you checked if the format of the date-items is of this format?

  • Error in OBIEE:Oracle Error code: 1445

    When making some formula or adding new columns,I am getting the following Err..
    State: HY000. Code: 10058. NQODBC SQL_STATE: HY000 nQSError: 10058 A general error has occurred. nQSError: 17001 Oracle Error code: 1445, message: ORA-01445: cannot select ROWID from, or sample, a join view without a key-preserved table at OCI call OCIStmtExecute. nQSError: 17010 SQL statement preparation failed. (HY000)
    Its something related to joins.Can anyone Help.
    Edited by: Darwin S on Aug 22, 2009 8:48 PM

    ORA-01445: cannot select ROWID from a join view without a key-preserved table
    Cause: A SELECT statement attempted to select ROWIDs from a view derived from a join operation. Because the rows selected in the view do not correspond to underlying physical records, no ROWIDs can be returned.
    Action: Remove ROWID from the view selection clause, then re-execute the statement.
    ROWID isn't really an intressting column when doing BI...
    regards
    John
    http://obiee101.blogspot.com/

  • Ora-01445 cannot select rowid from or sample a join view ?

    Hi All
    I get this error , while creating VO
    "ora-01445 cannot select rowid from or sample a join view without a key-preserved table"
    I created an EO, my table doesnt have primary key and it EO by deafualt created ROWID as primary key
    When i create VO, using the following query by joining fnd_flex_values , then i see this ORA error
    SELECT xxg2sourceacctneweo.elimination_sob_id, xxg2sourceacctneweo.ROWID
    FROM xxg2_elim_source_accts xxg2sourceacctneweo, fnd_flex_values fvs WHERE fvs.flex_value = xxg2sourceacctneweo.source_acct_value
    but I was able to get the results in TOAD, with out any issue.
    as a part of testing , if i change the query to join to fnd_user , it works fine
    SELECT XXG2SourceAcctNewEO.ELIMINATION_SOB_ID,
    XXG2SourceAcctNewEO.ROWID FROM xxg2_elim_source_accts XXG2SourceAcctNewEO,fnd_user fc where fc.user_id=XXG2SourceAcctNewEO.created_by
    Any suggestions?
    Thanks
    Ravi
    Edited by: rashmrs on Oct 6, 2009 9:47 PM

    Ravi,
    Please mark some attributes as PRimary Key in your VO. Then the system would not automatically generate the ROWID. You can remove this View attribute using the VO wizard.
    Regards
    Sumit

  • Error in opening reports in OBIEE

    We are getting this error when opening reports in OBIEE
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. Unable to find library 'libclntsh.so.9.0'. [nQSError: 46029] Failed to load the DLL /u01/app/oas/product/10.1.4b/OracleBI/server/Bin64/libnqsdbgatewayoci8i64.so. Check if 'Oracle OCI 8.x' database client is installed. (HY000)
    Our envirnment details:
    OBIEE version 10.1.3.4
    Unix platform : HP-UX ia64
    Reporting Databse version : 11.2.0.1.0

    Hi Vaidya,
    I'm not sure how much I can help you but from the error log I can see there is some issue when deploying transformations. Have you implemented any transformations in BI? If yes please check if they are applied properly and working fine in BI. Then try to open the report in portal.
    Here is a document on modeling transformations in BI https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/dc43c445-0d01-0010-23a1-ca348ff5f975
    Hope it is helpful.
    Regards,
    Seema Rane.

  • What causes "ORA-01445: cannot select ROWID from" error

    While executing a SELECT query i got this error:
    ORA-01445: cannot select ROWID from, or sample, a join view without a
    key-preserved table
    Below mentioned is the join condition part of the query. The line which the error has occured is italicized
    from checkout_hdtl ch
    inner join pmt_htl ph on ph.post_ln_a = ch.post_ln_code
    inner join pin_dls pd on pd.post_ln_a = ph.post_ln_code
    inner join carton_dtl cd on cd.carton_nbr = ch.carton_nbr
    and cd.lseq_nbr = pd.lseq_nbr
    inner join invoice_module im on cd.invevt_code = im.inv_code
    inner join item_dock_master del on nm.invent_code = iwm.inv_code
    left outer join inv_curr_comm_code mnb on ium.invent_code = im.inv_code
    and icc.cntry = ph.shipto_cntry
    left outer join vw_ver_master vw on vw.del_rec = ch.del_rec
    left outer join cmd code_entry on code_pi.cntry =
    cd.code_entry where ch.shpmt_nbr = '3'
    What do i do?

    I would rather use Notepad than store my data in SQL server. It just so happens that our product is released for SQL Server as well. Hence i did the testing.
    >Is there a limit to the number of joins that can be performed in Oracle?
    Wrong question as it does not have anything to do with the number of views.. it has everything to do with the ability to correctly identify the unique row. Re-read the error message details posted by Blu - it explains the error.As you can see from my post, i created a table using the(CTAS) SELECT query from the View vw_ver_master's definition. So the view's result set is now stored in a table and now there are only tables involved in these JOINS.
    The query will succeed if i comment out ANY one of these JOINS in this statement. This is so weird.
    I

  • Report error while download the report.-ORA-06502

    *"report error:ORA-06502: PL/SQL: numeric or value error: character string buffer too small."*
    When I trying to download the classical report,It give the above error when report having the more than 26 column to print,
    The download report format what ever may be except .csv.
    Any solution for this?
    Edited by: 945115 on Aug 29, 2012 12:35 AM
    Edited by: 945115 on Aug 29, 2012 12:35 AM

    Pratap.,
    Error in classical report download by print server link.This is a PDF output that your are generating?
    Which Report Server have you configured? This error is coming from Report Server.
    The Standard Report Server has its limitations. If are using Std then maybe you have hit one of them.
    Cheers,
    PS: Change you handle to something better than 945115

  • Error while integrating OBIEE report with EBS using Rich Content Container

    I am trying to integrate OBIEE report with EBS using Rich Content Container OAF functionality. I have followed the steps mentioned in oracle Note - Embedding Analytics in Oracle E-Business Suite [ID 974422.1]. When i run my page, the container region comes up with the error message - The requested URL /pls/ghrfpkd2/OracleSSWA.Execute was not found on this server. Can someone please help me with some documents on the steps to integrate OBIEE with EBS using Rich Content Container.

    I'm getting the same error on WebSphere 6.1.5. Is there any solution for this?

  • ORA-01843: not a valid month . Receive this error when running report in reporting services but not when running query in BIDS

    sql server 2008 r2
    RS2008 r2
    I can execute the query in BIDS 2008 with out a problem and I can run on our RS2005 server without a problem
    But when I deploy report and run on our RS2008 server I get the error
    An error has occurred during report processing. (rsProcessingAborted)
    Query execution failed for dataset 'NIR'. (rsErrorExecutingCommand)
    ORA-01843: not a valid month 
    QUERY:
    select * from NIR_QUARTERLY where birth_date between :PARAM1 and :PARAM2
    order by PT_CODE

    CAUSE
    The problem is caused by not using VALID dates values in the dataset.
    - This data problem was masked in the original version as the Predicate(s) used can change between versions of Oracle
    - Oracle does *not* guarantee the same explain plan or the specific order of predicates used between versions of Oracle
    Reviewing the  EXPLAIN PLAN for both versions revealed in this case:
    1) The table was partitioned
    2) The EXPLAIN PLANS were not the same due to how the partitions were accessed
    3) If the same query was used against a non-partitioned table using the same data, the following error would always occur
       ORA-01843: not a valid month
    4) The problem string value was in this case found to include the string value of  '0000-00-00'
      The ORA-01843 occurred when using the TO_DATE function against '0000-00-00'
    There is *no* Year= '0000' Month= '00' or day = '00' -- therefore the  ORA-01843: not a valid month
    --Prashanth

  • Report suddenly showing ORA-20001: Error fetching column value: ORA-06502:

    Hi,
    Some reports in my applications are suddenly showing:
    ORA-20001: Error fetching column value: ORA-06502: PL/SQL: numeric or value error: character string buffer too small
    instead iof the data they used to show.
    In my development system I can fix this by:
    1. changing the column alias in my sql
    select 'a' alias1 from dual becomes
    select 'a' alias2 from dual
    2. SAVE CHANGES
    3. change column alias back to original
    select 'a' alias2 from dual becomes
    select 'a' alias1 from dual
    4. reorder columns back to original in the 'report attributes' tab
    alias1 is now at the bottom of my colum list - i just bounce it up to column 4 using the up arrows
    5. SAVE CHANGES
    then everything starts working OK again.
    There seems to be nothing wrong with my sql as I can make it works on a new page or after I run the above steps, so I guess something is breaking somewhere but I cannot work out what.
    Has anyone else seen this? Does anyone know the cause? Does anyone have a fix for this that does not involve the above steps (plus redeployment to prodcution and all the work that involves)?
    I am seeing this on version 2.3 and 3.0.
    Thanks,
    Martin

    Hi Scott,
    I think this is want you want (sorry it's not easy to read):
    wp.suite_id - Database Column NUMBER - Report Column Based on LOV
    wp.project_id - Database Column NUMBER - Report Column Based on LOV
    wp.application_order wp_order - Database Column NUMBER - Report Column Standard
    lpad(wp.work_package_id,5,'0')||' - '||wp.name wp_name - Database Column NUMBER/VARCHAR2 - Report Column Standard
    pt.application_order pt_order - Database Column NUMBER - Report Column Standard
    pt.name pt_name - Database Column VARCHAR2 - Report Column Standard
    substr(pt.description,1,30) description - Database Column VARCHAR2 - Report Column Standard
    pt.application_tier - Database Column VARCHAR2 - Report Column Based on LOV
    pt.application_method - Database Column VARCHAR2 - Report Column Based on LOV
    pt.TECH_LEAD_ID - Database Column NUMBER - Report Column Based on LOV
    This report has no link columns and no derived columns.
    Regards,
    Martin

  • Error report: ORA-06531: Reference to uninitialized collection

    I have Procedure like this
    declare
    CURSOR lcu_emp
      IS
        (SELECT *
        FROM
      emp);
    ln_count PLS_INTEGER := 1;
      TYPE emp_TBL_TYPE
    IS
      TABLE OF LCU_emp%ROWTYPE;
      LT_emp emp_TBL_TYPE;
    begin
    FOR Lr_EMP IN LCU_EMP
      LOOP
        ln_count             :=1;
    Lr_EMP.EMP_NO:='1234';  -- updating the loop variable ... just for eg its 1234
    --Transferring the loop variable to collection
    lt_PREV_ASSIGN(ln_count):= Lr_PREV_ASSIGN;   -- THis line its errorring it as Error report: ORA-06531: Reference to uninitialized collection
      END LOOP;
    FOR lr_emp IN lt_emp.FIRST..lt_emp.LAST
      LOOP
    -- printing records when  LT_emp (lr_emp ).emp_no = 1234;
    END LOOP;
    end;Please help how to assign cursor record to collection...
    Thanks
    Vinoth.

    The realtime procedure is below... i thought it will be easy for u guys to understand
    PROCEDURE MAIN(
        P_ERRBUFF OUT VARCHAR2,
        P_RETCODE OUT NUMBER,
        P_BUSINESS_GROUP_ID IN NUMBER,
        P_EFFECTIVE_DATE    IN VARCHAR2,
        p_debug_flag        IN VARCHAR2 )
    AS
      LN_ELEMENT_LINK_ID pay_element_links_f.element_link_id%TYPE;
      LN_INPUT_VALUE_ID1 pay_input_values_f.input_value_id%TYPE;
      LN_INPUT_VALUE_ID2 pay_input_values_f.input_value_id%TYPE;
      ld_effective_start_date pay_element_entries_f.effective_start_date%TYPE;
      LD_EFFECTIVE_END_DATE PAY_ELEMENT_ENTRIES_F.EFFECTIVE_END_DATE%TYPE;
      LN_ELEMENT_ENTRY_ID PAY_ELEMENT_ENTRIES_F.ELEMENT_ENTRY_ID%TYPE;
      ln_object_version_number pay_element_entries_f.object_version_number%TYPE;
      lc_create_warning BOOLEAN;
      CURSOR lcu_prev_assign
      IS
        (SELECT *
        FROM
          (SELECT P_PAAF.ASSIGNMENT_ID PREV_ASSIGNMENT_ID,
            C_PAAF.ASSIGNMENT_ID CURR_ASSIGNMENT_ID,
            PAP.ACCRUAL_PLAN_NAME ACCRUAL_PLAN_NAME,
            APPS.PER_UTILITY_FUNCTIONS.GET_NET_ACCRUAL ( P_PAAF.ASSIGNMENT_ID, P_PAAF.PAYROLL_ID , P_PAAF.BUSINESS_GROUP_ID, -1 , TRUNC(XPPOS.PREV_ACTUAL_TERMINATION_DATE) , PAP.ACCRUAL_PLAN_ID) NET_ACCRUAL,
            XPPOS.PERIOD_OF_SERVICE_ID,
            XPPOS.PERSON_ID,
            XPPOS.CURRENT_DATE_START ,
            XPPOS.PREVIOUS_DATE_START,
            XPPOS.CURR_ACTUAL_TERMINATION_DATE,
            XPPOS.PREV_ACTUAL_TERMINATION_DATE ,
            XPPOS.PREV_LSP_DATE PREV_LSP_DATE,
            P_PAAF.BUSINESS_GROUP_ID PREV_BG_ID ,
            c_paaf.business_group_id curr_bg_id ,
            'N' NEW_ASSIGNMENT_ELEIGIBLE ,
            NULL PTO_ELIGBLE_DATE,
            NULL status,
            NULL ERROR_MESSAGE,
            NULL PREV_ASS_ELEMENT_ENTRY_ID,
            null curr_ass_element_entry_id
          FROM
            (SELECT PERIOD_OF_SERVICE_ID,
              PERSON_ID,
              DATE_START CURRENT_DATE_START,
              LEAD(DATE_START,1,NULL) OVER(PARTITION BY PERSON_ID ORDER BY DMY_ORDER) PREVIOUS_DATE_START,
              ACTUAL_TERMINATION_DATE CURR_ACTUAL_TERMINATION_DATE,
              LEAD(ACTUAL_TERMINATION_DATE,1,NULL) OVER(PARTITION BY PERSON_ID ORDER BY DMY_ORDER) PREV_ACTUAL_TERMINATION_DATE,
              lead(last_standard_process_date ,1,NULL) over(PARTITION BY person_id ORDER BY DMY_ORDER) prev_lsp_date,
              row_number() over (PARTITION BY person_id ORDER BY date_start DESC) DMY_SLCT
            FROM
              (SELECT period_of_service_id ,
                PERSON_ID ,
                DATE_START,
                ACTUAL_TERMINATION_DATE,
                last_standard_process_date,
                COUNT(PERSON_ID) OVER (PARTITION BY PERSON_ID) "CNT",
                row_number() over (PARTITION BY person_id ORDER BY date_start DESC) "DMY_ORDER"
              FROM PER_PERIODS_OF_SERVICE PPOS
          WHERE CNT     >=2
          AND DMY_ORDER IN (1,2)
            ) XPPOS,
            PER_ALL_ASSIGNMENTS_F C_PAAF ,
            PER_ALL_ASSIGNMENTS_F P_PAAF,
            PAY_ELEMENT_ENTRIES_F P_PEEF,
            PAY_ACCRUAL_PLANS PAP,
            PER_PERSON_TYPE_USAGES_F P_PPTUF,
            PER_PERSON_TYPES P_PPT
          WHERE XPPOS.DMY_SLCT =1
          AND C_PAAF.PERSON_ID = XPPOS.PERSON_ID
          AND TRUNC(CURRENT_DATE_START) BETWEEN C_PAAF.EFFECTIVE_START_DATE AND C_PAAF.EFFECTIVE_END_DATE
          AND C_PAAF.PRIMARY_FLAG = 'Y'
          AND P_PAAF.PERSON_ID    = XPPOS.PERSON_ID
          AND TRUNC(prev_actual_termination_date) BETWEEN P_PAAF.EFFECTIVE_START_DATE AND P_PAAF.EFFECTIVE_END_DATE
          AND P_PAAF.PRIMARY_FLAG  = 'Y'
          AND P_PEEF.ASSIGNMENT_ID = P_PAAF.ASSIGNMENT_ID
          AND TRUNC(PREV_ACTUAL_TERMINATION_DATE) BETWEEN P_PEEF.EFFECTIVE_START_DATE AND P_PEEF.EFFECTIVE_END_DATE
          AND PAP.ACCRUAL_PLAN_ELEMENT_TYPE_ID = P_PEEF.ELEMENT_TYPE_ID
          AND C_PAAF.BUSINESS_GROUP_ID         = P_BUSINESS_GROUP_ID
          AND TRUNC(PREV_ACTUAL_TERMINATION_DATE) BETWEEN P_PPTUF.EFFECTIVE_START_DATE AND P_PPTUF.EFFECTIVE_END_DATE
          AND P_PPTUF.PERSON_ID                                                                                                                                                                       = P_PAAF.PERSON_ID
          AND P_PPTUF.PERSON_TYPE_ID                                                                                                                                                                  = P_PPT.PERSON_TYPE_ID
          AND P_PPT.SYSTEM_PERSON_TYPE                                                                                                                                                               IN ('EMP', 'EMP_APL')
          AND P_PAAF.EMPLOYMENT_CATEGORY                                                                                                                                                             IN ('LOCAL' , 'FR')
          AND C_PAAF.ASSIGNMENT_ID                                                                                                                                                                    = 83528
          AND APPS.PER_UTILITY_FUNCTIONS.GET_NET_ACCRUAL ( P_PAAF.ASSIGNMENT_ID, P_PAAF.PAYROLL_ID , P_PAAF.BUSINESS_GROUP_ID, -1 , TRUNC(XPPOS.PREV_ACTUAL_TERMINATION_DATE) , PAP.ACCRUAL_PLAN_ID) <> 0
          ORDER BY NEW_ASSIGNMENT_ELEIGIBLE
        CURSOR LCU_PTO_ELGIBLE(P_ASSIGNMENT_ID NUMBER , P_PLAN_NAME VARCHAR2 , P_EFF_DATE DATE)
        IS
          (SELECT MIN(peef.EFFECTIVE_START_DATE) pto_eligble_date
          FROM PAY_ELEMENT_ENTRIES_F PEEF,
            PAY_ELEMENT_TYPES_F PETF
          WHERE PEEF.ASSIGNMENT_ID = P_ASSIGNMENT_ID
          AND PETF.element_NAME    = P_PLAN_NAME
          AND TRUNC(p_eff_date) BETWEEN petf.effective_start_date AND petf.effective_end_date
        CURSOR LCU_ELEMENT_LINK(p_plan_name VARCHAR2,p_eff_date DATE)
        IS
          (SELECT PIVF1.INPUT_VALUE_ID INPUT_VALUE_ID1,
            PIVF2.INPUT_VALUE_ID INPUT_VALUE_ID2,
            PELF.ELEMENT_LINK_ID
          FROM PAY_ELEMENT_LINKS_F PELF ,
            PAY_ELEMENT_TYPES_F PETF,
            pay_input_values_f pivf1 ,
            pay_input_values_f pivf2
          WHERE PELF.ELEMENT_TYPE_ID = PETF.ELEMENT_TYPE_ID
          AND PIVF1.ELEMENT_TYPE_ID  = PETF.ELEMENT_TYPE_ID
          AND PIVF2.ELEMENT_TYPE_ID  = PETF.ELEMENT_TYPE_ID
          AND TRUNC(P_EFF_DATE) BETWEEN PELF.EFFECTIVE_START_DATE AND PELF.EFFECTIVE_END_DATE
          AND TRUNC(P_EFF_DATE) BETWEEN PETF.EFFECTIVE_START_DATE AND PETF.EFFECTIVE_END_DATE
          AND TRUNC(P_EFF_DATE) BETWEEN PIVF1.EFFECTIVE_START_DATE AND PIVF1.EFFECTIVE_END_DATE
          AND TRUNC(p_eff_date) BETWEEN pivf2.effective_start_date AND pivf2.effective_end_date
          AND ELEMENT_NAME = p_plan_name
            ||' RollOver Adj'
          AND PIVF2.NAME             = 'Hours'
          AND PIVF1.NAME             = 'Effective Date'
          AND petf.BUSINESS_GROUP_ID = P_BUSINESS_GROUP_ID
        ln_count PLS_INTEGER := 1;
      TYPE PREV_ASSIGN_TBL_TYPE
    IS
      TABLE OF LCU_PREV_ASSIGN%ROWTYPE;
      LT_PREV_ASSIGN PREV_ASSIGN_TBL_TYPE;
      --LR_PREV_ASSIGN LCU_PREV_ASSIGN%ROWTYPE;
      --Lb_PREV_ASSIGN LCU_PREV_ASSIGN%ROWTYPE;
    BEGIN
      FOR Lr_PREV_ASSIGN IN LCU_PREV_ASSIGN
      LOOP
        ln_count             :=1;
        LN_ELEMENT_LINK_ID   := NULL;
        LN_INPUT_VALUE_ID1   := NULL;
        LN_INPUT_VALUE_ID2   := NULL;
        FOR LRU_ELEMENT_LINK IN LCU_ELEMENT_LINK (Lr_PREV_ASSIGN.ACCRUAL_PLAN_NAME,LR_PREV_ASSIGN.PREV_LSP_DATE )
        LOOP
          LN_ELEMENT_LINK_ID :=LRU_ELEMENT_LINK.ELEMENT_LINK_ID;
          LN_INPUT_VALUE_ID1 := LRU_ELEMENT_LINK.input_value_id1;
          LN_INPUT_VALUE_ID2 := LRU_ELEMENT_LINK.INPUT_VALUE_ID2;
          BEGIN
            apps.pay_element_entry_api.create_element_entry ( P_EFFECTIVE_DATE => LR_PREV_ASSIGN.PREV_LSP_DATE, P_BUSINESS_GROUP_ID => LR_PREV_ASSIGN.PREV_BG_ID ,p_assignment_id => Lr_PREV_ASSIGN.prev_assignment_id ,p_element_link_id => ln_element_link_id ,p_entry_type => 'E'
            --,p_creator_type => 'F'
            --,p_cost_allocation_keyflex_id => cost_keyflex_id
            --,p_date_earned => l_week_ending_date
            ,p_input_value_id1 => LN_INPUT_VALUE_ID1 ,p_input_value_id2 => LN_INPUT_VALUE_ID2
            --,p_input_value_id3 => l_inp_value3_id
            --,p_input_value_id4 => l_inp_value4_id
            ,P_ENTRY_VALUE1 => LR_PREV_ASSIGN.PREV_ACTUAL_TERMINATION_DATE ,p_entry_value2 => (-1)* LR_PREV_ASSIGN.net_accrual
            --,p_entry_value3 => l_constant_all_deductions
            --,p_entry_value4 => l_constant_no
            ,p_effective_start_date => ld_effective_start_date ,p_effective_end_date => ld_effective_end_date ,p_element_entry_id => ln_element_entry_id ,p_object_version_number => ln_object_version_number ,P_CREATE_WARNING => LC_CREATE_WARNING );
            LR_PREV_ASSIGN.STATUS                    :='P';
            Lr_PREV_ASSIGN.prev_ass_element_entry_id := ln_element_entry_id;
          EXCEPTION
          WHEN OTHERS THEN
            LR_PREV_ASSIGN.STATUS        :='E';
            Lr_PREV_ASSIGN.error_message := SQLERRM;
          END;
        END LOOP;
        FOR LR_PTO_ELGIBLE IN LCU_PTO_ELGIBLE(LR_PREV_ASSIGN.CURR_ASSIGNMENT_ID ,LR_PREV_ASSIGN.ACCRUAL_PLAN_NAME , LR_PREV_ASSIGN.CURRENT_DATE_START )
        LOOP
          LR_PREV_ASSIGN.NEW_ASSIGNMENT_ELEIGIBLE := 'Y';
          LR_PREV_ASSIGN.pto_eligble_date         := LR_PTO_ELGIBLE.pto_eligble_date ;
        END LOOP;
        IF(LR_PREV_ASSIGN.STATUS = 'P')
        then
        BEGIN
            apps.pay_element_entry_api.create_element_entry (
            P_EFFECTIVE_DATE => LR_PREV_ASSIGN.pto_eligble_date ,
            P_BUSINESS_GROUP_ID => LR_PREV_ASSIGN.CURR_BG_ID ,
            P_ASSIGNMENT_ID => LR_PREV_ASSIGN.CURR_ASSIGNMENT_ID ,
            P_ELEMENT_LINK_ID => LN_ELEMENT_LINK_ID ,
            p_entry_type => 'E'
            --,p_creator_type => 'F'
            --,p_cost_allocation_keyflex_id => cost_keyflex_id
            --,p_date_earned => l_week_ending_date
            ,P_INPUT_VALUE_ID1 => LN_INPUT_VALUE_ID1
            ,p_input_value_id2 => LN_INPUT_VALUE_ID2
            --,p_input_value_id3 => l_inp_value3_id
            --,p_input_value_id4 => l_inp_value4_id
            ,P_ENTRY_VALUE1 => LR_PREV_ASSIGN.PTO_ELIGBLE_DATE ,
            p_entry_value2 =>  LR_PREV_ASSIGN.net_accrual
            --,p_entry_value3 => l_constant_all_deductions
            --,p_entry_value4 => l_constant_no
            ,P_EFFECTIVE_START_DATE => LD_EFFECTIVE_START_DATE ,
            P_EFFECTIVE_END_DATE => LD_EFFECTIVE_END_DATE ,
            P_ELEMENT_ENTRY_ID => LN_ELEMENT_ENTRY_ID ,
            P_OBJECT_VERSION_NUMBER => LN_OBJECT_VERSION_NUMBER ,
            P_CREATE_WARNING => LC_CREATE_WARNING );
            LR_PREV_ASSIGN.STATUS                    :='S';
            LR_PREV_ASSIGN.CURR_ASS_ELEMENT_ENTRY_ID := LN_ELEMENT_ENTRY_ID;
            commit;
          EXCEPTION
          WHEN OTHERS THEN
          rollback;
            LR_PREV_ASSIGN.STATUS        :='E';
            LR_PREV_ASSIGN.ERROR_MESSAGE := SQLERRM;
          END;
          END IF;
        lt_PREV_ASSIGN(ln_count):= Lr_PREV_ASSIGN;
    ln_count:=ln_count+1;
      END LOOP;
      FOR lr_prev_assign IN lt_prev_assign.FIRST..lt_prev_assign.LAST
      LOOP
      IF(lt_prev_assign(lr_prev_assign).status = 'E')
      THEN
      FND_FILE.PUT_LINE(FND_FILE.LOG,lt_prev_assign(lr_prev_assign).error_message);
      end if;
        --print the error records here
      END LOOP;
    END MAIN;

  • Essbase data crossjoin error in OBIEE analysis report

    Hi all,
    Anyone got the following error in OBIEE analysis report:
    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: 96002] Essbase Error: Syntax error in input MDX query on line 13 at token 'crossjoin' (HY000)
    The OBIEE version is 11.1.1.6.2
    Data is from Essbase Cube, version 11.1.2
    The report is a simple cross tab table and we added 'After' aggregation to show grand total.
    The error show up when we drill down on dimension, click '+'.
    However, if I remove the 'After' aggregation. There is no error at all
    Thank you
    BCHK

    Hi veeravalli,
    Thank you for you reply. I got it.
    However, any idea to solve the issue?
    I tried to do it in RPD by case when,
    e.g. Acutal Sales: case when scenario='Actual' then salesamount end
    Budget Sales: case when scenario='Budget' then salesamount end
    Actual/Budget%: (Actual Sales/Budget Sales) *100
    So there is no error, Actual Sales and Budget Sales are correct, but Actual/Budget % shows nothing in report
    Thanks.
    BCHK

Maybe you are looking for

  • SCCM 2012 Software updates

    Hi All, We have SCCM 2012 R2 Server, We have been using more than a years , Now im facing crazy issues . 1.every month we using sccm server for deploying windows patches  . 2.before patching we set maintenance schedules for device group. 3.patch depl

  • Insert or replace last content

    HI Forum, I do need a little tweak on this script... Thing is, i want to find the last paragraph, last line, last character and make it as full stop... eg. •   can do anything if you need;  (";" to replace with "."). it is doing that,,, but if there

  • Why are my tabs being re-directed to google-analytics?

    It seems when I open a tab, in the lower left of my screen is a message "waiting on google-analytics" and the page never opens == URL of affected sites == http://www.fool.com

  • Hi Guys, Just added the widget for Spry Image Slideshow...HELP!

    How do I add my own pictures the the slideshow? I'm not the best with this so your help would be amazing!!! Please reply Thanks, Oli

  • Alsa upgrade: sound only from one app [Solved]

    Hello, after upgrade to alsa 1.0.21 only one application can play sound. E.g. if MPD (using ALSA output) plays then any ather application (mplayer for example) cannot. Here's mplayer output: [AO OSS] audio_setup: Can't open audio device /dev/dsp: Dev