FRM-40735:KEY-COMMIT  ORA-02291 trigger raised unhandled exception

FRM-40735:KEY-COMMIT ORA-02291 trigger raised unhandled exception. when i tried to save records.
I am using multi record block , 12 records will display at a time, i am trying to save 1st and 5th record which i changed.
calling a procedure in key-commit trigger
PROCEDURE desig_updation IS
V_count number := get_block_property('employee_master',query_hits);
BEGIN
go_block('employee_master');
first_record;
for i in 1.. V_count loop
     if((:desig is not null ) and (:new_date is not null) and (:emp_desig<>:desig) and (:new_date >=:emp_desig_date)) then
          :emp_desig :=:desig;
          :emp_grade:=:grade;
          :emp_desig_date:=:new_date;
          :emp_upd_by:=:global.usr;
          :emp_upd_on:=:system.current_datetime;
          if( (:radio_group=2) and (:incr_amt is not null)) then
               increment_process;
               end if;
     end if;
     if :system.last_record ='TRUE' then exit;
     else next_record;
     end if;     
end loop;
END;
PROCEDURE commit_action IS
BEGIN
desig_updation;
commit_form;
IF FORM_SUCCESS THEN
CLEAR_FORM(NO_VALIDATE);
EXECUTE_TRIGGER('PRE-FORM');
END IF;     
END;
key-commit-trigger
commit_action;
commit_form;
IF FORM_SUCCESS THEN
CLEAR_FORM(NO_VALIDATE);
EXECUTE_TRIGGER('PRE-FORM');
END IF;
PROCEDURE increment_process IS
m_gross_sal number;
p_rslt varchar2(200);
p_status varchar2(20);
BEGIN
delete from INCR_TEMP where ECODE = :emp_code ;
m_gross_sal := aod_gross_salary(:emp_orgn,:emp_code,'A');--find current salary
insert into INCR_TEMP(ECODE , CURR_SAL ,
INCREMENT_AMT ,TOTAL_AOD,
STATUS,INCR_TYPE)
values(:emp_code,m_gross_sal,
:incr_amt,m_gross_sal+:incr_amt,
'N','I');
forms_ddl('commit');
update_emp_increment(:emp_orgn,:emp_code,
TRUNC(to_date(to_char(:new_Date,'DD/MM/YYYY'),'DD/MM/YYYY')),null,
:incr_amt, p_rslt,
:parameter.p_user,to_date(to_char(SYSDATE,'DD/MM/YYYY'),'DD/MM/YYYY'),'I',
p_status);
END;
thanks,
rinz

It seems you are insert some data in child table. For which parent data does not exist. In simple primary key values does not exist while you are trying to insert in foreign key values. check this link.
http://www.lmgtfy.com/?q=ORA-02291
-Ammad

