ORA-01403: no data found ---- FRM-40735: WHEN-VALIDATE-ITEM trigger raised

Scenario: I have one Master Detail form. after entering values in master Form, Navigate to Detail form, there I have to enter more that 5000 lines, it's very tough for user to enter huge amount of data.
Workaround: Give one button on Master form and written a cursor to populate all the 5000(relavent) number of record on detail block.
Issue: while populating detail data block after around 3000 record detail form start showing Error as
ORA-01403: no data found
FRM-40735: WHEN-VALIDATE-ITEM trigger raised unhandled exception ORA-06502.
Need suggestion
Code Written on find button as below
BEGIN
          --XX customized
          if (:ADJ_IP_CTRL.DUE_DT_FROM is null OR :ADJ_IP_CTRL.DUE_DT_TO is null) then
          fnd_message.set_string('Due Date from and Due Date To Must be entered.');
          fnd_message.Show;
          raise form_trigger_failure;
          end if;
     BEGIN     
          go_block('ADJ_INV_PAY');
clear_block(no_validate);
     for inv_rec in (
                         SELECT v.invoice_num,
          v.invoice_id,
          v.invoice_type,
          v.pay_alone,
          v.exclusive_payment_flag,
          v.payment_num,
          v.amount_remaining,
          --TO_CHAR (v.amount_remaining,fnd_currency.get_format_mask(v.currency_code, 42)) char_amount_remaining,
          TO_CHAR (v.amount_remaining,'FM999G999G999G999G999G999G999G999G990D00') char_amount_remaining,
          ap_payment_schedules_pkg.get_discount_available (
          v.invoice_id,
          v.payment_num,
          :pay_sum_folder.check_date,
          :pay_sum_folder.currency_code)
          discount_available,
          /*TO_CHAR (ap_payment_schedules_pkg.get_discount_available (
          v.invoice_id,
          v.payment_num,
          :pay_sum_folder.check_date,
          :pay_sum_folder.currency_code),
          fnd_currency.get_format_mask (v.currency_code, 42))*/
          TO_CHAR (ap_payment_schedules_pkg.get_discount_available (
          v.invoice_id,
          v.payment_num,
          :pay_sum_folder.check_date,
          :pay_sum_folder.currency_code),'FM999G999G999G999G999G999G999G999G990D00')
          char_discount_available,
          ap_payment_schedules_pkg.get_discount_date (
          v.invoice_id,
          v.payment_num,
          :pay_sum_folder.check_date)
          disc_date,
          v.always_take_disc_flag,
          v.discount_amount_available,
          v.discount_date,
          v.second_discount_date,
          v.second_disc_amt_available,
          v.third_discount_date,
          v.third_disc_amt_available,
          v.gross_amount,
          v.description,
          v.accts_pay_code_combi_id,
          v.due_date,
          v.REMIT_TO_SUPPLIER_NAME,
          v.REMIT_TO_SUPPLIER_ID,
          v.REMIT_TO_SUPPLIER_SITE,
          v.REMIT_TO_SUPPLIER_SITE_ID,
          v.RELATIONSHIP_ID,
          v.external_bank_account_id,
          ieba.bank_account_num external_bank_account_num,
          ieba.bank_account_name external_bank_account_name
          FROM ap_invoices_ready_to_pay_v v, iby_ext_bank_accounts ieba
          WHERE v.party_id = :pay_sum_folder.party_id /* and v.invoice_num like :adj_inv_pay.invoice_num||'%' */
          AND ( (:pay_sum_folder.payment_type_flag =
          'M')
          OR (:pay_sum_folder.payment_type_flag =
          'R'
          AND v.invoice_type IN
          ('CREDIT',
          'STANDARD',
          'DEBIT',
          'EXPENSE REPORT',
          'MIXED',
          'AWT'))
          OR /*Bug5948003, Bug6069211*/
          (:pay_sum_folder.payment_type_flag =
          'Q'
          /*AND (v.vendor_site_id =
          :pay_sum_folder.vendor_site_id
          OR v.invoice_type =
          'PAYMENT REQUEST')*/
          AND ( (:SYSTEM.LAST_RECORD =
          'TRUE'
          AND :SYSTEM.cursor_record =
          '1')
          OR (NVL (
          v.exclusive_payment_flag,
          'N') =
          'N'
          AND NVL (
          :parameter.pay_alone,
          'N') =
          'N'))))
          AND v.currency_code = :pay_sum_folder.currency_code
          AND v.payment_method_code = :pay_sum_folder.payment_method_code
          AND NVL (v.payment_function, 'PAYABLES_DISB') =
          NVL (:pay_sum_folder.payment_function, 'PAYABLES_DISB')
          AND v.set_of_books_id = :pay_sum_folder.set_of_books_id
          AND NVL (v.future_dated_payment_ccid, -1) =
          DECODE (:parameter.manual_fdp_site_acct_src_flag,
          'Y', NVL (:parameter.site_fdp_account_ccid, -1),
          NVL (v.future_dated_payment_ccid, -1))
          AND v.external_bank_account_id = ieba.ext_bank_account_id(+)
          AND v.due_date BETWEEN :ADJ_IP_CTRL.DUE_DT_FROM and :ADJ_IP_CTRL.DUE_DT_TO
                              ORDER BY v.due_date, UPPER (invoice_num)          
                    --added 08apr2012 (end)
          removed 08apr2012 ORDER BY UPPER (invoice_num)
          ) loop
               :ADJ_INV_PAY.INVOICE_NUM := inv_rec.INVOICE_NUM;
