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

Hi all

I use the 10g release2 form I'm having a problem
When I use the following stored procedure in form so I get this
error.
FRM - 40735:when - button-trigger pressed raised unhandled exception ORA-24247
but the same code works 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 it is used in form release button when pressed.
BEGIN
  mail_attach('UTL_PATH','code.txt');
  
     message('FIle send successfully');
     message('File send successfully');

END;

Hello

Try the following...

SQL> show user;
USER is "SYS"
SQL> GRANT EXECUTE ON DBMS_FGA TO MAIL;

Grant succeeded.

SQL> GRANT CREATE PROCEDURE, DROP ANY PROCEDURE TO MAIL;

Grant succeeded.

SQL> GRANT EXECUTE ON UTL_TCP TO MAIL;

Grant succeeded.

SQL> GRANT EXECUTE ON UTL_SMTP TO MAIL;

Grant succeeded.

SQL> GRANT EXECUTE ON UTL_ENCODE TO MAIL;

Grant succeeded.

SQL> GRANT EXECUTE ON DBMS_NETWORK_ACL_ADMIN TO MAIL;

Grant succeeded

Sarah.

Tags: Oracle Development

Similar Questions

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

    Hi all...
    I develop a form on the form 6i like a registration form...

    Suppose emp_name is a text element...

    I need to validate that the point that the number, the null characters and special should not be allowed.

    I created a function to check these postings

    function v_check (p_item_name varchar2)
    return a Boolean value is
    Start

    I'm in 1.length (p_item_name)
    loop
    If substr(p_item_name,i,'1') in ('1','2','3','$','%','@','!','#') then
    Returns false;
    end if;
    end loop;
    end v_check;


    When I click on the save_Record button it commit the form I'm checking the field emp_name with this validation by calling the above function.

    save_Record button, I wrote this WHEN BUTTON PRESSED to code trigger

    declare
    a number;
    Start

    If: iptable.ip_name is null or (not v_check(:iptable.ip_name)) puis)
    set_alert_property ('alert', title, 'validation of name');
    set_alert_property ('alert' ', alert_message_text, ' years spl char null is 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, "Save");
    a: = show_alert ('alert');
    If a = alert_button1 then
    commit_form;
    on the other
    raise form_trigger_failure;
    end if;
    on the other

    set_alert_property ('alert', title, 'Save box');
    set_alert_property ("alert", alert_message_text, "Noting the box save");
    raise form_trigger_failure;

    end if;
    end;


    But I get this
    FRM - 40735:WHEN - BUTTON-trigger PRESS raised unhandled exception ORA-06503

    exception

    How I can fix this error... help me

    Thank you...

    Published by: maddyd2k on November 25, 2010 10:37

    Hello

    Actually your v_check function may return a null value, that is not TRUE nor FALSE.

    Modify your function like this:

    function v_check (p_item_name varchar2)
    return a Boolean value is
    Boolean l_return: = true;
    Start

    I'm 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-trigger pressed raised unhandled exception ORA-01841

    Hi all
    I m this error FRM-40735: when pressed to shutter raised unhandled exception ORA-01841
    and relaxation that I wrote is like that: -.

    DECLARE
    CURSOR I IS SELECT SANCDATE, REFNO, PRINCIPALAMT, SANCAMT, TOTINSTALMENT, RATERECOVERY, AMTRECOVERED, INSTALMENTRECOVERED,.
    STARTYEARMM, ENDYEARMM
    OF PRMALOAN
    WHERE EMPNO =: PRMALOAN. EMPNO
    AND EARNINGDEDUCTION =: PRMALOAN. EARNINGDEDUCTION
    AND PAYCALPERIOD IS SET TO NULL;
    d date: = to_date('200908','yyyymm');
    date of s;
    f date;
    BEGIN
    go_block ('prmaloan2');
    OPEN I;
    LOOP
    I GET: 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 a null value
    then
    : prmaloan2. TEXT_ITEM164: = MONTHS_BETWEEN (d, s);
    exit when I % notfound;
    next_record;
    end if;
    end loop;
    proximity I;
    END;

    Please help me to remove this error

    Hello!

    s:=to_date(':prmaloan2.startyearmm','yyyymm');
    e:=to_date(':prmaloan2.endyearmm','yyyymm');
    

    won't. Replace:

    s:=to_date( :prmaloan2.startyearmm, 'yyyymm' );
    e:=to_date( :prmaloan2.endyearmm, 'yyyymm');
    

    Concerning

  • FRM - 40735:KEY - NEXT-trigger POINT raised unhandled exception ORA-20400


    Hi am having this error in my KEY-NEXT-ITEM trigger code was developed in 6i get this error when you call another procedure within these proceedings I have exception

    the form has been improved to 11g, the database is also in 11g

    Check how message ora-20400 supprise

    Hamid

  • FRM-40735: trigger ERROR raised unhandled exception ORA-06508

    I am having this error when executing my form this error before the page load screen I have not een know what trigger causes error

    FRM-40735: trigger ERROR raised unhandled exception ORA-06508'm in oracle 11 g 2 of the form how to find on which trigger causes error

    Hello

    Below is the cause of the error and for more information, see the link below.

    Question: An attempt was made to call a stored program that cannot be found.

    ORA-06508: PL/SQL: not found unit of programs called tips

    Oracle/PLSQL: ORA-06508

  • FRM-40375:-trigger INSERT raised unhandled exception ORA-04062

    Hi all:
    Error is received in the analytical Segment window: FRM-40375:-INSERT trigger raised unhandled exception ORA-04062, when I check the Note 136102.1 he tell me to define the "set security Type in the series of value, FNDFFMVS, no security."

    I don't know where to set the Type of security in the window series value.





    Respect of
    Terry

    Terry,

    Connect to SQL * more as a user of applications and run the scripts.

    $ sqlplus apps/
    
    SQL>@AFFFVLSB.pls
    
    SQL>@AFFFVLSS.pls
    

    Thank you
    Hussein

  • Error:-frm 40735 Trigger error raised unhandled exception ora-06508

    Hi all

    I'm new to EBS and I'm trying to compile EBS CUSTOM.pll file in which integrating AXF for the functionality of the Imaging, zoom button but when I followed the Oracle for the same documentation I am facing frm 40735 error when opening workbench.

    Link to the Oracle documentation file:- Configuration of the E-Business Suite components

    Note:-compiling all have passed without error.

    Please guide me.

    Thanks, Vikrant, it helped & I managed to solve this problem

  • FRM-40735 when key pressed raised unhandled exception ora-12899

    I am Ranga

    I can't recover this error please help me

    I wrote the code in when pressed release button is

    Start
    insert into jnnurm_user values (':new_block.user_name ',':new_block.password ');
    GO_BLOCK ('NEW_USER_BLOCK');
    end;

    Please help me what should I do

    Hello
    Welcome to the forums,

    Do not use the single quotation mark while referencing the name of the form field. Try as below.

    begin
       insert into jnnurm_user
       values(:new_block.user_name,:new_block.password);
       GO_BLOCK('NEW_USER_BLOCK');
    end;
    

    It is recommended to mention columns to insert statement for which you want to insert data.

    -Clément

  • FRM-40735 when-pressed to release raised unhandled exception ora-06502 button?

    I write the following procedure

    PROCEDURE p73_fragment_metar (p_metar in varchar2, varchar2, out p_dy Code_P varchar2, p_hr out varchar2,)
    p_dd number, p_ff series, p_tt number of p_dp number, p_qnh number.
    p_mn out varchar2, p_year out varchar2)
    IS
    -p_metar varchar2 (500);
    str_date_code Varchar2 (500);
    code varchar2 (10);
    DY varchar2 (10);
    HR varchar2 (10);

    str_dd_ff Varchar2 (500);
    JJ varchar2 (10);
    VARCHAR2 (10) FF.;

    str_tt_dp varchar2 (500);
    TT varchar2 (10);
    VARCHAR2 (10) DP;

    qnh_str varchar2 (500);
    QNH varchar2 (10);

    DAT varchar2 (20);
    MNTH varchar2 (20);
    VARCHAR2 (10) years;


    BEGIN
    -p_metar: = 'OJAM 171600Z 32010KT 5000 HZ SCT030 11/05 Q1023 NOSIG';
    str_date_code: = substr (p_metar, 1, length (DelimStr.GetString (p_metar, 1, FALSE, 'Z')) + 2);
    Code: = substr (str_date_code, 1, length (str_date_code)-9);
    Code_P: = code;

    dy: = substr (str_date_code, length-7 (str_date_code), 2);
    p_dy: = dy;

    HR: = substr (str_date_code, length-5 (str_date_code), 4);
    p_hr: = h;


    -- --------------------------------------------------------------------------------------
    -str_dd_ff: = substr (p_metar, 1, length (DelimStr.GetString (p_metar, 1, FALSE, 'KT')) + 0);
    -dd: = substr (str_date_code, length-5 (str_dd_ff), 3);
    DD: = substr (p_metar, 14, 3);
    p_dd: = to_number (dd);

    FF: = substr (p_metar, 17, 2);
    p_ff: = to_number (ff);

    -- --------------------------------------------------------------------------------------
    str_tt_dp: = substr (p_metar, 1, length (DelimStr.GetString (p_metar, 1, FALSE, ' /')) + 3);

    TT: = substr (str_tt_dp, length-5 (str_tt_dp), 3);
    p_tt: = to_number (tt);

    DP: = substr (str_tt_dp, length (str_tt_dp)-1, 3);
    p_dp: = to_number (dp);
    -- -------------------------------------------------------------------------------------
    qnh_str: = substr (p_metar, 1, length (DelimStr.GetString (p_metar, 1, FALSE, 'Q')) + 5);
    QNH: = substr (qnh_str, length (qnh_str)-3, 5);
    p_qnh: = to_number (qnh);

    -- -------------------------------------------------------------------------------------
    Select to_char (sysdate) in DUAL from SWD;
    month: = substr (dat, length (dat)-5, 3);
    p_mn: = mnth;
    years: = '20'. substr (dat, length (dat)-1, 3);
    p_year: = years;
    -- ---------------------------------------------------------------------------------
    / * p05_show_alert_message (code);
    p05_show_alert_message (dy);
    p05_show_alert_message (HR);
    p05_show_alert_message (DD);
    p05_show_alert_message (FF);
    p05_show_alert_message (TT);
    p05_show_alert_message (DP);
    p05_show_alert_message (QNH);
    p05_show_alert_message (MNTH);
    p05_show_alert_message (years); * / This loaded message to be sure and beach t each variable is it has the correct value


    END;


    I try to call hollow a trigger when the button as follows

    Declare
    p_metar varchar2 (500);
    Code_P varchar2 (10);
    p_dy varchar2 (10);
    p_hr varchar2 (10);

    p_dd number (4.4);
    p_ff number (4.4);

    p_tt number (4.4);
    p_dp number (4.4);
    p_qnh number (4.4);

    p_mn varchar2 (20);
    p_year varchar (10);

    Begin
    p_metar: = 'OJAM 171600Z 32010KT 5000 HZ SCT030 11/05 Q1023 NOSIG';

    p73_fragment_metar (p_metar, Code_P, p_dy, p_hr, p_dd, p_ff, p_tt, p_dp, p_qnh, p_mn, p_year);

    END;


    When the p73_fragment_metar PROCEDURE is called, I receive the following error message:
    FRM-40735 when-pressed to release raised unhandled exception ora-06502 button?

    Don't know if this is the reason, but are you sure that it is correct

    p_dd number (4.4);

    This means that you put a number with no figures before the commae and 4 digits after the decimal point, means you can't store something like 1 in it.

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

    Hi all

    Pending Production, we have a problem on invoice AP Workbench, gives an error (FRM-40735 after query Trigger on level Bill) when we recover the existing data of the invoice is entered.

    For this we have compiled the invalid objects and applied the patch according to 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 someone help us

    Thank you
    SAI

    SAI,

    Thanks for the update and share the solution.

    Hussein

  • Error FRM-40735: trigger ON-ERROR raised unhandled exception ORA-01001

    When I want to create a new project the form send this error message:

    FRM-40735: trigger ON-ERROR raised unhandled exception ORA-01001

    I already compile forms, they ran autoconfig and has no

    Forms is: PAXPREPR

    the module is: projects

    EBS version: 11.5.10.2

    DB: 11.2.0.3.0

    Please see:

    PAXPREPR - creating a project gets error FRM-40735: error Trigger & ORA - 01001 (Doc ID 417218.1)

    PAXPREPR - FRM-40735 when you try to copy the project template after you have entered a fast entry (Doc ID 417537.1)

    Thank you

    Hussein

  • FRM-40735: trigger for INSERTION after raised unhandled exception ORA-25207

    Hello
    I am trying to create custom applications. In that when creating custom responsibility I get the following error
    FRM-40735: trigger for INSERTION after raised unhandled exception ORA-25207

    I know ORA-25207 is related to the activation of the queues, but how do I find out which queue this error is ponting at.

    File alertlog Checked, $APPLCSF / $APPLLOG found nothing.

    Any help is appreciated

    Concerning
    Taher

    PL see if the steps described in MOS Doc 211095.1 (11, 5 - AP: Frm-40735: trigger of sur-Commit not triggered managed Ora - 25207 Exception on APXPAWKB) can help.

    It is an odd error and should not occur when you create custom responsibilities. You have customizations/triggers/customizations enabled on the form of accountability?

    HTH
    Srini

  • FRM-40735: trigger ON-ERROR raised unhandled exception ORA-06508

    Hello

    We are the migration form 6i to 10g (10.1.2.0.2) with HP_UX. Here are the steps I took

    1. I compiled all the forms/pll/menu locally using Shift + Ctrl + k, and Clt + T and saved in the folder (local_10g).

    2. then all copied from local_10g to the file (unix_10g) in Unix.

    3 compiled it using the command Frmcmp and got all the mmx, plx successfully and most of the fmxs. (some of FMAS throw error).

    4 copied all fmx, plx, mmx to unix (unix_10g) folded in my forms_prod say local.

    5. when I run fmb in my local forms_prod folder, I have error FRM-40735: trigger ON-ERROR raised unhandled exception ORA-06508.

    I added location c:\forms_prod in Forms_path (regedit) and Forsm_Path (default.env). (for locals)
    I added the location of u01\unix_10g in Forms_Path (default.env) on unix.

    Please let me know what and where I am doing wrong? I'd really appreciate your help.

    Thank you
    Sandy

    Hello

    In General, you have to compile the module on each of the target servers, because the executable modules are not portable.

    François

  • FRM-40735: trigger ON-ERROR raised unhandled exception ORA-01001

    Hi Hussein.

    I tried to interview as a summary transaction for AR

    Superuser of receivables > Transactions > summary of the operation > and request date of the operation "5 June 09.
    the process lasted until after a long period, it displays error > FRM-40735: trigger ON-ERROR raised unhandled exception ORA-01001

    But all the other dates are OK for the query. :(


    What is the problem with this operation? My delete tables interfaces affected it? :((


    Thank you very much

    Hello

    I can make this comment: first 445166.1? It's short and easy to follow. Another note is too long and complicated.

    Yes, you can.

    For removing the transaction from the backend, I don't recommend it unless you are prompted to do so by the Support of Oracle.

    Kind regards
    Hussein

  • Trigger of PREFORM raised unhandled exception ORA-04067

    Hello

    I searched the forums first using "FRM-40735 ORA-04067 ' as search criteria, but gave what I exactly wanted so I write a new thread.

    my application works fine when I get a good user name/pass and connection string.
    But when I enter another user code and pass and correct connection string then instead of show me the message "as invalid pass etc." it gives me following error.

    ' FRM-40735: trigger of PREFORM raised unhandled exception ORA-04067.

    Now, I searched the explanation and FYI I have found no non-existent procedure being referred in my code trigger of the PREFORM. all things in this trigger are defined with.

    While the guys do you suggest.
    Looking for your help.

    Thank you and best regards.

    But when I enter another user code and pass and correct connection string then instead of show me the message "as invalid pass etc." it gives me following error.

    If you open a session as long as another user valid? That's what it sounds like you're saying. If another name for username/password is valid, why you get the message 'invalid password'?

    ORA-04067 means you logged in with a valid username, but then a subsequent statement tried to execute a stored procedure on the database, and the user you logged in who has no access to the stored procedure.

Maybe you are looking for

  • Bands

    To look at the new nike +, the Strip can be switch?

  • the slower airport locations

    It takes at least 2 minutes for my financial Institute page load.  If I use wireless xfinity that loading of the page immediately.  Not sure why this is happening? What is the best way to configure my airport extreme?

  • How can I get the interactive weather maps at work since the last FireFox update?

    Interactive maps from Weather.com and Intellicast.com stop working for me with the latest updates (June 2012) to v13. Guess that do not know if it's the right "place" for this question, but need help I'm exasperated with Firefox (after years and year

  • Please can someone explain how this circuit works?

    I was digging through some old files left here by a former employee and found this.  There is a text file with it that said it was a temperature alarm that was supposed to have a green light when the temperature was between 50 and 100, but a red ligh

  • already on this flash drive

    I have a Sandisk cruzer flash drive which has dwlg 650A1_drivers_107 and don't know what it is