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.

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

  • Vendor Code 6502 error for SQL pane of existing View

    When I am in the SQL pane of an existing valid view, it hangs saying "Generating DDL....". When I cancel, I get the vendor code 6502 error - the View is a simple select from a Materialized View. We have other Views that select from the same MV, but have no problems showing the View source in the SQL pane. . ( I can see the view source with no problems using Toad). Any ideas ?
    Thanks,
    Anne

    Hi rkonno!
    The ORA-904 tells you that PROJECT_PROGRESS is an invalid identifier. Is this the correct columnname?
    yours sincerely

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

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

  • Error# -6502

    Hi,
    Is there any max size of the ref cursor?
    Consider a scenerio:
    I have a proc where i am building a dynamic query with SELECT clause. If am fetching n columns, its working fine. But the moment i make n+1, i am getting 6502 error.
    Any idea on this?

    No there is no maximum fetch size.
    Everything I say from now is just a guess, because I don't know your query and your data:
    Probably you compare number data to character data in you sql.
    Code could be for example
    where
    column > 10
    ...When column is a varchar column that usualy contains numeric data the rows can be fetched.
    There will be an implicit number conversion of the data in the column.
    But there may occur an 0ra-06502 if column contains alphanumeric characters, because number conversion will fail.
    Edited by: hm on 25.01.2011 04:46

  • 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 ';'?

  • ERROR WHILE RUNNING REPORT THROUGH FORMS.....!

    hi all,
    ive designed one form in Forms 9i...I'm tryin to run report through a Push button .....report is running well in paper layout through report builder 9i...The problem I'm facing is dat when i pressed button it is giving me error initially as FRM-41214 cannot run report and after that FRM-40735 When button pressed unhandled exception ora-06502.....What could go wrong??... Ive started OC4J instance ....created report object in object nevigator as well and defined basic properties for diff.parameters HTMLCSS,CACHE..etc.,mentioned report path in complete i.e.c:\reports\genbill.rdf ...Can anybody help me out ??? Thnx.!
    -----------------------CODE ON BUTTON----------------------------------
    DECLARE
    repid REPORT_OBJECT;
    v_rep VARCHAR2(100);
    rep_status VARCHAR2(20);
    BEGIN
    repid := FIND_REPORT_OBJECT('REPORT5');
    v_rep := RUN_REPORT_OBJECT(repid);
    rep_status := REPORT_OBJECT_STATUS(v_rep);
    WHILE rep_status in ('RUNNING','OPENING_REPORT','ENQUEUED')
    LOOP
    rep_status := report_object_status(v_rep);
    END LOOP;
    IF rep_status = 'FINISHED' THEN
    /*Display report in the browser*/
    WEB.SHOW_DOCUMENT('<HOSTNAME>:8889/reports/rwservlet/getjobid'||
    substr(v_rep,instr(v_rep,'_',-1)+1)||'?'||'server=myrepserver','_blank');
    ELSE
    message('Error when running report');
    END IF;
    PAUSE;
    END;

    When a report terminates with an error, REPORT_OBJECT_STATUS returns the value "TERMINATED_WITH_ERROR", which is 21 bytes of data, but rep_status is defined as 20 bytes. The 6502 error is due to the data not fitting the variable.
    I recommend wrapping the REPORT_OBJECT_STATUS function with a SUBSTR that limits the data returned to 20 bytes, which will ensure the results fit.
    For example:
    rep_status := SUBSTR(REPORT_OBJECT_STATUS(v_rep), 1, 20);

  • Error while running Oracle 9i forms

    Dear
    First of all, let me know that Oracle 9i Forms is only for web application or we may use it for client server envirnoment.
    I installed Oracle 9i Database & Oracle 9i Forms on Windows XP. Connection between Database & forms works properly.
    But When I click to run a form, I'm receiving this error.
    FRM - 10142 The HTTP Listener is not running on Amfah (my Computer Name) at port 8888. Please start the listener or check your runtime preferences.
    Please Help me !!
    Waiting for an early reply

    When a report terminates with an error, REPORT_OBJECT_STATUS returns the value "TERMINATED_WITH_ERROR", which is 21 bytes of data, but rep_status is defined as 20 bytes. The 6502 error is due to the data not fitting the variable.
    I recommend wrapping the REPORT_OBJECT_STATUS function with a SUBSTR that limits the data returned to 20 bytes, which will ensure the results fit.
    For example:
    rep_status := SUBSTR(REPORT_OBJECT_STATUS(v_rep), 1, 20);

  • ORA-06502: PL/SQL: numeric or value error: character string buffer too small

    I am encountering this 6502 error when running a report in Crystal Reports XI. I am connecting to Oracle Server. All the documentation I've read has said to update the UserSessionFormat property... how do I do that?
    Thanks in advance!

    Hi Grant,
    UserSessionFormat is a property in the Oracle OleDB driver.
    Scroll to the Solution part of tis article.
    http://blogs.msdn.com/b/dataaccesstechnologies/archive/2012/01/20/every-bug-is-a-microsoft-bug-until-proven-otherwise.aspx
    Good luck,
    Brian

  • ORA-0605: PL/SQL: numeric or value error: character string buffer too small

    I get this error on two function activities in a workflow of mine. I don't even get into the pl/sql procedure call.
    The exact error is:
    Error Name -6502
    Error Message: ORA-0605: PL/SQL: numeric or value error: character string buffer too small
    Error Stack: @#@Wf_Engine_Util.Function_Call(MY_PACKAGE.MY_PROC, ITEM_TYPE, ITEM_KEY, 6519, RUN)
    If I retry the step (expedite -> retry) it runs until it hits the second function which does the same thing (there is a function in between the two functions that do not have any issues). I then have to retry that step as well. Any ideas?
    This seems similar to the following issue that does not have a resolution posted:
    ORA-06502 PL/SQL numeric or value error in wf process
    I've tried commenting out the bodies of the procedures called but that does not help (again -- im not getting into the bodies but im not sure what else it could be).
    Any ideas or suggestions?

    Hi,
    Does this happen on every instance of the process, or just a few?
    Are these activities in the middle, or right at the start of the flow?
    Are any other activities being performed correctly first? If so, are these standard or bespoke?
    My inclination would be that there is some kind of variable that is being populated (or concatenated onto), which is growing too big. When the process errors, it gets cleared, which is why an expedite would move the activity on.
    Matt
    WorkflowFAQ.com - the ONLY independent resource for Oracle Workflow development
    Alpha review chapters from my book "Developing With Oracle Workflow" are available via my website http://www.workflowfaq.com
    Have you read the blog at http://thoughts.workflowfaq.com ?
    WorkflowFAQ support forum: http://forum.workflowfaq.com

  • Error in concurrent

    hi,
    i submit conncurrent request (gather schema statiscs)it runs 12 hours and shown status completed -error.in log file it is showing the error like this.........
    ora-0000:normal,sussful completation
    ERROR #1:ERROR:while gather schema stats:
    object_name=osm.as_accesses_all_all***ora-01426:numeric overflow*****
    Please suggest me.
    os-hpunix
    db-10g
    apps-11.5.10.2
    RAC-2node.
    Regards,
    ram

    object_name=osm.as_accesses_all_all***ora-01426:numeric overflow*****Refer MOS note:
    How to Determine the Cause of ORA-6502 Errors [ID 139548.1]
    Master Note for Diagnosing ORA-06502 Error [ID 1137237.1]
    thanks

  • Procedure giving error : numeric or value error:

    I have the following procedure where i am trying to update the duplicate rows so that in my table all the rows will be unique:
    create or replace Procedure p1 is
    ccust XXWFS_CUSTOMER_EXT.CUST_EXT_ID%type;
    cparty XXWFS_CUSTOMER_EXT.PARTY_ID%type;
    cursor c1 is select CUST_EXT_ID,PARTY_ID from XXWFS_CUSTOMER_EXT t2 where t2.rowid > (SELECT min(t1.rowid)
    FROM XXWFS_CUSTOMER_EXT t1
    WHERE t1.PARTY_ID=t2.PARTY_ID) for update;
    begin
    open c1;
    loop
    fetch c1 into ccust,cparty;
    EXIT WHEN c1%notfound;
    update XXWFS_CUSTOMER_EXT set party_id= 1 where current of c1;
    dbms_output.put_line('cust id is ' + ccust);
    end loop;
    close c1;
    commit;
    EXCEPTION
    WHEN OTHERS THEN
    raise_application_error(-20001,'An error was encountered - '||SQLCODE||' -ERROR- '||SQLERRM);
    END;
    I am getting the following error when i execute the procedure:
    Error report:
    ORA-20001: An error was encountered - -6502 -ERROR- ORA-06502: PL/SQL: numeric or value error: character to number conversion error
    ORA-06512: at "TP.P1", line 20
    ORA-06512: at line 1
    both of my cols are number... still i dont get why this error is coming
    CUST_EXT_ID NOT NULL NUMBER
    PARTY_ID NUMBER
    Could anyone tell me whether i am doing anything wrong in this procedure
    Thanks,

    user10873676 wrote:
    I am getting the following error when i execute the procedure:
    Error report:
    ORA-20001: An error was encountered - -6502 -ERROR- ORA-06502: PL/SQL: numeric or value error: character to number conversion error
    ORA-06512: at "TP.P1", line 20
    ORA-06512: at line 1
    both of my cols are number... still i dont get why this error is coming
    And what about this statement?
    dbms_output.put_line('cust id is ' + ccust);You are adding a literal with ccust.
    If you want to concatenate the output use:
    dbms_output.put_line('cust id is ' || ccust);After so many post you should know how to format your code.
    When you put some code or output please enclose it between two lines starting with {noformat}{noformat}
    i.e.:
    {noformat}{noformat}
    SELECT ...
    {noformat}{noformat}
    Also is a good practice to mark your questions as answered when the answers are satisfying your questions. It looks you usually forget about it:     Handle:      user10873676
    Status Level:      Newbie (10)
    Registered:      Jan 15, 2011
    Total Posts:      347
    Total Questions:      185 (134 unresolved)
    Name      user10873676
    I can't believe you have so many questions unresolved.
    Regards.
    Al
    Edited by: Alberto Faenza on Mar 15, 2013 10:14 AM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Invalid function body condition: ORA-06502: PL/SQL: numeric or value error:

    I'm trying to customize my link column on an interactive report to branch to another page in my application based on a pl/sql call. My condition type for the link column is pl/sql function body returning a boolean. I'm calling a packaged function that returns a boolean but receive the following error:
    Invalid function body condition: ORA-06502: PL/SQL: numeric or value error: character string buffer too small
    This is my code:
    return files_util.list_files('test','test');
    I've tried running the same code in sqlplus and it works fine. Any help would be appreciated.
    Thanks,
    Rob

    It turns out I had multiple issues. I thought the code I was running for the link column would be executed and let me branch to another page to view the results of my pl/sql code. It appears that the pl/sql code for the link column only controls whether the link is displayed or not. The reason for the ora-6502 was because a variable in my pl/sql function was not large enough to hold a value based on the userid signing onto the application. I'm using database authentication so I thought that the userid in apex would be my database userid which is only 4 characters. The userid actually used is apex_public_user which caused by ora-6502 error.