:ADJ_INV_PAY.INVOICE_ID := inv_rec.INVOICE_ID;
:ADJ_INV_PAY.INVOICE_TYPE := inv_rec.INVOICE_TYPE;
:ADJ_INV_PAY.EXCLUSIVE_PAYMENT_FLAG := inv_rec.EXCLUSIVE_PAYMENT_FLAG;
:ADJ_INV_PAY.PAYMENT_NUM := inv_rec.PAYMENT_NUM;
:ADJ_INV_PAY.AMOUNT_REMAINING := inv_rec.AMOUNT_REMAINING;
:ADJ_INV_PAY.DISCOUNT_AVAILABLE:= inv_rec.DISCOUNT_AVAILABLE;
:ADJ_INV_PAY.DISC_DATE := inv_rec.DISC_DATE;
:ADJ_INV_PAY.ALWAYS_TAKE_DISC_FLAG := inv_rec.ALWAYS_TAKE_DISC_FLAG;
:ADJ_INV_PAY.DISCOUNT_AMOUNT_AVAILABLE := inv_rec.DISCOUNT_AMOUNT_AVAILABLE;
:ADJ_INV_PAY.SECOND_DISCOUNT_DATE := inv_rec.SECOND_DISCOUNT_DATE;
:ADJ_INV_PAY.SECOND_DISC_AMT_AVAILABLE:= inv_rec.SECOND_DISC_AMT_AVAILABLE;
:ADJ_INV_PAY.THIRD_DISCOUNT_DATE:= inv_rec.THIRD_DISCOUNT_DATE;
:ADJ_INV_PAY.THIRD_DISC_AMT_AVAILABLE := inv_rec.THIRD_DISC_AMT_AVAILABLE;
:ADJ_INV_PAY.GROSS_AMOUNT := inv_rec.GROSS_AMOUNT;
:ADJ_INV_PAY.ACCTS_PAY_CODE_COMBINATION_ID := inv_rec.ACCTS_PAY_CODE_COMBI_ID;
:ADJ_INV_PAY.DUE_DATE := inv_rec.DUE_DATE;
:ADJ_INV_PAY.REMIT_TO_SUPPLIER_NAME := inv_rec.REMIT_TO_SUPPLIER_NAME;
:ADJ_INV_PAY.REMIT_TO_SUPPLIER_ID := inv_rec.REMIT_TO_SUPPLIER_ID;
:ADJ_INV_PAY.REMIT_TO_SUPPLIER_SITE := inv_rec.REMIT_TO_SUPPLIER_SITE;
:ADJ_INV_PAY.REMIT_TO_SUPP_SITE_ID := inv_rec.REMIT_TO_SUPPLIER_SITE_ID;
:ADJ_INV_PAY.APS_EXTERNAL_BANK_ACCOUNT_ID := inv_rec.EXTERNAL_BANK_ACCOUNT_ID;               
--               go_item ('ADJ_INV_PAY.INVOICE_NUM');
--               EXECUTE_TRIGGER('WHEN-VALIDATE-ITEM');
          validate(record_scope);
          if form_success then
          next_record;
          end if;
          end loop;
          first_record;
     exception
               when others then
               raise form_trigger_failure;
          END;
synchronize;
END;
Thanks
-Krishn

Hello Krishn,
Welcome to the Oracle Forums. Please take a few minutes to review the following:
<ul>
<li>Oracle Forums FAQ
<li>Before posting on this forum please read
<li>10 Commandments for the OTN Forums Member
<li>How to ask questions the smart way
</ul>
Following these simple guidelines will ensure you have a positive experience in any forum; not just this one!
user12266683 wrote:
Scenario: I have one Master Detail form. after entering values in master Form, Navigate to Detail form, there I have to enter more that 5000 lines, it's very tough for user to enter huge amount of data.
Workaround: Give one button on Master form and written a cursor to populate all the 5000(relavent) number of record on detail block.
Issue: while populating detail data block after around 3000 record detail form start showing Error as
ORA-01403: no data found
FRM-40735: WHEN-VALIDATE-ITEM trigger raised unhandled exception ORA-06502.
Need suggestion
ORA-01403: no data found clearly indicate that you have SQL Select statement in WHEN-VALIDATE-ITEM trigger and does not handled EXCEPTION
add exception in your select statement.
Hope it's clear..
Hamid
If someone's response is helpful or correct, please mark it accordingly.*

