Ora 6502 error in forms

hi all,
in created a insert form ,where in i have over ridden the 'when-button pressed' trigger.
when the button is pressed all the data from the form is entered into the database.
I am succeding in transferring the data into the database but ...' get an error message
unhandled exception ora 6502'.....
I have provided the max size to the database column account and cust_no column.
below is my code in the 'when button-pressed trigger'
insert into customer
CUSTNO ,
ACCNO --,
--CUST_ADD1 ,    
--CUST_ADD2  ,   
--CUST_POSTCODE 
values
:CUSTNO ,
:ACCNO -- ,
--:CUST_ADD1 ,
--:CUST_ADD2 ,
--:CUST_POSTCODE
commit_form;
exit_form('NO_VALIDATE');
also my customer table is like below
SQL> desc customer;
Name Null? Type
CUSTNO NUMBER(38)
ACCNO NUMBER(38)
CUST_ADD1 VARCHAR2(200)
CUST_ADD2 VARCHAR2(200)
CUST_POSTCODE VARCHAR2(50)
please let me know ...
rgds
s

ORA-6502: PL/SQL: numeric or value error
there are many problems, which raise this error
string vs date vs number - problem. Check your datatypes
strings which are too long - check the size of the inserted data and the length of the columns
what did you find ?

Similar Messages

  • Oracle Collaborate Suite ORA-6502 error during loging or form submitting

    Hi!
    I had Oracle Collaborate Suite ORA-6502 error during loging or form submitting:
    Internal error (WWC-00006)
    An unexpected error has occurred (WWS-32100)
    ORA-6502: ORA-06502: PL/SQL: numeric or value error: character string buffer too small (WWC-36000)
    Unexpected error encountered in wwsec_api.person_info (ORA-06502: PL/SQL: numeric or value error: character string buffer too small) (WWC-41417)
    Error (WWS-20000)
    An unexpected error has occurred (WWS-32100)
    ORA-6502: ORA-06502: PL/SQL: numeric or value error: character string buffer too small (WWC-36000)
    Unexpected error encountered in wwsec_api.person_info (ORA-06502: PL/SQL: numeric or value error: character string buffer too small) (WWC-41417).
    This happened when:
    I was using Russian letters in OCS HTML forms (for example - in Administration provision console or in my own HTML forms)
    and only I work in Linux (with UTF-8 encoding) (in Windows with win1251 encoding all is OK).
    My Database NLS not-null Parameters are:
    NLS_LANGUAGE      - AMERICAN
    NLS_LENGTH_SEMANTICS      - BYTE
    NLS_TERRITORY      - AMERICA
    NLS_CHARACTERSET - AL32UTF8
    NLS_NCHAR_CHARACTERSET - AL16UTF16
    WHAT MUST I DO TO AVOID THIS SITUATION?
    Thank
    Valery

    All,
    It appears that the page Javascript maximum limit size was reached. The error stopped appearing after some of the page Javascript code was removed out to Application Static Files. I wonder if there exists any "direct" indicator by the system whenever the size limit has been reached?
    Again, the run error only occurred when the page was loaded in "Debug" mode.
    Bernard

  • ORA-00439 error in Forms URGENT.... URGENT.....

    Hi,
    i have created a new procedure to import a file on the machine to the database BLOB object. the procedure ran succesfully in the SQL prompt. In the Oracle forms builder, I created a new button and on the WHEN_BUTTON_PRESSED PL/SQL logic, i pasted the same procedure. But I got ORA-00439 error while running the form and clicked on the button. Could anyone of you help me out? Is that something to do with any restrictions on Forms?
    Below is the code that i used in the PL/SQL logic of WHEN_BUTTON_PRESSED event.
    declare
    src_file BFILE; -- source file
    dst_file BLOB; -- designation file
    lgh_file BINARY_INTEGER; -- file length
    pdname VARCHAR2(255) := '/appl/pce/d1/eai/informatica/Temp/';
    pfname VARCHAR2(255) := 'router.cfg';
    file_readonly CONSTANT BINARY_INTEGER := 0;
    BEGIN
    src_file := bfilename('RNDVPVOUS', pfname);
    -- insert a NULL record to lock
    INSERT INTO temp1
    (name, file_1)
    VALUES
    (pdname, EMPTY_BLOB())
    RETURNING file_1 INTO dst_file;
    -- lock record
    SELECT file_1
    INTO dst_file
    FROM temp1
    WHERE name = pdname
    FOR UPDATE;
    -- Open the file
    dbms_lob.fileopen(src_file, file_readonly);
    -- Determine length
    lgh_file := dbms_lob.getlength(src_file);
    -- read the file
    dbms_lob.loadfromfile(dst_file, src_file, lgh_file);
    -- Update the blob field
    UPDATE temp1
    SET file_1 = dst_file
    WHERE name = pdname;
    commit;
    -- Close file
    dbms_lob.fileclose(src_file);
    END load_file;
    I'm also sending the version details of Forms Builder below.
    Forms [32 Bit] Version 6.0.8.18.3 (Production)
    Oracle9i Enterprise Edition Release 9.2.0.6.0 - 64bit Production
    With the Partitioning option
    JServer Release 9.2.0.6.0 - Production
    Oracle Toolkit Version 6.0.8.18.0 (Production)
    PL/SQL Version 8.0.6.3.0 (Production)
    Oracle Procedure Builder V6.0.8.17.0 Build #863 - Production
    PL/SQL Editor (c) WinMain Software (www.winmain.com), v1.0 (Production)
    Oracle Query Builder 6.0.7.1.0 - Production
    Oracle Virtual Graphics System Version 6.0.5.38.0 (Production)
    Oracle Tools GUI Utilities Version 6.0.5.32.0 (Production)
    Oracle Multimedia Version 6.0.8.18.1 (Production)
    Oracle Tools Integration Version 6.0.8.17.0 (Production)
    Oracle Tools Common Area Version 6.0.5.32.1
    Oracle CORE Version 4.0.6.0.0 - Production
    Please help me out in this regard as I have an urgent release this weekend.
    Cheers
    Sarma

    Thank you very much. This problem is now solved as I have used FORMS_DDL to execute the procedure from database and not from Forms. But could anyone of you tell me if we can have a link in Forms for BLOB object, where if there is a word document in the database BLOB object, by clicking on that link, that document should open in word. Similarly if there is an image file in the BLOB object, then clicking on that link in Forms should open it some Image processing software which that OS has. Is this really possible? Please let me know. If we update the contents of the document opened, they should get reflected in the database BLOB object. Is this really a HERCULIAN task?

  • Getting "ORA-12703" error in forms 10.1.2.3.0 and database 11.1.0.6.0

    Hello All,
    I am using forms 10g (10.1.2.3.0) version with database 11g (11.1.0.6.0).
    I did some modification in a package. That package is getting called in the forms. After doing modification (just add one if condition) in the package procedure (Not added parameter) I connected to the application and calling the form. I am getting the error message "ORA-12703". After that if I am just compile all the forms, one form is working fine. But in some other form it is not working properly. Still I am getting the error message "ORA-12703". I just put some debug message in the package and form, I compiled both form and package. At this time both are working fine. But if I am putting some debug message in the package only then it is not working. Getting the same error message.
    Does it a forms or database issue or I need to do some thing? Any suggestion welcome.
    Thanks
    SUN

    ORA-12703 this character set conversion is not supported
    Cause: An attempt was made to use the CONVERT function to convert between two character sets, and the requested conversion is not possible due to unavailability of one or both character sets.
    Action: Use character sets available on the system in the CONVERT function.
    What character set do you have on the database and what charset on the client side? Maybe SQL*Net issues the convert function when you use different charsets for both?

  • ORA-01460 and ORA-02063 errors in form built on a view

    We have built an apex form on a view against a remote database (via dblink).
    Running the page brings back data as desired.
    However, clicking on the "edit icon" to make updates results in:
    ORA-01460: unimplemented or unreasonable conversion requested ORA-02063: preceding line from my_dblink
    I have searched and cannot seem to locate a fix. Can anyone provide a solution or further steps to troubleshoot?
    Thanks in advance.

    Right now you will be able to base a portal form only on updatable views. Non updatable views are not supported.
    As a work around you can use QBE reports to query the data, without having the delete and update links.
    Regards,
    Sunil.
    null

  • Occasional ora-6502 using forms 6i and 10g

    Hi all.
    We have been experiencing some weird and unexpected ora-6502 errors in some of our forms 6i modules running against 10g (rel 1 or 2).
    Forms modules are correctly functioning and for some reason, one day an ora-6502 error suddenly pops up.
    Now the weirdest thing is that after you put some messages on the trigger, so you can track down where the error is coming from, it disappears.
    I know that this may sound hard to believe, but it has happened several times. All we do is put some message built in, recompile all, and the error is gone (for a while).
    So my questions are:
    - Is this a known issue beween forms 6i and 10g Db?.
    - Is there a patch on Metalink ( we use Forms [32 bits] Versión 6.0.8.26.0 (Producción))
    - A workaround?
    and most important
    - Have anyone been exposed to a similar situation?
    Regards, Luis ...!

    Now the weirdest thing is that after you put some messages on the trigger, so you can track down where the error is coming from, it disappears.Sounds like the form has not been "clean compiled" against the server on which it is running. Try a "Compile All", which causes all previously compiled program units to be compiled fresh.
    Or even better, clean out all the compiled code from your fmb before compiling the fmb on the server where it runs.
    See this topic:   Re: Why does this happen - find ';', replace with ';'?

  • OAS 4.0.8 PL/SQL Catridge exception ORA-6502 (Numeric or value error)

    Hello,
    Out product is using OAS 4.0.8.2 on UNIX running SOlaris. We are using Oracles Web Toolkit for application development and
    presentation. I am basically trying to fill up some HTML form fields and calling
    an HTTP post procedure in response
    to a user clicking a submit button.
    For some reason the PL/SQL cartridge throws an ORA-6502 error(Numeric or value error). Is there any restrictions to the
    string types that can be passed to an HTTP
    post procedure ??
    Any pointers would be greatly appreciated ?
    Thanks,
    Ricko
    null

    We have fixed the problem !!! :-DDD
    Thanks to all Oracle analysts who replied this issue.
    aLeX
    [email protected]

  • ORA-6502 Value or Numeric Error while connecting to Sql-Plus - URGENT

    Hello,
    I am getting ORA-6502 error, "Error accessing Package Dbms_application_info" everytime I connect to Sqlplus. I tried running catproc and catalog but still getting the same message. I dont get this message when I connect to SVRMGR. I am not able to perform export also due to this error. Can anybody help me please??
    Thanks,
    R. Magesh.

    Hello,
    I am getting ORA-6502 error, "Error accessing Package Dbms_application_info" everytime I connect to Sqlplus. I tried running catproc and catalog but still getting the same message. I dont get this message when I connect to SVRMGR. I am not able to perform export also due to this error. Can anybody help me please??
    Thanks,
    R. Magesh. Did you run catproc and catalog as SYS while the database was opened in RESTRICT mode? If not, then do that. Also, do SELECT * FROM dba_objects WHERE status='INVALID'; to see if there are other invalid objects that need to be compiled.

  • 6502 error

    A strange error..
    We get 6502 error in the before report trigger of a report.
    Closing the Reports background engine and re-running the report does not give the ORA-6502 error in the BEFORE REPORT trigger.
    Can some one tell me what could be the possible reason for this?
    The before report trigger deletes a particular table and re-inserts the result of a query inside the table.
    Around 10000 records are involved in the deletion and insertion.

    Hi Padhma Shree,
    Which version of Reports are you using? I see that this error ORA-6502 had been reported in some old versions of Reports. In one of the bugs for this error I found:
    In the example testcase given, the procedure has an out parameter of type char. Changing this to varchar2 resolved the >> problem.-------------
    Also, Metalink has some information on common causes of this error:
    commonly known issues, namely :-
    a) ORA-6502 PL/SQL: numeric or value error: character string buffer too small Easily generated if trying to assign a string of length X to a variable of type VARCHAR/VARCHAR2 that is less than X.
    b) ORA-6502 PL/SQL: numeric or value error: character to number conversion error Easily generated if trying to assign a non-numeric character to a variable of type NUMBER.
    Also see Note 139548.1 on Metalink
    http://metalink.oracle.com
    Hope it helps.
    Navneet.

  • ORA 03114 error

    ORA 03114 error 
    weblogic
    Forms 11g
    db 11g
    winserver 2008 64 bit

    I am sorry I didn't explain my problem Clearly
    My system   developed with  oracle forms 10g  & oracle database 10g    
    Using oracle application  server 10g with win server 2003 32 bit
    And It was works properly
    Now I upgrade my system  to oracle database 11g and weblogic  11g 
    with win server2008 64 bit
    and I tested it it is work no problems but som times when i run my application
    if give me this error
    frm-40735 unhandled exception ora-03114 
    and  ask for the username and password for database  when I give it is give the same error
    if  I  close my  Browser  and wait sometimes and try agine it is work
    why this error happen  ………………………….??????
    If anyone can help I would be grateful to him .
    Thanks

  • Ora -20001 error coming while updating from a tabular form

    Hi
    I have a tabular form , which updates a table in the database.
    Whenever I update the record first time I getting an error as
    Error in MRU internal routine ORA-20001.Error in MRU:row=1,
    ORA-1403 no_data_found, update abc.sale_forcast_temp set "PK_ID"=:b1,"W27"=:b2
    Error unable to update process
    But when I press Ok return to the form and then again try to update , records gets successfully updated
    Regards
    Shashi

    Kamal,
    This will be the pseudocode.
    Procedure A()
    select * from EMP bulk collect into records_array; --Of type RECORD_ARRAY
    batch_count = (records_array.length) / batch_size;
    --batch_size is say 5000 rows and batch_count is the number of batches  
    for i in 1..(batch_count+1)
    B( records_array);
    C();
    commit;
    Procedure B(records_array in RECORD_ARRAY )
    INSERT /*+PARALLEL(EMP_DUMMY, 2) */
    INTO TABLE EMP_DUMMY
    SELECT * from TABLE(CAST(records_array as RECORD_ARRAY) ;
    Procedure C()
    Other operations which include reads on the EMP_DUMMY table;
    This is the top view of how it looks like. Actually the Select statement for the insert statement is very complex and I do a join on the records that are being passed in by casting it into a table. This query is taking about 40 minutes for 10,000 rows in the records_array. I need to parellelise this query because each row of the records_array yields a different row for the EMP_DUMMY table.
    I hope that I made it clear for you.
    Can you also tell me if procedure C in which I shall be doing a read on the EMP_DUMMY table, has any affect of the parallel insert
    Thanks for your help.

  • ORA-20001 error when creating Tabular Form or Form and Report

    Whenever I try and add a Tabular Form or Form and Report to my application i am getting the following error at the end of the Wizard.
    ORA-20001: Unable to create updateable report. ORA-20001: Error creating shortcut id="" ORA-00001: unique constraint (APEX_030200.WWV_FLOW_SHORTCUT_IDX1) violatedIt's not a problem I have seen when building other apps and clearly I have managed to corrupt this application somehow.
    I have loaded the problem onto apex.oracle.com for those that have access. The application number is 20325.
    Any help would be very much appreciated.
    Cheers Shunt

    Thanks! Never thought of that.
    --Andy                                                                                                                                                                                                                       

  • ORA-04062 error when running forms with different users

    ORA-04062 error when running forms with different users
    I have a form that has a block that should display some data from another users tables. (The other user's name is dynamic, it's selected from a list box)
    I wrote a stored procedure to get the data from other user's tables.
    When I compile the form and run it with the same user I compiled, it works without any error. But when I run the compiled form with another user I get the ORA-04062 (signature of procedure has been changed) error.
    I tried setting REMOTE_DEPENDENCIES_MODE to SIGNATURE in init.ora but it didn't help.
    My Forms version is 6i with Patch 15.
    Database version is 9.
    Here is my stored procedure:
    TYPE Scenario_Tab IS TABLE OF NUMBER(34) INDEX BY BINARY INTEGER;
    TYPE Open_Curs IS REF CURSOR;
    PROCEDURE Get_Scenarios(User_Name IN VARCHAR2, Scen_Table OUT Scenario_Tab) IS
    Curs Open_Curs;
    i NUMBER;
    BEGIN
    OPEN Curs FOR
    'SELECT Seq_No FROM '|| User_Name ||'.scenario';
    i := 1;
    LOOP
    FETCH Curs INTO Scen_Table(i);
    EXIT WHEN Curs%NOTFOUND;
    i := i + 1;
    END LOOP;
    END Get_Senarios;
    I would be happy to solve this problem. It's really important.
    Maybe somebody can tell me another way to do what I want to do. (getting a list of values from another users tables)

    I think it should be a better solution to create a package,
    and put your own TYPES and procedure into it.
    CREATE OR REPLACE PACKAGE PKG_XXX IS
    TYPE TYP_TAB_CHAR IS TABLE OF .... ;
    PROCEDURE P_XX ( Var1 IN VARCHAR2, var2 IN OUT TYP_TAB_CHAR );
    END ;
    Then in your Form :
    Declare
    var PKG_XXX.TYP_TAB_CHAR ;
    Begin
    PKG_XXX.P_XX( 'user_name', var ) ;
    End ;

  • ORA-6502: value or numeric error

    Hi all,
    First off all, I am not very good in PL/SQL so please bear with me:
    I have a trigger on a table on after update event. Sample code of the trigger:
    create or replace trigger t1
    on table1
    after update of col1
    for each row
    begin
    for inx in varray1.first .. varray1.last
    loop
    do something;
    end loop;
    end;
    This trigger throws an error saying "ORA-6502: value or numeric error" if I am trying to update anything into that table but the same trigger works fine when I remove "FOR EACH ROW" statement from the trigger. There is absolutely no change except removal of FOR EACH ROW clause.
    I am unable to figure out why. Do anybody?
    Thanks in adnvace.

    Thanks a lot to all of you for taking time to answer my question.
    Again, let me rephrase my question in one single line:
    bold Why does the trigger without FOR EACH ROW works and doesnt work with FOR EACH ROW?
    What I am guessing is , it might be because of the array what we are using inside the trigger. But its just a guess. One more thing to note here, same code with and without FOR EACH ROW works when I am not using any arrays inside the trigger and thats what is the question. WHY cant same code works when used with FOR EACH ROW when arrays are used inside the trigger.
    I am not requesting anybody to write code for me or rectify the problems in the code. All I am interested in is the reason of trigger not working with FOR EACH ROW when arrays are used inside the trigger.
    Thanks

  • ORA-6502, "PL/SQL numeric or value error"

    I am having the [ORA-6502, "PL/SQL numeric or value error"] error when I call this procedure in PRE-INSERT trigger.
    CREATE OR REPLACE PROCEDURE L_CHECK_BAL_AMOUNT(P_TXN_CODE IN VARCHAR2,
    P_ABAL_MAIN_ACNT_CODE IN VARCHAR2,
    P_TD_DOC_DRCR_FLAG IN VARCHAR2,
    P_TXN_AMOUNT IN NUMBER) IS
    CURSOR C1 IS
    SELECT TRAN_CASH_BANK_FLAG
    FROM FM_TRANSACTION
    WHERE TRAN_CODE = P_TXN_CODE;
    CURSOR C2 IS
    SELECT nvl(SUM(NVL(ABAL_LC_MTD_DR,0)) - SUM(NVL(ABAL_LC_MTD_CR,0)) + SUM(NVL(ABAL_LC_UNP_DR,0)) - SUM(NVL(ABAL_LC_UNP_CR,0)),0)
    FROM FS_CUR_ACNT_BAL
    WHERE ABAL_MAIN_ACNT_CODE = P_ABAL_MAIN_ACNT_CODE
    AND EXISTS (SELECT 'X' FROM FM_MAIN_ACCOUNT
    WHERE MAIN_ACNT_CATG IN ('CA','BA')
    AND MAIN_ACNT_CODE = ABAL_MAIN_ACNT_CODE)
    GROUP BY ABAL_MAIN_ACNT_CODE;
    M_BAL_AMOUNT NUMBER(20);
    M_CASH_BANK_FLAG OW_FS.FLAG%TYPE;
    BEGIN
    IF P_ABAL_MAIN_ACNT_CODE IS NOT NULL THEN
    insert into temp values('01',P_TXN_CODE);
    insert into temp values('02',P_ABAL_MAIN_ACNT_CODE);
    insert into temp values('03',P_TD_DOC_DRCR_FLAG);
    insert into temp values('04',P_TXN_AMOUNT);
    commit;
    IF NVL(P_TD_DOC_DRCR_FLAG,'X') = 'C' THEN
    insert into temp values('3',P_TD_DOC_DRCR_FLAG);
    commit;
    IF C1%ISOPEN THEN
    CLOSE C1;
    END IF;
    OPEN C1;
    FETCH C1 INTO M_BAL_AMOUNT; --------ERROR HERE-----------
    IF C1%FOUND THEN
    insert into temp values('2','c1 found');
    commit;
    END IF;
    CLOSE C1;
    END IF;
    END IF;
    END;
    can anybody tell me why the error is coming...?
    The value for the CURSOR C2 is (-1335142)
    Thanks

    yes correct. the procedure would have been written like this.(see cursor C1 and C2)
    CREATE OR REPLACE PROCEDURE L_CHECK_BAL_AMOUNT(P_TXN_CODE IN VARCHAR2,
    P_ABAL_MAIN_ACNT_CODE IN VARCHAR2,
    P_TD_DOC_DRCR_FLAG IN VARCHAR2,
    P_TXN_AMOUNT IN NUMBER) IS
    CURSOR C2 IS
    SELECT TRAN_CASH_BANK_FLAG
    FROM FM_TRANSACTION
    WHERE TRAN_CODE = P_TXN_CODE;
    CURSOR C1 IS
    SELECT nvl(SUM(NVL(ABAL_LC_MTD_DR,0)) - SUM(NVL(ABAL_LC_MTD_CR,0)) + SUM(NVL(ABAL_LC_UNP_DR,0)) - SUM(NVL(ABAL_LC_UNP_CR,0)),0)
    FROM FS_CUR_ACNT_BAL
    WHERE ABAL_MAIN_ACNT_CODE = P_ABAL_MAIN_ACNT_CODE
    AND EXISTS (SELECT 'X' FROM FM_MAIN_ACCOUNT
    WHERE MAIN_ACNT_CATG IN ('CA','BA')
    AND MAIN_ACNT_CODE = ABAL_MAIN_ACNT_CODE)
    GROUP BY ABAL_MAIN_ACNT_CODE;
    M_BAL_AMOUNT NUMBER(20);
    M_CASH_BANK_FLAG OW_FS.FLAG%TYPE;
    BEGIN
    IF P_ABAL_MAIN_ACNT_CODE IS NOT NULL THEN
    insert into temp values('01',P_TXN_CODE);
    insert into temp values('02',P_ABAL_MAIN_ACNT_CODE);
    insert into temp values('03',P_TD_DOC_DRCR_FLAG);
    insert into temp values('04',P_TXN_AMOUNT);
    commit;
    IF NVL(P_TD_DOC_DRCR_FLAG,'X') = 'C' THEN
    insert into temp values('3',P_TD_DOC_DRCR_FLAG);
    commit;
    IF C1%ISOPEN THEN
    CLOSE C1;
    END IF;
    OPEN C1;
    FETCH C1 INTO M_BAL_AMOUNT; --------ERROR HERE-----------
    IF C1%FOUND THEN
    insert into temp values('2','c1 found');
    commit;
    END IF;
    CLOSE C1;
    END IF;
    END IF;
    END;
    /

Maybe you are looking for