Error -- No Such Trigger('when-button-pressed')

Hi,
I am getting the error ""No Such Trigger('when-button-pressed')"",
when I am executing the code EXECUTE_TRIGGER( 'WHEN-BUTTON-PRESSED' );
on some item(Key-Next-Item), although WHEN-BUTTON-PRESSED trigger exists.
What could be the problem ?. It worked till yesterday, giving error from today, I havent
changed any thing.
Thanks in Advance
Devender

Steve's tip is the only good solution for this case.
The problem in your case for example is:
Let's say you have a block-trigger, which fires after your execute-trigger.
Now a colleague of you, which don't know your code, create a WHEN-BUTTON-PRESSED on an item, then the new code is started and not the block-trigger-code.
So, don't ever do this. Write your code in a package-function or -procedure and call it from the trigger. So you can re-user the functionality
Gerd

Similar Messages

  • 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-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

    when click button save
    ---========================
    insert into details_master
    (id,matrials_id)
    values
    (:id,:ESTBIAN_DATA.MATRIALS_LIST);
    insert into estbian
    (id,master_id,details_id,detail_name,grade,time_date)
    values
    (:id,:ESTBIAN_DATA.MATRIALS_LIST,:details_topics.id,:details_topics.detail_name,:details_topics.grade,sysdate);
    ----========================================
    error message : "FRM-40735: WHEN-BUTTON-PRESSED trigger raised unhandled exception

    Hi,
    Looks like the inserts aren't working...maybe you are trying to insert invalid values. Add an exception section to handle the errors and print the error message, that way you will know the exact error reason.
    Regards,
    Sujoy

  • GO-ITEM  - WHEN-BUTTON-PRESSED - SQLAP-10048 - You have not selected a record.

    Hi,
    I need to use go-item -> execute-trigger(when-button-pressed) personalization in oracle EBS Payables module. However i face certain problem.
    When i do 'go-item' to particular 'button', row selection disappear(its a multi row block). In the result i receive an error - 10048 - you have not selected a record.
    Manually you just click a button with row selected, and everything goes fine. There must be some kind of a context parameter which is passed from a block/record/row to a button. However how to achieve this through personalization?
    Many thanks for every help.
    Best regards,
    Martin

    write a procedure in forms that disables all your items in that record and call this on When-New-Record-Instance and When-Button-Pressed.
    PROCEDURE disable_item IS
    BEGIN
    IF :<block>.indicator = 'X'
    THEN
    SET_ITEM_INSTANCE_PROPERTY('<block>.<item>, CURRENT_RECORD, INSERT_ALLOWED, PROPERTY_FALSE);
    SET_ITEM_INSTANCE_PROPERTY('<block>.<item>, CURRENT_RECORD, UPDATE_ALLOWED, PROPERTY_FALSE);
    .. (repeate this t2o Statemnts for every item,
    more elegantliy you may write a loop using built-in NEXT_ITEM to get all items and set insert and update off) ...
    END IF;
    END;
    On When-Button-Pressed set the value of :block.indicator to 'X' before calling the disable_item procedure.
    Attemtion: This solution assumes that the button is part of your MR block (cited bove as <block>).
    ... and code is just written down, not tested.

  • Raise Form_Trigger_Failure on When-Button-Pressed  ORA-01410 Invalid RowID

    Hello to all...
    I have an error whit Raise Form_Trigger_Failure on trigger When-Button-Pressed.
    I guess the error is when does the Raise Form_Trigger_Failure
    When validate something, this validation ask me if i want to continue.
    When i answer NO, give me this error: ORA-01410 Invalid RowID
    If i answer YES, the process continue and in an unexpected moment, give that error too
    Why give me that error?
    How can i resolve this error...help me
    thanks...
    Part of Code
    FOR i IN 1..TItemsAsi1.LAST LOOP
    IF TItemsAsi1(i).c_error IS NOT NULL THEN
    l_error := l_error + 1;
    IF TItemsAsi1(i).c_error = 'ND' THEN
    IF NOT Fpa_mensaje.disp_consulta_sino('Atención','No hay datos suficientes para generar Asiento de cierre relacionado a Reconocimiento de los recursos del ejercicio') THEN           
    RAISE FORM_TRIGGER_FAILURE;
    END IF ;     ELSIF TItemsAsi1(i).c_error = 'AD' THEN
    IF NOT Fpa_mensaje.disp_consulta_sino('Atención','Hay cuentas Acreedoras con saldo Deudor CUENTA: '||TItemsAsi1(i).c_cuenta||'. ¿Desea continuar con el cierre? ') THEN           
    RAISE FORM_TRIGGER_FAILURE;
    END IF ;     ELSIF TItemsAsi1(i).c_error = 'DA' THEN
    IF NOT Fpa_mensaje.disp_consulta_sino('Atención','Hay cuentas Deudoras con saldo Acreedor CUENTA:'||TItemsAsi1(i).c_cuenta||'. ¿Desea continuar con el cierre? ') THEN           
    RAISE FORM_TRIGGER_FAILURE;
    END IF ;     END IF;END IF;END LOOP;

    delete from <table> where rowid like '<block id>%'Arrgh. To be honest, this is the worst sql-statement i have seen this year. i hope the statement will raise an error on execution, but even if it would get executed, what should be the reason for something like this? Delete anything which is stored in a specific block, regardless of the meaning ?

  • FRM-40735 WHEN BUTTON PRESSED TRIGGERRAISED UNHANDLED EXCEPTION ORA-01407

    WHILE I AM TRYING TO UPDATE A TABLE LIKE:
    update mis_dik_adeia
    set trexon_etos_days = (select days_per_year
    from mis_dik_adeia, mis_plafon_adeivn
    where mis_dik_adeia.adeia_id = mis_plafon_adeivn.adeia_id
    and mis_dik_adeia.adeia_id between aapo and aews
    and mis_dik_adeia.employee_id = apoerg
              and mis_dik_adeia.etos = etos1
              and mis_plafon_adeivn.years_yphr = ( select max( a.years_yphr ) from mis_plafon_adeivn a where a.adeia_id = mis_plafon_adeivn.adeia_id     and a.years_yphr <= eth ));
    AND THE COMPILER DOESN'T GIVE ANY ERROR, I TAKE THE BELOW ERROR!
    FRM-40735 WHEN BUTTON PRESSED TRIGGERRAISED UNHANDLED EXCEPTION ORA-01407

    there are two categories of errors: compile-errors and runtime-errors.
    In this case the syntax of statement seems OK (no compiler warnings) but running the code gives you a ORA-01407.
    Look in your manual which error occured in your form.
    Or use error_code and error_text in your Exception-Handling to get those errors in a better readable way.
    try it
    Gerd

  • Event when-button-pressed

    Hi,
    I am working on a form(10g) and I have a button on which I have a trigger when-button-pressed.
    I need to know if there's any function that I can use to capture the event of pressing the button. (I have a function in which I want to do : if the button was pressed do..., else do ....)
    Any ideeas on how to get the event?
    thaanks.

    in wnfi trigger use
    default_value('0','global.ur_variable');
    --this code puts a value of 0 if the variable is not assigned any value, yet                                                                                                                                                                                                                                                                                       

  • Frm-40735 when-button-pressed trigger raised unhandled  exception ora-03114

    hi everybody,
    i am using oracle 10g release 2 in my test server and 10g release 1 in production server with forms in 10g running through the oracle 10g application server with no problem with our production server.
    but the same form when i try to use through the same application server for my
    with my test database server which is oracle 10g release 2 is giving me
    frm exceptions and disconnecting the session.
    like i get frm-40735 when-button-pressed trigger raised unhandled exception
    ora-03114. then frm-40655 sql error forced rollback;clear form and reenter transaction. then when i try to exit it shows ora-24324 service handle not initialized.
    The same thing when i try with my production server i dont get any exception handle error or forced rollback error.
    i am not facing any problem as such to connect to my test database(release 2)
    through sql plus client or TOAD OR ENTERPRISE MANAGER THEY ARE ALL FINE. IT IS ONLY WHEN I GO THROUGH THE APPLICATION SERVER TO ACCESS MY FORMS I GET THIS ERROR. BUT MY PRODUCTION IS RUNNING THE SAME WAY WITH NO ERRORS.
    any suggestions welcome as i have to bring release 2 in the production next month
    thanks and regards
    manish

    ORA-03114 not connected to ORACLE
    Cause: A call to Oracle was attempted when no connection was established. Usually this happens because a user-written program has not logged on. It may happen if communication trouble causes a disconnection. In addition, this message could occur when ALTER SYSTEM KILL SESSION or ALTER SYSTEM DISCONNECT SESSION were issued with the IMMEDIATE qualifier because, in those cases, the client's connection to the database is terminated without waiting for the client to issue a request.
    Action: Try again. If the message recurs and the program is user written, check the program.
    zaibi.

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

    Hello to all...
    I am developing a form on form 6i like a registration form....
    Suppose emp_name is a text item....
    I need to validate that item such that number ,null and special characters should not be allowed.
    I have created a function to check those validations
    function v_check(p_item_name varchar2)
    return boolean is
    begin
         for i in 1..length(p_item_name)
         loop
              if substr(p_item_name,i,'1') in ('1','2','3','$','%','@','!','#') then
                   return false;
              end if;
         end loop;
    end v_check;
    When i click on save_Record button it commit the form i'm checking the emp_name field with this validation by calling the above function.
    for save_Record button i have written this code WHEN-BUTTON-PRESSED trigger
    declare
         a number;
    begin
         if :iptable.ip_name is null or (not v_check(:iptable.ip_name)) then
              set_alert_property('alert',title,'name validation');
              set_alert_property('alert',alert_message_text,'null ans spl char are not allowed');
              a:=show_alert('alert');
              go_item('iptable.ip_name');
              raise form_trigger_failure;
         end if;
         if :system.form_status='CHANGED' then
              set_alert_property('alert',title,'Save Box');
              set_alert_property('alert',alert_message_text,'Do u want to save');
              a:=show_alert('alert');
              if a=alert_button1 then
                   commit_form;
              else
                   raise form_trigger_failure;
              end if;
         else
              set_alert_property('alert',title,'Save Box');
              set_alert_property('alert',alert_message_text,'noting to Save Box');     
              raise form_trigger_failure;
         end if;
    end;
    But i'm gettin this
    FRM-40735:WHEN-BUTTON-PRESSED trigger raised unhandled exception ORA-06503
    exception
    How can i resolve this error...help me
    thanks...
    Edited by: maddyd2k on Nov 25, 2010 10:37 AM

    Hi,
    Your function v_check actually can return a NULL value wich is not TRUE neither FALSE.
    Modify your function like this :
    function v_check(p_item_name varchar2)
    return boolean is
    l_return boolean := true;
    begin
    for i in 1..length(p_item_name)
    loop
    if substr(p_item_name,i,'1') in ('1','2','3','$','%','@','!','#') then
    l_return := false;
    end if;
    end loop;
    return l_return;
    end v_check;

  • 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.

  • How do I execute a 'remote' when-button-pressed trigger?

    I am using Forms 6 in an 8i/10g environment. I have a data block (COMPACT) which is on canvas MAIN. Compact has an item (button) called CREATE_COMPACT, with a when-button-pressed trigger. I also have an error canvas which has a button called RESTART, so they can restart the entire build after an error. The restart code is exactly the same as the create_compact code, and, after the restart, I want the focus to be the main canvas, so I would like to just have the restart when-button-pressed trigger shift focus to the CREATE_COMPACT trigger and execute it. I have tried:
    go_item( 'Compact.Create_Compact' );
    do_key( 'Enter' );
    This switched me to CREATE_COMPACT but did not execute the trigger. I then tried:
    execute_trigger( 'Compact.Create_Compact' );
    and then:
    execute_trigger( 'Create_Compact' );
    but neither of these work. I get error FRM-40700 no such trigger. Is there any way to do this short of copying code or creating a pl/sql procedure?
    thanks

    do_key('ENTER') will execute the code in a KEY-ENTER trigger so I suggest you move your code into the KEY-ENTER trigger. On your when-button-pressed trigger you should also use do_key('ENTER');

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

    I m working on Fusion Middleware forms 11g with windows plateform. I want to launch an exe (like notepad.exe) from my form on button click, which i m doing using the webutil dde.app_begin. My form is deployed on server, and i want to launch this application from client. The server is on linux. Now when i press the button it gives me error "FRM-40735: WHEN-BUTTON-PRESSED trigger raised unhandled exception ORA-106561". Here is my code:
    DECLARE
    AppID    PLS_INTEGER;
    BEGIN
    AppID := DDE.App_Begin('notepad.exe',DDE.App_Mode_Normal);
    END;
    Any help will be highly appreciable. Also, please tell me for any possibility, if i can call this exe from server, which is on linux.
    Regards,
    Sharjeel

    Any one there pls help me in this. I seen all the forums and threads, for this, but could'nt find any solutions.
    Any help will be highly appreciable.
    Regards,
    Sharjeel

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

    Hi,
    The users are facing problem on opening the OAF pages on R12 instance.
    They face this error when they,
    1. Go to System Administrator responsibility.
    2. Open page under Workflow > Administrator Workflow > Status Monitor.
    3. This error pops up in the lower half of the form page.
    FRM-40735: WHEN-BUTTON-PRESSED trigger raised unhandled exception ORA-29516
    However, this error doesn't happen when people make direct login from homepage. Kindly help and suggest what need to be done.
    EBS 12.1.3
    DB 11.2.0.2.0
    Thanks in advance.*
    Holi*

    Can you find any details about the error in Apache log files and the application.log file?Saw two files, error*.log, and access.log. Please suggest if I need to see some other files, I am new to R12 environment.
    error log
    n request for destination: application://forms (no island or jgroup).
    +[Fri Apr  1 09:05:04 2011] [error] [client 10.182.1.5] [ecid: 1301666704:10.10.241.79:3809:0:89,0] mod_oc4j: Failed to find a failover oc4j process for session request for destination: application://forms (no island or jgroup).+
    +[Fri Apr  1 09:05:48 2011] [error] [client 10.182.1.5] [ecid: 1301666748:10.10.241.79:2404:0:299,0] mod_oc4j: Failed to find a failover oc4j process for session request for destination: application://oacore (no island or jgroup).+
    +[Fri Apr  1 11:34:36 2011] [error] [client 10.11.219.90] [ecid: 1301675676:10.10.241.79:2404:0:414,0] File does not exist: /p01/app/applmgr/oappsp1/apps/apps_st/comn/java/classes//+
    +[Fri Apr  1 11:34:38 2011] [error] [client 10.11.219.90] [ecid: 1301675678:10.10.241.79:8458:0:332,0] File does not exist: /p01/app/applmgr/oappsp1/apps/apps_st/comn/java/classes//+
    +[Fri Apr  1 11:40:10 2011] [error] [client 10.11.219.90] [ecid: 1301676010:10.10.241.79:2562:0:467,0] File does not exist: /usr/local/oraapps/tmp/inst/apps/OAPPSP1_c201u334/portal/favicon.ico+
    access log
    +27.0.0.1 - - [01/Apr/2011:23:36:00 -0500] "HEAD /index.html HTTP/1.1" 200 0 0 "-" "-"+
    +127.0.0.1 - - [01/Apr/2011:23:36:20 -0500] "HEAD /index.html HTTP/1.1" 200 0 0 "-" "-"+
    +127.0.0.1 - - [01/Apr/2011:23:36:40 -0500] "HEAD /index.html HTTP/1.1" 200 0 0 "-" "-"+
    +10.32.16.114 - - [01/Apr/2011:23:36:55 -0500] "POST /forms/lservlet;jsessionid=3218513816b7b7e5c75d2c1e812eca1e21eb118fdac1cbb0d8eb1d618ee6ccbb.e3qKbN0Mc3yNe38Lb34KahuTbx10 HTTP/1.1" 200 2 0 "-" "Mozilla/4.0 (Windows XP 5.1) Java/1.6.0_07"+
    +127.0.0.1 - - [01/Apr/2011:23:37:00 -0500] "HEAD /index.html HTTP/1.1" 200 0 0 "-" "-"+127.0.0.1 - - [01/Apr/2011:23:37:20 -0500] "HEAD /index.html HTTP/1.1" 200 0 0 "-" "-"

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

    Hi,
    I am trying to run a form in which I have a button which when pressed should display another popup window with few text fields in it. I have a WHEN-BUTTON-PRESSED trigger on that particular button and its raising an exception called
    FRM-40735: WHEN-BUTTON-PRESSED trigger raised unhandled exception ORA-06502.
    When I debug the form with breakpoints its displaying the popup window correctly, but if I run it in a browser as soon as click the button it raises the Unhandled exception given above.
    Can anyone help with this? Urgent please....
    Thanks

    It is VERY good to handle your exceptions, specially a certain pre-defined exceptions like NO_DATA_FOUND, TOO_MANY_ROWS, ZERO_DIVIDE etc...
    You can also find samples on how to create user-defined exceptions, just search the online forms help (press the question mark in forms builder) for "User-Defined"
    But however you handle your exception never ever do
    WHEN OTHERS THEN NULL;If you do that you are telling to forms that no matter what kind of error is thrown do nothing, now that's very dangerous.
    You might also want to check Oracle's documentation on [url http://www.oracle.com/pls/db102/portal.portal_db?selected=5]Application Development and do a search on "Exception Handling"
    Regards,
    Tony
    Message was edited by:
    Tony Garabedian

Maybe you are looking for

  • Is there a way to scan a Mac OS for viruses and spyware?

    I've browsed some sites that I suspect might have given me some spyware or possibly viruses. I'm not sure because I don't have any effects on my mac (such as slowness, etc), but I would like to scan the computer if I could.

  • ITunes resets play count to "1" after syncing

    Hi, recently I've noticed that after syncing my iPod the play count for the tracks I've played that day are showing as 1 even though many of them have been played a lot more than that (some in the 100s). This has only been only happening since I upgr

  • Error in Blog Code?

    Recently, as in today my site has not been loading incorrectly. My host has told me that there is something wrong with the blog code. When I go to the blog part of the site I get this message: # Exception: TypeError # Message  : Cannot call method 'i

  • Tranporting variant of a query

    Hi all, Anyone is having a idea how to transport a variant of a query know variants are stored in TVARVC but I don't want to transport the entries or table want to transport variant stored in TVARVC. Regards, Nandini

  • What comes with 2004s ABAP Sneak Preview?

    Can anybody explain the contents that come with the ABAP Sneak Preview? I saw someone referring to minisap....Does this mean I get all the functional parts of traditional R/3?? Can I rite regular ABAP programs using Standard R/3 Tables?? Sorry for my