Maybe you are looking for

  • Status of Wiki and Forum updates/migration/changes

    Hey all, I've spent about two hours e-mailing and PMing various people interested in helping out with various wiki and forum tasks. This thread is an announcement of the current status, with the intent of getting everyone up to date. Its also an invi

  • ODBC - SQLException

    Hi, I'm having a problem with an ODBC connection that tells: "SQLException:[Microsoft][ODBC Driver Manager] Error in function sequence". I do'nt have idea on what can be the mistake. Here is my code: public class LeerFila extends JFrame { MSConnectio

  • Sharing folder icon in system prefs changed to light switch????

    I just noticed that the sharing icon in my system prefs is an icon of a light switch and part of the surrounding graphics are cut off - what's happened? Thanks in advance. FE

  • Display messages from PL/SQL?

    I am running some PL/SQL code from Application Builder > Page Definition > Processes After Submit > Source. Can the PL/SQL code be written to display messages (like the Messages attribute does)? I tried using htp.prn, but couldn't make it display. Ho

  • Multiple editors - one finalcut project

    I read in the finalcutserver product overview; http://images.apple.com/finalcutserver/docs/FinalCut_Server_ProductOverview.pdf this: "Working with multiple Final Cut Pro editors Multiple Final Cut Pro editors can work on different sections of a film or