Similar Messages

  • FRM-40735: WHEN-NEW-RECORD-INSTANCE trigger raised unhandled exception ORA-

    Hi,
    In R12 When trying to search existing users through Sysadmin or any other user ...we are getting the below errror...
    ORA-01403: no data found
    FRM-40735: WHEN-NEW-RECORD-INSTANCE trigger raised unhandled exception ORA-06510
    This error is not happening when we search for the SYSADMIN user....
    Any idea why this error happening...
    Also another error which is faced by users other than SYSADMIN is the below one when changing the responsability...
    APP-FND-01926---The custom event WHEN-RESPONSIBILITY-CHANGED raised unhandled exception:User Defined Exception
    Thanks
    Joseph
    Edited by: 783717 on Sep 27, 2010 10:49 PM

    Hi,
    In R12 When trying to search existing users through Sysadmin or any other user ...we are getting the below errror...
    ORA-01403: no data found
    FRM-40735: WHEN-NEW-RECORD-INSTANCE trigger raised unhandled exception ORA-06510
    This error is not happening when we search for the SYSADMIN user....
    Any idea why this error happening...What changes have been done recently?
    Please run AutoConfig and make sure it completes successfully.
    Also another error which is faced by users other than SYSADMIN is the below one when changing the responsability...
    APP-FND-01926---The custom event WHEN-RESPONSIBILITY-CHANGED raised unhandled exception:User Defined ExceptionCan you find any errors in the database log file?
    Please compile CUSTOM.pll (and other files) as per these docs and try again (as you are on R12 use frmcmp_batch.sh instead of f60gen).
    APP-FND-01926, ORA-06508 [ID 797242.1]
    APP-FND-01926: The custom event WHEN-LOGON-CHANGED raised unhandled exception: ORA-06508: PL/SQL: [ID 831159.1]
    APP-FND-01926 when logon changed ORA-06508 [ID 334295.1]
    Thanks,
    Hussein

  • FRM-40735 WHEN-CUSTOM-ITEM-EVENT trigger raised unhandled exception ORA-065

    Please help....This error is comming when opening the form. The form is running on oracle 11g 64bits web logic.
    "FRM-40735 WHEN-CUSTOM-ITEM-EVENT trigger raised unhandled exception ORA-065"

    Welcome to OTN
    Before posting on this forum please read
    FRM-40735: WHEN-CUSTOM-ITEM-EVENT trigger raised unhandled exception ORA-06502.
    you'll get some hint here
    Oracle/PLSQL: ORA-06502 Error

  • FRM-40735: WHEN-NEW-FORM-INSTANCE trigger raised unhandled except ORA-06508

    Dear Colleague,
    I am migrating a Forms application from Forms 9i to Forms 10g. Most of my forms were originally created using the Oracle Designer Forms generator. I am also using the Webutil plugin. I just finished configuring Webutil, tested it and it seems to be working fine.
    I am able to compile all code and generate a Form executable. However at runtime, I get an error as soon as the first line of code in the WHEN-NEW-FORM-INSTANCE trigger.
    The error is:
    FRM-40735: WHEN-NEW-FORM-INSTANCE trigger raised unhandled exception ORA-06508
    and the beginning of the code is as follows. Using the debugger, I found out that the line:
    CGBS2$.SET_COORD_STYLE( 'P' );
    initiates an error.
    /* CGLY$INIT_CANVASES */
    /* Call procedure to ensure correct canvases are visible */
    BEGIN
    CGBS2$.SET_COORD_STYLE( 'P' );
    CGBS2$.SET_QRY_ON_ENTRY( 'Y' );
    CGBS2$.SET_NAV_FROM_BLOCK( 'PROJ_BLOCK' );
    CGLY$CANVAS_MANAGEMENT;
    END;
    Is the error telling me that this procedure was not found? How can I proceed to find the cause and solution of my problem? Are one of the Oracle Designer Forms Generator libraries missing?
    I would appreciate a tip to help me begin seeing the light at the end of the tunnel.
    Thanks and regards,
    Randy

    Randy,
    Glad I could help and you've got your Form running.
    @user9230833
    It is consider "bad form" to usurp another's post. Please create your own Forum post and include a link or links to any relevant posts. As to Randy's situation, he simply compiled the Forms 9i Library module (.pll) with Forms 10g's compiler. This may not be the cause of your error. When you post your own question, please include your Forms version (full version [eg; 10.1.2.0.2] not the release [6i, 9i, 10g, etc]). Also include any sample code that might help us help you! ;-)
    Craig....

  • FRM-40735: WHEN-NEW-FORM-INSTANCE trigger raised unhandled exception ORA-01

    Hello,
    when I run my form I am getting the following error:
    FRM-40735: WHEN-NEW-FORM-INSTANCE trigger raised unhandled exception ORA-01422
    My WHEN-NEW-FORM-INSTANCE trigger is calling to procedures. below is the code in my trigger
    begin
    Get_User_Info;
    Get_org_num;
    end;
    what could be the problem ?
    thanks in advanced,
    AJ

    One of your procedures must be doing a "select into" but the select is returning more than one row. Examine the queries your procedures are doing.
    Gary

  • FRM-40735: WHEN-NEW-BLOCK-INSTANCE trigger raised unhandled exception ORA-0

    I have created two control blocks.In the second control block an item is getting data depending on the value of a particular item in the 1st control block.
    I am fetching data for the item in 2nd block using WHEN-NEW-BLOCK-INSTANCE trigger in the 2nd block
    It is giving the following error
    FRM-40735: WHEN-NEW-BLOCK-INSTANCE trigger raised unhandled exception ORA-01403
    When I am giving the following code, it is working
    SELECT BM_MR_LCL_STD INTO :BLOCK2.ITEM5 FROM FABRIC_TYPE_MAST_DVLP WHERE FABRIC_TYPE = 'AT';
    But when I am giving the below code, it is not working,
    SELECT BM_MR_LCL_STD INTO :BLOCK2.ITEM5 FROM FABRIC_TYPE_MAST_DVLP WHERE FABRIC_TYPE = :BLOCK1.ITEM4;
    Please Help.
    Regards,

    That means there were no rows in the table which matched the criteria in your query. You need to trap the no_data_found exception, eg
    exception
      when no_data_found then
        :block2.item5 := null;
    end;and if fabric_type is not unique then you'll need to trap the too_many_rows exception too.
    I think for this you might be better off with an explicit cursor.

  • FRM-40735: WHEN-CUSTOM-ITEM-EVENT trigger raised unhandled exception ORA-06502.

    Hi Expert,
    Forms Version : 11.1.2.1.0
    Client JRE : 1.6.0_45-b06 Java HotSpot(TM) Client VM
    Run webutil_demo form, http://host:9001/forms/frmservlet?form=webutil_demo.fmx&config=webutil
    it appears following error.
    FRM-40735: WHEN-CUSTOM-ITEM-EVENT trigger raised unhandled exception ORA-06502.
    No error logged in java console client side.
    I've try to re-compile webutil_demo.fmb
    Unattaching and then re-attaching the plsql library webutil.pll to forms using a 11g Forms Builder (instead of earlier version) and then loading the form to the server and compiling form but error still exist.
    Will you please help to give any suggestion?
    Is there any trace can be enabled to find some more details?

    Welcome to OTN
    Before posting on this forum please read
    FRM-40735: WHEN-CUSTOM-ITEM-EVENT trigger raised unhandled exception ORA-06502.
    you'll get some hint here
    Oracle/PLSQL: ORA-06502 Error

  • FRM-40735: WHEN-NEW-RECORD-INSTANCE trigger raised unhandled exception

    I have a form that I migrated to 10g from 6i. I have no problems with it in 6i.
    When I launch this migrated form on the web in 10g, I get the following error:
    Error: FRM-40735: WHEN-NEW-RECORD-INSTANCE trigger raised unhandled exception ORA-03127From oracle error code
    03127, 00000, "no new operations allowed until the active operation ends"
    // *Cause: An attempt was made to execute a new operation before the active
    //         non-blocking operation completed or a new operation was attempted
    //         before all the pieces of a column were inserted or fetched.
    // *Action: Execute the new operation after the non-blocking operation
    //          completes. If piecewise binds/defines were done, execute the new
    //          operation after all the pieces have been inserted or fetched.What does the above suggested action mean?
    Any suggestions.
    Thanks

    Run the debugger and see what line of code is failing.

  • FRM 40735 : WHEN-NEW-FORM-INSTANCE Trigger raised unhandled exception

    Hi all,
    I'm from a support team.
    Here we have a 3 database in 2 servers connecting to a single application.
    Only one Db will be connected at all time , other DB's are backup.
    Here the issue is 2DB DBs residing on the same server were able to cennect to the application and doesn't through any error. But the 3rd one in different server gives the below error,
    FRM 40735 : WHEN-NEW-FORM-INSTANCE Trigger raised unhandled exception ORA-06508
    The Forms were compiled using the First DB , that time when i access the app using the 3rd db i'm getting the above error.
    But when I compile the form using the 3rd DB and connect to the App its working fine (The size of the form gets reduced during the compilation).
    Thanks for your help in advance.
    Srinivasan.K

    Could be a timestamp vs signature issue - forms is calling a database procedure in the WHEN-NEW-FORM-INSTANCE trigger and the procedures have different compile times on the different dbs and it's set to use timestamp to determine if a procedure has changed. You can change remote_dependecy_mode = 'Signature'.

  • FRM-40735: WHEN-NEW-BLOCK-INSTANCE trigger raised unhandled exception

    Hello,
    I get the following error FRM-40735: WHEN-NEW-BLOCK-INSTANCE trigger raised unhandled exception ORA-06502 in an R12 customized form . I have no code in when-new-block-instance . In my when-new-form-instance there's only
    CLEAR_FORM(NO_VALIDATE);
         GO_BLOCK('blockname');
         EXECUTE_QUERY;
         SHOW_VIEW('CAN_STK1');
         go_item('version_no');
    Any help please ?

    twinklin_girl wrote:
    Hello,
    I get the following error FRM-40735: WHEN-NEW-BLOCK-INSTANCE trigger raised unhandled exception ORA-06502 in an R12 customized form . I have no code in when-new-block-instance . In my when-new-form-instance there's only
    CLEAR_FORM(NO_VALIDATE);
         GO_BLOCK('blockname');
         EXECUTE_QUERY;
         SHOW_VIEW('CAN_STK1');
         go_item('version_no');
    Any help please ?Please do the following to get more details about the error.
    - Obtain FRD files -- https://forums.oracle.com/forums/search.jspa?threadID=&q=FRD+AND+R12&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    - Obtain debug log -- How to Obtain Debug Log in R12 [ID 787727.1]
    Thanks,
    Hussein

  • Re: FRM-40735: WHEN-NEW-FORM-INSTANCE trigger raised unhandled exception OR

    hi all
    i am facing a problem.i hav a master detail form. my 'select into' has to fectch more than one record in detail which is tabular.
    it giving error(FRM-40735:WHEN-MOUSE-CLICK TRIGGER raised unhandled exception ORA-01422).
    so i had written cursor to fetch records.
    DECLARE
    CURSOR Fetch_Rec IS
    select bill_id,mat_id,mat_code,send_qty,rec_qty,ast_no,serial_no,transact_note
    from ship_dtl;
    BEGIN
         GO_BLOCK('ship_dtl');
    FOR Get_Rec IN (select bill_id,mat_id,mat_code,send_qty,rec_qty,ast_no,serial_no,transact_note
    from ship_dtl where rec_qty=null AND rec_qty != send_qty AND BILL_ID=:SHIP_MSTR.BILL_ID) LOOP
    :ship_dtl.bill_id:=get_rec.bill_id;
    :ship_dtl.mat_id:=get_rec.mat_id;
    :ship_dtl.mat_code:=get_rec.mat_code;
    :ship_dtl.send_qty:=get_rec.send_qty;
    :ship_dtl.rec_qty:=get_rec.rec_qty;
    :ship_dtl.ast_no:=get_rec.ast_no;
    :ship_dtl.serial_no:=get_rec.serial_no;
    :ship_dtl.transact_note:=get_rec.transact_note;
    NEXT_RECORD;
    END LOOP;
    FIRST_RECORD;
    END;
    it is not retriving any records.please help.i also put ship_mstr.bill_id in properties of ship_dtl.bill_id(copy value)
    so please guide me how to handle it.
    thanks in advance

    911229 wrote:
    hi all
    i am facing a problem.i hav a master detail form. my 'select into' has to fectch more than one record in detail which is tabular.
    it giving error(FRM-40735:WHEN-MOUSE-CLICK TRIGGER raised unhandled exception ORA-01422).
    so i had written cursor to fetch records.where you use the cursor ?
    it is not retriving any records.please help.i also put ship_mstr.bill_id in properties of ship_dtl.bill_id(copy value)Which one is not retrieving any record ? first one or second one... and
    check the sql separately first..
    select bill_id,mat_id,mat_code,send_qty,rec_qty,ast_no,serial_no,transact_note
    from ship_dtl
    where rec_qty is null
    AND rec_qty != send_qty
    AND BILL_ID=:SHIP_MSTR.BILL_ID  ---How you pass the value here ? do you give input or any other way ?Hamid

  • (FRM-40735) WHEN-CUSTOM-ITEM-EVENT trigger raised unhandled exception

    Greetings
    The rest of the subject is ORA-06508.
    I am using Oracle Forms 10g
    I have three instances of the same app: DEV, TEST, and PROD. I can access both DEV and TEST with no problems. This includes being able to connect to any of the underlying databases i.e. DEV can connect to DEV, TEST, and PROD databases as can TEST.
    However, when I try to connect PROD to any of the aformentioned databases, I receive the error message in the subject.
    Regards,
    Bill Chadbourne

    when I try to connect PROD to any of the aformentioned databases, ...Since DEV is usually ahead in development to TEST, which is ahead of PROD it's to be expected that you cannot always use PROD forms on DEV or TEST databases.

  • Frm-40735 when-custom-item-event trigger raised unhandled exceptionora06508

    frm-40735 when-custom-item-event trigger raised unhandled exception ora-06508.
    While logging in, I am getting the above message,
    If I click on ok i am able to proceed and do the task.
    My problem here is to remove this error.
    Any one plz help out?

    Welcome to OTN
    Before posting on this forum please read
    931068 wrote:
    frm-40735 when-custom-item-event trigger raised unhandled exception ora-06508.So
    ORA-06508:     PL/SQL: could not find program unit being called
    Cause:     An attempt was made to call a stored program that could not be found. The program may have been dropped or incompatibly modified, or have compiled with errors.
    Action:     Check that all referenced programs, including their package bodies, exist and are compatible. Hope this helps
    If someone's response is helpful or correct, please mark it accordingly.

  • 40735 WHEN-NEW-FORM-INSTANCE-TRIGGER raised unhandled exception ORA-06502

    After migrationg my form from 6i to 10g I am getting the 40735 WHEN-NEW-FORM-INSTANCE-TRIGGER raised unhandled exception ORA-06502 err msg. the field is a date field and should be automatically populated with sysdate- 365. but when i open the form to run it is not populated automatically. i have to enter the date manually. the code in the NEW-FORM-INSTANCE trigger is as follows:
    declare
    record_id RecordGroup;
    error_cd number;
    begin
    -- Set the main window properties
    set_window_property(forms_mdi_window, window_state, maximize);
    -- Menu Security
    set_menu_items;
    select sysdate - 365
    into :start_date
    from dual;
    end;
    I check the property palate for the start_date field and it looks ok. the form is working fine in windows but the above message is comming out while running the form in Unix.
    Any help will be greatly apreciated.

    First thing, try qualifying the start_date with the block name
    declare
    record_id RecordGroup;
    error_cd number;
    begin
    -- Set the main window properties
    set_window_property(forms_mdi_window, window_state, maximize);
    -- Menu Security
    set_menu_items;
    select sysdate - 365
    into :block.start_date
    from dual;
    end;

  • FRM-40735 when mouse double click trigger raised unhandled exceptiORA-01722

    I am using Forms 10g.
    i am writting a procedure in When mouse double click trigger that will display all the values available for ip address from this procedure.
    The procedure is
    DECLARE
    CURSOR cr
    IS
    SELECT LEVEL NUM
    FROM DUAL
    CONNECT BY LEVEL<=(Select max_range from t_ip_address_dtl where category_name=:t_item_cpu.category and block_name =:block_head.block)
    MINUS
    SELECT TO_NUMBER(SUBSTR(IP_address, 12))
    FROM T_item_cpu;
    abc number(4);
    abc1 number(4):=null;
    BEGIN
    FOR rec IN cr LOOP
         abc1 := abc1 || ',' || rec.num;
    END LOOP;
    Message('You can use between these nos: '||abc1);
    Message('You can use between these nos: '||abc1);
    END;
    It is showing this error :-

    Yes bye mistakly i posted ,, due to internet problem..

Maybe you are looking for

  • How do I see email address (LearnerID) in Quiz Results Analyzer

    Useing Captivate 5.5 Reporting Quiz results to a local server. Q: How can I see the "LearnerID" (students email address) in the Captivate Quiz Results Analyzer? When the student clicks on "Post Results" and enters their name and email address in the

  • Software update even though it's updated

    when I launch itunes it tells me to update my software every time even though it is updated and it won't download any of my m4a's to the player. what's going on?

  • Tab un alighned after transporting sapsript.

    Tabs are un aligned after transporting sap script in to qality. it displaying properly in dev but the header data is not aligned in qa. Is there some thing which I need to take care. Please let me know if any suggestions. Thanks,

  • Error - "MCDTEXT not a member of MEMGMT_COMPONENT_TABLE"

    I have installed NWs SP09. In Mobile Infraturcture -->Mobile Components Administartion page, When I search for a Mobile component using *  or any other mobile component shown in MEMSD table,   I get the error below "Field MCDTEXT not a member of MEMG

  • Edit button missing from SharePoint page.

    I am unable to edit ONLY the search results page in SharePoint 2013. The Edit Page button simply does not appear: I'm at a loss as to whether I have permissioned something incorrectly or if I've failed activate a feature. Every other page has thi