Similar Messages

  • FRM-40735: WHEN-VALIDATE-ITEM trigger raised unhandled exception ORA-04063.

    Hi All,
    After Cloning the 11i instace to 12.1.3 and when trying to create an absence
    am gettin the follwing Error
    ORA-01403: no data found
    FRM-40735: WHEN-VALIDATE-ITEM trigger raised unhandled exception ORA-04063.
    Please note I didnt get any of these kind of errors when cloned for CRP1 or CRP2.
    Thanks

    Hi,
    Its because of the invalid objects. We have compiled the invalid objects again and the issue got fixed.
    Thanks

  • FRM-40735: WHEN-VALIDATE-ITEM trigger raised unhandled exception ORA-06508

    Hi all,
    In Production instance we have an issue on AP invoice workbench, gives an error (FRM-40735 Post-Query Trigger On Quering Invoice ) when we retrieve the existing invoice data entered.
    For this we compiled the invalid objects and applied the patch according to the metalink id [ID 1209736.1]
    After that we came up with new error FRM-40735: WHEN-VALIDATE-ITEM trigger raised unhandled exception ORA-06508.
    Can any one help us
    Thanks
    SAI

    Hi Thanks for the reply we have implemented the following things
    1) Please download and review the readme for Patch 8671468:R12.AP.B
    2) Please apply Patch 8671468:R12.AP.B in a test environment.
    3) Check the file versions , they have to be the same as given below.
    Patch/115/sql/aphanwfb.pls 120.64.12010000.11
    4) Please retest the issue.
    5) If the issue is resolved, please migrate the solution as appropriate to other environments.
    APXINWKB : When Entering Invoice Details, Get Error: FRM-40735: WHEN-VALIDATE-ITEM trigger raised unhandled exception ORA-06508 [ID 1284114.1]
    This is done no luck.
    Thanks
    Sai

  • FRM-40735: When-Validate-Item trigger raised unhandled exception ORA-01861

    Dear all, I runned a form designed by Developer 2000 version 4.5 and encountered a puzzling problem. The same program could be runned on one computer but not in another one. The error message is as below: FRM-40735: When-Validate-Item trigger raised unhandled exception ORA-01861. The OS of both computers are windows 2000 professional. The only difference between two computers is the patch files didn't installed on one of them. I don't know if it is the key point. Could you tell me why?
    Thank you!!!

    I sure wish people would post the entire text of the error message. "ORA-01861: literal does not match format string."
    What kind of field are you trying to validate? This message is usually due to a date format error. If you are trying to convert text into a date without using TO_DATE('some text','date-format'), then that is the problem. It sounds like you are, and the database default date format is different between the two systems.

  • FRM-40735: WHEN-VALIDATE-ITEM trigger raised unhandled exception ORA-01403

    I am trying to make a manual payment in the APXPAWKB form (Form Version : 12.0.223.12010000.68). When I tab out, after selecting the Payment Document, I am getting the "+FRM-40735: WHEN-VALIDATE-ITEM+" error. Please help.
    I am working on R12.1.1. I used the Payment type - Check
    Regards
    Reem

    Hi;
    Its generic error,I suggest review:
    Resolving FRM-40735 Errors [ID 61579.1]
    Regard
    Helios

  • Frm-40735: when validate record trigger raised unhandled exception ORA-0406

    while on production when i open any form and inserting some valeus after that when i want ot save the information it is showing me following error
    frm-40735: when validate record trigger raised unhandled exception ORA-04062

    ORA-04062: %s of string has been changed Cause: Attempt to execute a stored procedure to serve an RPC stub which specifies a timestamp or signature that is different from the current timestamp/signature of the procedure.
    Action: Recompile the caller in order to pick up the new timestamp >
    Check the When-Validate-Record trigger in your form and look for any calls to a database stored procedure. Then check the status of the database procedure to ensure it is "Valid." If the procedure is not valid - find out why and fix it.
    Hope this helps,
    Craig B-)
    If someone's response is helpful or correct, please mark it accordingly.

  • FRM-40735: WHEN-CREATE-RECORD trigger raised unhandled exception ORA-01403

    hi
    when i am searching AP module and
    Payables Manager - > Oracle Payable - > Setup -> Invoice-> Distribution Set
    i am getting this FRM-40735: WHEN-CREATE-RECORD trigger raised unhandled exception ORA-01403.
    what to do?
    RHEL 5.3
    EBS 12.0.0 RUP 6
    1)I have tried adadmin compling forms
    2)generating trace and tkprof but still found none.
    what to do?
    Regards
    Edited by: new2appsdba on Jul 16, 2010 1:33 AM
    Edited by: new2appsdba on Jul 16, 2010 1:37 AM

    hsawwan wrote:
    Hi,
    Please see if (Note: 1074119.1 - R12. APXINWKB: When Trying To Change Invoice Distribution Line Type Get Error: FRM-40735:PRE-RECORD Trigger Raised Unhandled Exception.ORA-01403) is applicable.9747677:R12.AP.B patch which is for 12.1 and made the SR.
    >
    If this does not help, obtain the FRD file and see if more details are collected in the logs.
    Note: 445166.1 - How to create a FRD (Forms Runtime Diagnostic) Log in EBusiness Suite R12 using Forms 10gwatching
    Note: 438652.1 - R12: Forms Runtime Diagnostics (FRD), Tracing And Logging For Forms In Oracle Applications
    Note: 867943.1 - Steps To Take FRD Trace in 11.5.10 & R12
    Thanks,
    Hussein

  • Frm-40735-when-button-pressed trigger raises unhandled exception ora-01430

    Hi,
    I am running my developer6i application on winxp on one of my clinet side I got error frm-40735-when-button-pressed trigger raises unhandled exception ora-01430 when I press the button which give me the alter button to select yes or no before this the error araises.. but in the other client side its working correctlly with no such error message on same OS and developer6i version...

    i suppose you are getting 1403 and not 1430
    ++++++
    Error: ORA 1430
    Text: column being added already exists in table
    Cause: An ALTER TABLE ADD statement specified the name of a column that is
    already in the table.
    All column names must be unique within a table.
    Action: Specify a unique name for the new column, then re-execute the
    statement.
    ++++++
    1403 is no data found
    so most likely you are executing a
    select ... into ...
    which is user dependent through where clause
    that might be an explanation to your problem
    but more info is needed on that
    and surely you must clarify the ORA error you are getting.

  • FRM-40735: WHEN-BUTTON-PRESSED trigger raised unhandled exception ORA-04063

    Hi experts,
    This problem as titled happened to me recently, and i found no way out.
    I collected the FRD information, what i can get is:
    GMDRCDSG, 11, Prog Unit, Entry, 361120504, /XGMDSRCHGMD_BASIC_SEARCH_PKG/INIT_GROUP
    Unhandled Exception ORA-04063
    State Delta:
    Error Message: FRM-40735: WHEN-BUTTON-PRESSED trigger raised unhandled exception ORA-04063.
    ON-ERROR Trigger Fired:
    Form: GMDRCDSGORA-04063 means some database object is broken, but this information does not specify exactly which
    object it is . I thought it is caused by GMD_BASIC_SEARCH_PKG, which is programmed in GMDSRCH.pll.
    So i recompiled the pld file, but didn't work.
    The further action i took is to find out all the invalid package/package body in database, and recompile them.
    Unfortunately, this also didn't work.
    Any help is greatly appreciated, thanks in advance:)
    Ted

    Could anybody help? Please.
    Thanks,
    Ted

  • FRM-40735 WHEN-BUTTON-PRESSED TRIGGER RAISED UNHANDLED EXCEPTION ORA-01843

    Hi everyone
    When I run My form in Microsoft Windows Melinem , and I have Button on the form WHEN I press the button it works fine ,but when I run the same form in Microsoft Windows XP and WHEN I press the button it give this message :
    FRM-40735
    WHEN-BUTTON-PRESSED TRIGGER RAISED UNHANDLED EXCEPTION ORA-01843
    AND I RECOMPILE THE FORM IN Microsoft Windows XP BUT STILL I AM GETING THE SAME MESSAGE
    WAITING FOR YOU VALUABLE ANSWER .
    BEST REGARDS
    JAMIL ALSHAIBANI

    Forms [32 Bit] Version 6.0.8.23.2 (Production)
    Oracle9i Enterprise Edition Release 9.0.1.1.1 - Production
    With the Partitioning option
    JServer Release 9.0.1.1.1 - Production
    and the script which is used in the button as the following :
    DECLARE
    CURSOR C1 IS
    SELECT ITEM_CODE,AVERAGE_COST,STORE_CODE,ITEM_QUANTITY,TOTAL_COST
    FROM IM_GOODS_RECIEVE_DETAILS
    WHERE DOC_CODE = :IM_GOODS_RECIEVE_HEADER.DOC_CODE;
    LOC_DOC_CODE VARCHAR2(10);
    LOC_DOC_DATE DATE;
    LOC_ITEM_CODE VARCHAR2(30);
    LOC_ITEM_QUANTITY NUMBER(20,3);
    LOC_CART_QTY NUMBER(20,3);
    LOC_UNIT_CODE VARCHAR2(10);
    LOC_TOTAL_COST NUMBER(20,6);
    LOC_AVERAGE_COST NUMBER(20,6);
    LOC_SUM_QTY NUMBER(20,6);
    LOC_BALANCE NUMBER(20,6);
    LOC_PRICE NUMBER(20,6);
    LOC_BALANCE_COST NUMBER(25,6);
    LOC_ITEM VARCHAR2(30);
    L0C_TOT_COST NUMBER(20,6);
    LOC_TOT_QTY NUMBER(20,6);
    LOC_NEW_AVERAGE NUMBER(20,6);
    LOC_ON_HAND_QTY NUMBER(20,3);
    al_id Alert;
    al_button NUMBER;
    LOC_SYS_DATE DATE;
    BEGIN
    SELECT TO_DATE(TO_CHAR(SYSDATE,'DD/MM/YYYY')) INTO LOC_SYS_DATE FROM DUAL;
    FOR R IN C1
    LOOP
    BEGIN
         SELECT B.ITEM_CODE ,SUM(NVL(ITEM_QUANTITY,0)) INTO LOC_ITEM ,LOC_SUM_QTY
    FROM IM_TRANS_ISSUE_HEADER A,IM_TRANS_ISSUE_DETAILS B
    WHERE A.DOC_CODE = B.DOC_CODE
    AND B.DEL_STORE = R.STORE_CODE
    AND ITEM_CODE = R.ITEM_CODE
    AND DOC_DATE BETWEEN :IM_GOODS_RECIEVE_HEADER.DOC_DATE
    AND LOC_SYS_DATE
    GROUP BY
    ITEM_CODE
    ORDER BY B.ITEM_CODE ;
    exception
         when no_data_found then
         NULL;
         when form_trigger_failure then
    show_message(sqlerrm);
         raise form_trigger_failure;
         when others then
         show_message(sqlerrm);
         raise form_trigger_failure;     
    END;     
         BEGIN
         BEGIN
         SELECT (NVL(QUANTITY_ON_HAND,0) + (NVL(LOC_SUM_QTY,0))),NVL(ITEM_PRICE1,0),
         NVL(QUANTITY_ON_HAND,0)
         INTO LOC_TOT_QTY,LOC_PRICE,LOC_ON_HAND_QTY
         FROM IM_LOCATION A, IM_INVENTORY B
         WHERE A.ITEM_CODE = B.ITEM_CODE
         AND A.ITEM_CODE = R.ITEM_CODE
         AND A.STORE_CODE = R.STORE_CODE;
         LOC_BALANCE := (:IM_GOODS_RECIEVE_DETAILS.ITEM_QUANTITY) - (LOC_TOT_QTY);
         LOC_BALANCE := - (LOC_BALANCE);
         LOC_BALANCE_COST := ((LOC_BALANCE) * (LOC_PRICE));
         L0C_TOT_COST := LOC_BALANCE_COST + :IM_GOODS_RECIEVE_DETAILS.TOTAL_COST;
         LOC_NEW_AVERAGE := ROUND(((L0C_TOT_COST)/(LOC_TOT_QTY)),5);
         exception
         when no_data_found then
         NULL;
         when form_trigger_failure then
    show_message(sqlerrm);
         raise form_trigger_failure;
         when others then
         show_message(sqlerrm);
         raise form_trigger_failure;
         END;
         BEGIN
         SELECT 1 INTO :GLOBAL.DUMMY
         FROM COST_TEMP_SUM
         WHERE S_GOODS_DOC = :IM_GOODS_RECIEVE_HEADER.DOC_CODE
         AND S_GOODS_DATE = :IM_GOODS_RECIEVE_HEADER.DOC_DATE
         AND S_ITEM_CODE = R.ITEM_CODE;
         exception
         when no_data_found then
         INSERT INTO COST_TEMP_SUM
         VALUES(:IM_GOODS_RECIEVE_HEADER.DOC_CODE,
         :IM_GOODS_RECIEVE_HEADER.DOC_DATE,LOC_SUM_QTY,LOC_ON_HAND_QTY,
         LOC_TOT_QTY,LOC_BALANCE,R.ITEM_QUANTITY,
         LOC_PRICE,LOC_BALANCE_COST,R.TOTAL_COST,
         L0C_TOT_COST,LOC_NEW_AVERAGE,R.ITEM_CODE,LOC_SYS_DATE);
         when form_trigger_failure then
    show_message(sqlerrm);
         raise form_trigger_failure;
         when others then
         show_message(sqlerrm);
         raise form_trigger_failure;     
         END;
         END;
    IF LOC_BALANCE_COST = 0 THEN
         UPDATE IM_INVENTORY
              SET ITEM_PRICE1 = R.AVERAGE_COST
              WHERE ITEM_CODE = R.ITEM_CODE;      
    ELSE
         UPDATE IM_INVENTORY
              SET ITEM_PRICE1 = LOC_NEW_AVERAGE,ITEM_PRICE2 = LOC_PRICE
              WHERE ITEM_CODE = R.ITEM_CODE;      
    END IF;
    -- THIS FOR ISSUED ITEMS QUANTITY
    FOR R2 IN (
    SELECT B.ITEM_CODE as LOC_ITEM_CODE, NVL(ITEM_QUANTITY,0) as LOC_ITEM_QUANTITY,
    A.DOC_CODE as LOC_DOC_CODE, AVERAGE_COST as LOC_AVERAGE_COST,
    TOTAL_COST as LOC_TOTAL_COST,A.DOC_DATE as LOC_DOC_DATE,
    CART_QTY as LOC_CART_QTY,UNIT_CODE as LOC_UNIT_CODE
    FROM IM_TRANS_ISSUE_HEADER A,IM_TRANS_ISSUE_DETAILS B
    WHERE A.DOC_CODE = B.DOC_CODE
    AND B.DEL_STORE = R.STORE_CODE
    AND ITEM_CODE = R.ITEM_CODE
    AND DOC_DATE BETWEEN :IM_GOODS_RECIEVE_HEADER.DOC_DATE
    AND LOC_SYS_DATE
    -- AND :EXPENSES_TAB.EXP_DATE
    ORDER BY B.ITEM_CODE )
    LOOP
    BEGIN
    SELECT 1 INTO :GLOBAL.DUMMY
         FROM COST_TEMP
         WHERE T_DOC_CODE = R2.LOC_DOC_CODE
         AND T_DATE = R2.LOC_DOC_DATE
         AND T_ITEM_CODE = R2.LOC_ITEM_CODE;
    exception
         when no_data_found then
    INSERT INTO COST_TEMP
    VALUES(R2.LOC_DOC_CODE,R2.LOC_DOC_DATE,R2.LOC_CART_QTY,R2.LOC_ITEM_QUANTITY,
    R2.LOC_AVERAGE_COST,:IM_GOODS_RECIEVE_HEADER.DOC_CODE,
    :IM_GOODS_RECIEVE_HEADER.DOC_DATE,R.ITEM_CODE,R.STORE_CODE);
    when form_trigger_failure then
    show_message(sqlerrm);
         raise form_trigger_failure;
         when others then
         show_message(sqlerrm);
         raise form_trigger_failure;     
         END;
    Begin
    al_id := Find_Alert('POST_DATA');
    IF Id_Null(al_id) THEN
    Message('User_Warning alert does not exist');
    RAISE Form_Trigger_Failure;
    ELSE
    ** Show the warning alert
    -- jamil al_button := Show_Alert(al_id);
    ** If user pressed OK (button 1) then bring up another
    ** alert to confirm -- button mappings are specified
    ** in the alert design
    -- IF R2.LOC_ITEM_QUANTITY != 0 AND al_button = ALERT_BUTTON1 THEN
         IF R2.LOC_ITEM_QUANTITY != 0 THEN
    BEGIN
    UPDATE IM_TRANS_ISSUE_DETAILS
    SET AVERAGE_COST = LOC_NEW_AVERAGE,
    TOTAL_COST = LOC_NEW_AVERAGE * R2.LOC_ITEM_QUANTITY
    WHERE DOC_CODE = R2.LOC_DOC_CODE
    AND ITEM_CODE = R2.LOC_ITEM_CODE ;
    END;
    END IF;
    END IF;
    END;
    END LOOP;
    END LOOP;
    GO_BLOCK('IM_GOODS_RECIEVE_HEADER');
    :IM_GOODS_RECIEVE_HEADER.FLAG_COST := 1;
    COMMIT;
    SET_ITEM_PROPERTY('IM_GOODS_RECIEVE_HEADER.PUSH_BUTTON152',ENABLED,PROPERTY_FALSE);
    SET_ITEM_PROPERTY('EXPENSES_TAB.PUSH_BUTTON151',ENABLED,PROPERTY_FALSE);
    SHOW_MESSAGE('The New Cost Price updated Successfully !!!');
    END;
    BEGIN
         IF nvl(:IM_GOODS_RECIEVE_HEADER.FLAG_COST,0) = 1 THEN
    Make_Block_Query_Only('IM_GOODS_RECIEVE_DETAILS');
         ELSIF nvl(:IM_GOODS_RECIEVE_HEADER.FLAG_COST,0) = 0 THEN
         Make_Block_Query_Only('IM_GOODS_RECIEVE_DETAILS');
         END IF;          
    END;     
    best regards
    Jamil Alshaibani

  • FRM-40735: when-button-pressed trigger raised unhandled exception ORA-06508

    Hi,
    I built a report using Reports Builder, and a form that calls this report. When I try to run the rdf file (report), using [b]rp2rro.rp2rro_run_product I get the error:
    FRM-40735: when-button-pressed trigger raised unhandled exception ORA-06508.
    How fix it?
    []'s
    Sandro

    Hi Mark,
    The debbuger stopped at line that was causing the error (rp2rro.rp2rro_run_product(REPORTS, 'myReport', SYNCHRONOUS, RUNTIME, FILESYSTEM,v_paramList , NULL);
    The data type passed in arguments and its lenght that's ok... I don't know what I should do...
    Sandro

  • FRM-40735:when-button-pressed trigger raised unhandled exception ORA-24247

    hi all
    i am using form 10g release2 i am having a problem
    when i use the following stored procedure in form then i am getting this
    error.
    FRM-40735:when-button-pressed trigger raised unhandled exception ORA-24247
    but the same code working fine when i use in SQLPLUS.
    CREATE OR REPLACE PROCEDURE mail_attach (dir1 VARCHAR2, filename VARCHAR2)
    AS
      l_output  utl_file.file_type;
      l_file       RAW(32767);
      l_size       NUMBER;
      BLOCK       NUMBER;
      b          BOOLEAN;
      l_start NUMBER := 1;
      TYPE ARRAY IS TABLE OF VARCHAR2(255);
      l_data ARRAY := ARRAY([email protected]');
    BEGIN
      UTL_FILE.FGETATTR(dir1, filename, b, l_size, BLOCK);
      l_output := utl_file.fopen('BACKUP', 'code.txt', 'r' );
      utl_file.get_raw(l_output, l_file, l_size);
      utl_file.fclose( l_output );
      FOR i IN l_start .. l_data.COUNT
      LOOP
        UTL_MAIL.SEND_ATTACH_RAW (
            sender   => 'Mailer',
            recipients => l_data(i),
            subject   => 'Data for ' || TO_CHAR((SYSDATE-1),'DD-MON-YYYY'),
            attachment => l_file,
            message   => 'Dear User, Please find attached the upload
    data for the period mentioned in the subject line.',
            att_inline => FALSE,
            att_filename => filename);
           l_start := l_start + 1;
      END LOOP;
    END;and this is used in form when-button-pressed trigger.
    BEGIN
      mail_attach('UTL_PATH','code.txt');
         message('FIle send successfully');
         message('File send successfully');
    END;

    hi
    Mehwish now check the following code and its working fine with me in form..........
    declare
         dir1 VARCHAR2(200);
          --filename VARCHAR2(200):='Logon.jpg';
           filename VARCHAR2(200);
      l_output  utl_file.file_type;
      l_file       RAW(32767);
      l_size       NUMBER;
      BLOCK       NUMBER;
      b          BOOLEAN;
      l_start NUMBER := 1;
      TYPE ARRAY IS TABLE OF VARCHAR2(255);
      l_data ARRAY := ARRAY('[email protected]');
    BEGIN
    -- EXECUTE IMMEDIATE 'ALTER SESSION SET smtp_out_server = ''192.168.56.103:25''';-- this is IP address and port of the server
      UTL_FILE.FGETATTR(dir1, :filename, b, l_size, BLOCK);
      --select directory_path into :filepath from dba_directories where directory_name='BACKUP';
      l_output := utl_file.fopen('BACKUP',:filename, 'r' );-- i added :filename as a text item.
      utl_file.get_raw(l_output, l_file, l_size);
      utl_file.fclose( l_output );
      FOR i IN l_start .. l_data.COUNT
      LOOP
        UTL_MAIL.SEND_ATTACH_RAW (
            sender   => 'Mailer',
            recipients => l_data(i),
            subject   => 'Data for ' || TO_CHAR((SYSDATE-1),'DD-MON-YYYY'),
            attachment => l_file,
            message   => :f,-- this is message item.
            att_inline => FALSE,
            att_filename => :filename);--this is attachment file name.
           l_start := l_start + 1;
      END LOOP;
      message('File Send Successfully');
      message('File Send Successfully ');
    END;hope this helps you.
    Attachment and mail are working fine with me, i can send attachment..............
    sarah

  • FRM-40735 WHEN BUTTON PRESSED trigger raised unhandled exception ORA-29282

    Hi All,
    while entering data in EAM forcaste workorder in maintenance workbench am getting this error
    FRM-40735 WHEN BUTTON PRESSED trigger raised unhandled exception ORA-29282
    check google and oracle forums and checked versions of pll and plx (as mentioned in one forum) for the form every thing is fine
    i hav also generated tkprof report but did'nt get enough info required
    my environment
    linux 5.6
    R12.1.3
    on 11.1.0.7
    please do let me know how to attach the print screen and tkprof report
    please help
    zavi

    Hi There,
    Srini:
    the form form name is different from one you mentioned in note
    ORA-29282 In POST-DELETE Trigger In EAMWOMDF Form [ID 1364328.1]
    any how i check the EAM diag option is set to yes,
    sorry i cant upload the screenshots and trace file we cant upload any from company
    here are few details from form-->help--> about
    RDBMS : 11.1.0.7.0
    Oracle Applications : 12.1.3
    Form Application : Enterprise Asset Management
    Form Name : EAMPLNWB
    Form Path : /u02/uat/apps/apps_st/appl/eam/12.0.0/forms/US/EAMPLNWB.fmx
    Form Version : 12.0.78.12010000.28
    Form Last Modified : $Date: 2011/05/17 02:44 $
    Forms PL/SQL
    APPCORE : 12.0.29.12010000.22
    APPDAYPK : 12.0.2.12010000.6
    APPFLDR : 12.0.6.12010000.2
    APPTREE : 12.0.0
    CUSTOM : 12.0.0
    EAMMRMDF : 12.0.27.12010000.4
    EAMOPMDF : 12.0.13.12010000.1
    EAMRSMDF : 12.0.10.12010000.2
    EAMWOMDF : 12.0.77.12010000.25
    FNDAPLT : 12.0.1
    FNDSQF : 12.0.3.12010000.8
    GHR : 12.0.46.12010000.14
    GLOBE : 12.0.76.12010000.10
    GMS : 12.0.51.12010000.8
    IGILUTIL2 : 12.0.32
    IGILUTIL : 12.0.3
    OPM : 12.0.7.12010000.2
    PQH_GEN : 12.0.7
    PSA : 12.0.17
    PSAC : 12.0.5
    PSB : 12.0.2
    Hi Hussain:
    from the note
    Please see (Creating Work Orders with Activity gives PL/SQL: numeric or value error: ORA-06512: at "APPS.EAM_WORKORDER_PKG", line 1431 [ID 822365.1]).
    it says about
    to debug the issue, users has enabled profile EAM: Debug Profile Option needs to be set to Yes at site level.
    Every time when WO API is involved, the following files are generated: createwo.log , updatewo.log.
    where can i find those logs please specify the location
    what i did
    as said by hussain i have manually compiled form and libraries assocaited with that form
    still waiting for reply from user
    got tkprof report
    few lines from that tkprof:
    declare                         
         m_stmt     varchar2(512);               
    begin                         
         m_stmt:='delete     from     sdo_geor_ddl__table$$';          
         EXECUTE     IMMEDIATE     m_stmt;          
         EXCEPTION                    
         WHEN     OTHERS     THEN          
         NULL;                    
    end;                         
    some select statement
    SELECT     MAX(STOCK_LOCATOR_CONTROL_CODE),     MAX(DEFAULT_DEMAND_CLASS),               
         MAX(CALENDAR_CODE),     MAX(CALENDAR_EXCEPTION_SET_ID),               
         NVL(MAX(PROJECT_REFERENCE_ENABLED),2),     NVL(MAX(PROJECT_CONTROL_LEVEL),1),               
         NVL(MAX(PM_COST_COLLECTION_ENABLED),2),     MAX(PRIMARY_COST_METHOD)               
    FROM                         
         MTL_PARAMETERS     WHERE     ORGANIZATION_ID     =     :B1
    insert statement its performing
    insert     into     eam_forecasted_work_orders(     pm_forecast_id,     group_id,                                                       
         pm_schedule_id,     activity_association_id,     cycle_id,     seq_id,                                                       
         scheduled_start_date,     scheduled_completion_date,     action_type,                                                            
         wip_entity_id,     process_flag,     wo_status,     created_by,     creation_date,                                                  
         last_update_date,     last_updated_by,     pm_base_meter_reading     ,                                                       
         ORGANIZATION_ID     )                                                                 
    values                                                                           
    (     :1,     :2,     :3,     :4,     :5,     :6,     :7,     :8,     :9,     :10,     :11,     :12,     :13,     sysdate,     sysdate,
         :14,:15,:16     )                                                                 
    please add a line through your vission
    cheers
    Zavi

  • FRM-40735:when-button-pressed trigger raised unhandled exception ORA-01841

    hello to all
    i m getting this error FRM-40735: when-button-pressed trigger raised unhandled exception ORA-01841
    and the trigger i had written is like this:-
    DECLARE
         CURSOR I IS SELECT SANCDATE,REFNO,PRINCIPALAMT,SANCAMT,TOTINSTALMENT,RATERECOVERY,AMTRECOVERED,INSTALMENTRECOVERED,
         STARTYEARMM,ENDYEARMM
         FROM PRMALOAN
         WHERE EMPNO=:PRMALOAN.EMPNO
         AND EARNINGDEDUCTION=:PRMALOAN.EARNINGDEDUCTION
         AND PAYCALPERIOD IS NULL;
         d date:=to_date('200908','yyyymm');
         s date;
         e date;
    BEGIN
         go_block('prmaloan2');
         OPEN I;
         LOOP
              FETCH I INTO :PRMALOAN2.SANCDATE,:PRMALOAN2.REFNO,:PRMALOAN2.PRINCIPALAMT,:PRMALOAN2.SANCAMT,:PRMALOAN2.TOTINSTALMENT,
              :PRMALOAN2.RATERECOVERY,:PRMALOAN2.AMTRECOVERED,:PRMALOAN2.INSTALMENTRECOVERED,:PRMALOAN2.STARTYEARMM,:PRMALOAN2.ENDYEARMM;
              s:=to_date(':prmaloan2.startyearmm','yyyymm');
              e:=to_date(':prmaloan2.endyearmm','yyyymm');
              if
                   e is null
                                  then
                   :prmaloan2.TEXT_ITEM164:=months_between(d,s);
              exit when I%notfound;
    next_record;
    end if;
         end loop;
         close I;
         END;
    plz help me to remove this error

    this is the description of my table:-
    desc prmaloan
    Describing prmaloan....
    NAME Null? Type
    EMPNO NOT NULL VARCHAR2(8)
    EARNINGDEDUCTION NOT NULL VARCHAR2(6)
    REFNO NOT NULL VARCHAR2(15)
    SANCDATE NOT NULL DATE
    PRINCIPALAMT NUMBER(8,0)
    SANCAMT NUMBER(8,0)
    RATERECOVERY NUMBER(5,0)
    TOTINSTALMENT NUMBER(3,0)
    AMTRECOVERED NUMBER(8,0)
    INSTALMENTRECOVERED NUMBER(3,0)
    STARTYEARMM VARCHAR2(6)
    ENDYEARMM VARCHAR2(6)
    CHANGEDATE DATE
    USERID VARCHAR2(30)
    PAYCALPERIOD VARCHAR2(6)

  • FRM-40735: WHEN-CREATE-RECORD trigger raised unhandled exception ORA-01422

    when i am searching AR module and
    Receivables - > Transactions - > Transactions
    i am getting this FRM-40735: WHEN-CREATE-RECORD trigger raised unhandled exception ORA-01422.
    what to do?

    user9095240 wrote:
    Hi,
    1. This form was working fine until patch 8407693 has been applied.
    2. Yes, I'm getting this error in every responsibility or user
    3. No, no personalizations
    I've read another time docs Hussein linked and as in "Troubleshooting Transaction Types In Oracle Receivables (Doc ID 1090878.1)" Patch Related paragraph, seems like I need  Patch 8302210:R12.AD.B cause my admorgb.pls  version is 120.21.12010000.2 instead of 120.21.12010000.3. I think replicate seed data program duplicated something in db. Is it possible?
    Regards
    With the information you have provided so far, it's hard to say that the cause of the issue is because of this file (version). However, if this is a test instance you may proceed and apply the patch and see if it helps.
    Thanks,
    Hussein

Maybe you are looking for