When button pressed - trigger raised unhandled exception ORA-06502

Hi all

I am currently implementing a hierarchy tree, using these codes on

When button pressed

DECLARE
htree point;
my_sql VARCHAR2 (200): = ' select 1, level, hee_name, null, to_char (hee_no)
of hrm_employee
Connect prior hee_id = hee_dirsup_id
Start with hee_dirsup_id is null
order of brothers and sisters in hee_name';
BEGIN
htree: = FIND_ITEM ("trees.tree10");
Ftree. SET_TREE_PROPERTY (htree, ftree.query_text, my_sql);
Ftree. POPULATE_TREE ("htree");
END;

I can't see my hierarchical tree and I get the above error message.
Is someone can you please help me sort this out? Are there pieces of missing codes resulting from this error.

I'll be very grateful for any help :)

Germany.

Hi Germany

trigger an unhandled exception thrown ORA-06502

* Cause: this error occurs when you try to assign a value to a variable, but the value is greater than the variable can handle.
or if you try to assign a nonnumeric value to a numeric variable.

--=========================

Action *: pls change the VARCHAR2 my_sql * (200) * to my_sql VARCHAR2 * (2000). *

I can't see my hierarchical tree

Pls take a look here: code sample Andreas Weiden....

I hope this helps...

Kind regards

Amatu Allah.

Tags: Oracle Development

Similar Questions

  • 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

  • FRM-40735: key PRESS trigger raised unhandled exception ORA-00942

    Hello

    Forms 10G and Oracle

    the code on the bottom button is
    DECLARE
         p_color BOOLEAN;
    BEGIN
         p_color := SHOW_LOV('color');
         insert into product_code
         (prod_code,
         prod_name,
         prod_color,prod_id)
    values (:PRODUCT.prod_id,
    :prod_name,
    :AVAILABLE_COLORS,
    :product.prod_id);
    next_record;
    END;
    
    
    Table where data to inserted is
    
    SQL> desc product_code;
     Name                                      Null?    Type
     ----------------------------------------- -------- --------------
     PROD_CODE                                          VARCHAR2(100)
     PROD_NAME                                          VARCHAR2(150)
     PROD_COLOR                                         VARCHAR2(50)
     PROD_ID                                            VARCHAR2(50)
     XS                                                 NUMBER
     S                                                  NUMBER
     M                                                  NUMBER
     L                                                  NUMBER
     XL                                                 NUMBER
     PCS                                                NUMBER
    Please Guide

    Thanks and greetings
    Vikas Singhal

    Hello
    Check the couple of things.

    1. check the user logged on the generator of forms and DURATION. Is must be the same.
    2. check the query in LOV and run in the same user database that you use when running.

    I guess the user login form builder and DURATION user are different.

    -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 PRESSED to SHUTTER raised unhandled exception ORA-06502

    I am set_element-property when button pressed but lov get this error

    I whated this

    BEGIN

    copy (: cal_erd.copyobjid,'c)

    al_erd.obj_child');
    go_item('cal_erd.) DISPLAYNAME');
    do_key ('List_values');
    copy ('0', 'GLOBAL.save_mouse_record');
    END;

  • When trying to install a new operating unit gives an error: FRM-40735: trigger of PREFORM raised unhandled exception ORA-06502

    EBS - accounts payable - Version 12.1.3.

    We have a lot of other business units configured and no error occurs.

    This error occurs only if we define a new ORGANIZATIONAL unit.

    All profiles have been configured correctly. (MO: appliance, HR: security profile, etc...)

    The trace shows:

    SELECT PROFILE_OPTION_VALUE

    OF FND_PROFILE_OPTION_VALUES

    WHERE PROFILE_OPTION_ID = 5852

    AND APPLICATION_ID = 178

    AND LEVEL_ID = 10003

    AND LEVEL_VALUE = 124280

    AND LEVEL_VALUE_APPLICATION_ID = 200

    AND PROFILE_OPTION_VALUE IS NOT NULL

    PROFILE_OPTION_ID = 5852 is "ICX:Session Timeout".

    If I put this profile the error does not occur. But it's very strange to have set a level of responsibility.

    Hi all.

    I discovered what the problem was.

    The size of the name of the responsibility has been with many characters.

    Reduces the size and the error continued to occur.

    TKS!

  • FRM 40735: changing page-tab trigger raised unhandled exception-ora-06508

    I have a form that works fine when running against DB A. But it gives the error above when running against DB B or C.
    -I did a comparison of schema for all three databases. Nothing is different (at least the objects used by the form are not different.)
    -J' checked grants and synonyms for all db objects used by this form. They are all present and even on all 3 dB.
    -So I started to equip the code with messages to understand out exactly this error. I use a type defined in the database in my form.
    CREATE OR REPLACE TYPE table_of_integers IS TABLE OF INTEGER
    When I comment on any form code that uses this type, I don't get this error. So I created the local type to form (as I am not passing between DB and form) and the formula works very well.

    Someone has encountered this problem before? Or is the problem differs from what I mentioned earlier? I don't know if one of our other forms use all types of DB.

    As your form works against DB A - I tend to think that the problem is with database B and C versions but doesn't make sense to me as DB - A is older than DB - B & C.

    How do you use your form against DB B & C? Have you tried to compile the form against DB - B or C and the same results? I do not see where you said the Forms version you are using - what is your version of Forms Builder? Have you applied all available sets of fixes/patches? If you are on the last series of patch/patch, you may need to start a request of Service (SR) with the support of the Oracle.

    Craig...

  • 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

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

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

  • 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

  • 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

  • Power of the exchange rate in numbers

    Hello I create a Position size in numbers calculator for managing risk in the trading game. More commercial instruments denominated in foreign currencies and to work on what I am risking in Australian dollars, I need exchange rate feed numbers to cal

  • LeCroy connection

    Hello. I downloaded the instrument drivers, but when starting from the block diagram, I'm going to find the instrument Drivers and then I double click on lcwave (so I guess that the drivers are installed correctly), it shows me a few examples of VI..

  • Dell Streak 7 do not turn in force start does not work

    the Tablet does not turn on - although the menu items are side lit.  I tried to stop the force pressing on the power button (at one point and at the same time) and it didn't work. any other suggestions?  Thank you.

  • Need help with VMware Player to run!

    I've been using VMware Player 7.1 successfully for some time, but my drive hard host started making noise, so I installed a new SSD drive as drive C on the host computer.  My old hard drive installation was 8.1 for Windows 64-bit, but needed to be cl

  • Billing account

    Why do I get charged $ 20 per month? I do not use it and I canceled along the time. I connected and my account says I don't have a plan and I don't have an option to cancel my creative Adobe PS account. Someone help I don't like to waste money withou