Numeric or value error in updatable report

report error:
ORA-06502: PL/SQL: numeric or value error
This is the error I get when I run my updatable report.
Here the query:
select
IDS,
CPY_IDS,
PU_IDS,
START_DT,
END_DT,
IDS AUDIT_BUT,
IDS EDIT_BUT,
CREATED_BY,
CREATION_DATE,
LAST_UPDATED_BY,
LAST_UPDATE_DATE
from GOM_PROD_UNIT_COMPANIES
where CPY_IDS = :P47_IDS
for column cpy_ids i use a select list (named lov) with next query:
select nm d, ids r
from gom_prod_units
order by 1;
When I run the page the error is shown.
When I use display as text (based on lov, does not save state), it does work...
The application was exported from dev to test, and in dev it did work without any problem...

This is the output in toad:
select
a.IDS,
a.CPY_IDS,
a.PU_IDS,
a.START_DT,
a.END_DT,
a.IDS AUDIT_BUT,
a.IDS EDIT_BUT,
a.CREATED_BY,
a.CREATION_DATE,
a.LAST_UPDATED_BY,
a.LAST_UPDATE_DATE
from GOM_PROD_UNIT_COMPANIES a
where a.CPY_IDS = 4;
IDS;CPY_IDS;PU_IDS;START_DT;END_DT;AUDIT_BUT;EDIT_BUT;CREATED_BY;CREATION_DATE;LAST_UPDATED_BY;LAST_UPDATE_DATE
163;4;16;9/29/2004;;163;163;GOM3;10/13/2008 11:00:37 AM;GOM3;11/3/2008 4:51:50 PM
166;4;537;10/15/2004;;166;166;GOM3;10/13/2008 11:00:37 AM;GOM3;11/3/2008 4:51:50 PM
340;4;13;10/13/2008;;340;340;GOM3;10/13/2008 11:00:37 AM;GOM3;11/3/2008 4:51:51 PM
372;4;14;10/13/2008;;372;372;GOM3;10/13/2008 11:00:37 AM;GOM3;11/3/2008 4:51:51 PM
414;4;15;10/13/2008;;414;414;GOM3;10/13/2008 11:00:37 AM;GOM3;11/3/2008 4:51:51 PM
445;4;12;10/15/2007;;445;445;GOM3;10/13/2008 11:00:37 AM;GOM3;11/3/2008 4:51:51 PM
446;4;8;10/15/2007;;446;446;GOM3;10/13/2008 11:00:37 AM;GOM3;11/3/2008 4:51:51 PM
482;4;9;5/21/2003;;482;482;GOM3;10/13/2008 11:00:37 AM;GOM3;11/3/2008 4:51:51 PM
493;4;7;10/13/2008;;493;493;GOM3;10/13/2008 11:00:37 AM;GOM3;11/3/2008 4:51:51 PM
498;4;11;10/13/2008;;498;498;GOM3;10/13/2008 11:00:37 AM;GOM3;11/3/2008 4:51:51 PM
499;4;10;10/13/2008;;499;499;GOM3;10/13/2008 11:00:37 AM;GOM3;11/3/2008 4:51:51 PM
549;4;485;5/21/2003;;549;549;GOM3;10/13/2008 11:00:37 AM;GOM3;11/3/2008 4:51:51 PM

Similar Messages

  • ORA-06502: PL/SQL: numeric or value error in a report APEX 4.0.2.00.07

    Greetings,
    I had a report created in APEX 3 that was working fine. Now APEX was upgraded to 4.0.2.00.07, now I am getting the 06502 error. I have not made any changes to the database or any program units or the report itself. Is this an issue known in 4.0.2.00.07 ?? Is there a work around?
    Thanks
    Vatsa

    check the DB version compatibility with apex 4 or your DB version to apex 4.0 support for upgrade!
    Oracle Application Express Installation Requirements for 4.0

  • Report error: ORA-06502: PL/SQL: numeric or value error: character string b

    I have a form which uses a customer form/report, drop downs etc..
    the debug shows it running this statement
    ...Execute Statement: begin begin SELECT distinct initcap(RTRIM (LTRIM (e.surname, ' *0123456789-/:.?,'), ' *0123456789-/:.?,') || ', ' || RTRIM (LTRIM (e.first_name, ' *0123456789-/:.?,'), ' *0123456789-/:.?,' )) empname, e.ID bulk collect into wwv_flow_utilities.g_display,wwv_flow_utilities.g_value FROM dms.dms_employees@dmsprd e, dms.dms_employee_contracts@dmsprd ec WHERE e.ID = ec.emp_id and e.surname like '%%' AND :p75_date BETWEEN ec.start_date AND NVL (ec.end_date, :p75_date) AND e.brh_id = 3654 ORDER BY 1; end; end;
    Then says
    "report error: ORA-06502: PL/SQL: numeric or value error: character string buffer too small"
    Any Ideas?
    Thanks
    Dean

    Denes Kubicek wrote:
    A select list is limited in size. I am not sure what the limit is but that is definitelly the case.The maximum size for the HTML generated for a select list is 32K.
    86 options sounds on the low side to be hitting that limit, but there are other concerns to this as well. Scrolling through hundreds/thousands of options in a select list is a pain for users, and huge select lists produce bloated pages that impact load times and network bandwidth. That list of around 200 countries you find on many sites is about the sensible maximum length for a select list.
    You should use popups.Indeed.

  • Report error:ORA-06502: PL/SQL: numeric or value error: character to number

    The oracle application express environment is created by installing the HTTP Server on the windows server and the application express 3.2.1 components on the 11.1.0.7 oracle database on UNIX. The installation is successfully and have not seen any issues during the installation. After completing all the steps, when tried to login and click the application builder or workspace components, I see the error message
    report error:ORA-06502: PL/SQL: numeric or value error: character to number.
    This error message is seen on most of the pages when trying to accessed and not able to understand the reasons behind it. Its a brand new environment setup and not even presented to developers to test it.
    Below error message is always seen when trying to access most of the components like application builder, schema comparison and some other tabs. Please advice
    report error:
    ORA-06502: PL/SQL: numeric or value error: character to number conversion error
    Edited by: user589320 on Jun 9, 2011 5:17 PM

    I think its better you use APEX 4.x version ratherthan using old version.
    You will get more features and some bug fixes and also it's easy for you to get some help when you need.
    * If this answer is helpfull or correct then please mark it and grant the points.

  • Report error:ORA-06502: PL/SQL: numeric or value error: character string bu

    We face the above error in HTMLDB (APEX) application Ver 3.1.0. This occurs when we try to display more number of rows/records in drop-down list (LOV in tabular forms). We are able to display 200 records in LOV. When the list of records exceeds 230, we face the below error
    report error:ORA-06502: PL/SQL: numeric or value error: character string buffer too small
    the values listed in LOV are from tables (one of the columns in table)
    Could anyone give us a solution?

    Hi
    As you are using a tabular form, you could actually do the following:
    1 - In the tabular form column's attributes, set the following:
    Display as: Select List (query based on LOV)
    Display extra values: Yes
    List of values definition: SELECT null d, null r FROM DUAL
    2 - Add a new page item and set it to generate your select list
    3 - Create an HTML region with no template and use the following for its source:
    <script type="text/javascript">
    function loadList(c, l)
    var s = document.getElementsByName(c);
    var lItem = document.getElementById(l);
    var lLength = lItem.options.length;
    var k;
    var j;
    var x = lItem.innerHTML;
    var v;
    var o;
    var z;
    for (k = 0; k < s.length; k++)
    z = s[k];
    v = z.value;
    z.options.length = 0;
    for (j = 0; j < lLength; j++)
    o = new Option()
    o.value = lItem[j].value;
    o.text = lItem[j].text;
    z.options[j] = o;
    z.value = v;
    if (z.selectedIndex == -1)
    z.selectedIndex = 0;
    loadList("f05", "P1_MGR");
    </script>
    (Change "f05" and "P1_MGR" as appropriate to your column and your new page item respectively)
    Now, when you load the page, the select list contains a null entry plus the entry already on the database. The javascript kicks in automatically, loops through every entry in the "f05" column, copies the existing value, replaces the select list with the new page item version and sets its value to the copied value.
    Your new page item could be in a DIV tag that has a style of "display:none" to hide it from view.
    Andy

  • Report error: ORA-06502: PL/SQL: numeric or value error: NULL index table k

    Hi everybody,
    I have two Distinct Databases on two distinct servers. (Oracle Ent. Release 10.2.0.3.0 on AIX 5.3). After I install the latest patch last week, One of the APEX installation has some problems on Home>Application Builder Page. The error message is very random and
    report error:
    ORA-06502: PL/SQL: numeric or value error: NULL index table key value.
    When i change the view (details to icons), everything goes to normal. This error message is reflected some of the pages (report region) of some of my applications randomly. When it appears in a report region, i deselect the order method of the region, the result is normal.
    But the other APEX application on the other instance has no problem. It is a bug? or Should i re-install the APEX instance?
    Thank you for your interest?
    Gökhan ÇATALKAYA

    No, but we have a reproducible test case now so we're working on it. See ORA-06502: PL/SQL: numeric or value error: NULL index table key value
    Scott

  • SQL Report query ORA-06502: PL/SQL: numeric or value error: character strin

    Hello,
    I have saved below query in the sql scripts, which executes good under SQL Developer,
    select     "RVV"."RLNUM" as "RLNUM",
         "GVREB"."RLNUM" as "RLNUM",
         "TVV"."RLNUM" as "RLNUM_1",
         "Regulation"."CODE" as "CODE",
         "Regulation"."NAAM" as "NAAM",
         "GVREB"."BRONCODE" as "BRONCODE",
         sum(RVV.RVV_MODULATIE) as "RVV_MODULATIE",
         sum(RVV.RVV_EXTRA_MODUL) as "RVV_EXTRA_MODUL",
         sum(GVREB.PMB) as "PMB",
         sum(GVREB.VVM) as "VVM",
         sum(GVREB.VVEM) as "VVEM",
         "GVREB"."STATUS" as "STATUS",
         sum(TVV.VVM) as "VVM",
         sum(TVV.VVEM) as "VVEM",
         "Regulation"."version" as "version",
         "TVV"."Appyear" as "Appyear"
    from     "GVREB" "GVREB",
         "RVV" "RVV",
         "TVV" "TVV",
         "Regulation" "Regulation"
    where      "RVV"."RLNUM" = :P17_Relationnum
    and     "GVREB"."RLNUM" = "RVV"."RLNUM"
    and     "TVV"."RLNUM" = "GVREB"."RLNUM"
    and     "GVREB"."CODE" = "TVV"."RegulationSCODE"
    and     "Regulation"."CODE" = "GVREB"."CODE"
    and     "GVREB"."STATUS" = 'VWT'
    and     "TVV"."Appyear" = 2009
    group by RVV.RLNUM, GVREB.RLNUM, TVV.RLNUM, Regulation.CODE, Regulation.NAAM, GVREB.BRONCODE, GVREB.STATUS, Regulation.version, TVV.Appyear
    order by Regulation.version ASC
    however when tried to put in the region -> query builder it gives below error,
    italics ORA-06502: PL/SQL: numeric or value error: character string buffer too small
    Return to application.+italics+
    Kindly suggest me work around this error.
    Cheers,
    G1R15|-|
    Edited by: G on Jul 11, 2010 10:03 PM

    Hi,
    I was able to resolve the issue. I changed it to = To_Number while assigning.
    and for other issue, earlier I choose "Select List" for drop down. I changed this to "Select list with Submit". for the issue of "depending on this values in the report should get change"
    Thanks for your support,
    Girish

  • Ora-06502 pl/sql numeric or value error in Report Query in oracle apex

    Hello all,
    I need your help...
    ORA-06502: PL/SQL: numeric or value error: character string buffer too small
    I am using bi publisher to generate PDF reports in oracle apex.
    We were using APEX 4.0 and migrated to 4.2 just a week ago.
    Now we have apex 4.2.
    When I try to Create report query,
    Shared Components >> Report Queries then create.
    and test a report in a create wizard I am getting a error "ORA-06502: PL/SQL: numeric or value error: character string buffer too small".
    I have also applied a patch "16760897".
    This issue is because of number of columns in a query is more then 26.
    If I run a report with 26 or less number of columns then the is working fine, otherwise getting this error.
    My before migration report queries working perfectly even now, but not new queries.
    This issue is also in apex.oracle.com.
    You can see
    Not working  - http://apex.oracle.com/pls/apex/f?p=619:4
    Working - http://apex.oracle.com/pls/apex/f?p=619:2:
    Please give a solution.
    Thanks you.

    check the DB version compatibility with apex 4 or your DB version to apex 4.0 support for upgrade!
    Oracle Application Express Installation Requirements for 4.0

  • ORA-06502 : PL/SQL: numeric or value error in Report formattrigger

    Hi guys,
    I have a Format Trigger code to not display any amount less than 1.00 at a group frame level and outside of the group frame is the Grand Total in my report but I am getting
    " REP-1401: ' r_headerformattrigger ' : Fatal PL/SQL error occurred.
    "ORA-06502 : PL/SQL: numeric or value error"
    every time I try to run it.
    function R_headerFormatTrigger return boolean is
    begin
    if :c_header_amount_accrual1_disp > 0.99 then
    return (TRUE);
    else
    return (FALSE);     
    end if;
    end;
    Does any one have any idea as why?

    read this code
    Cause: An arithmetic, numeric, string, conversion, or constraint error occurred. For example, this error occurs if an attempt is made to assign the value NULL to a variable declared NOT NULL, or if an attempt is made to assign an integer larger than 88 to a variable declared NUMBER(2).
    Action: Change the data, how it is manipulated, or how it is declared so that values do not violate constraints
    Rizwan

  • Report error: numeric or value error: character string buffer too small.

    Full Details:
    report error:
    ORA-20001: Error fetching column value: ORA-06502: PL/SQL: numeric or value error: character string buffer too small.
    MS Access runs this query but when I try to call a 'List of Values' in APEX that is in excess of 800 the error above displays. If I use a 'Pop Up' it will work but splits the list at 500. This is annoying and slower as I would like to be able to display all 850+ items in a named list of values. How do I increase the buffer size?
    Kind Regards,
    Steve

    Steve,
    Could you please post the query you're using? You're most like hitting one of two possible varchar2 limitations. If you're calling the apex_item API in your SQL query to render the select list, then you're limited to 8000 characters, this your option values and HTML code used to render this. In this case using the "XL" versions of the APIs might help, e.g. select_list_from_query_xl, because those return CLOBs. If you're already using those or if you're using the built-in display type "select list", then you could potentially hit the 32k character limit of varchar2 values in PL/SQL. In that case the best alternative is using a popup LOV instead.
    Regards,
    Marc

  • Error in updatable report

    Hi All,
    I need to add validation to updatable report.
    As the report doesnot have items, I am using collection package.
    eg:
    select
    htmldb_item.select_list_from_query(9,em_agent,'select em_agent, em_agent from IBM_MANAGED_DATABASES') em_agent,
    htmldb_item.select_list_from_query(10,em_in_scope,'select em_in_scope, em_in_scope from IBM_MANAGED_DATABASES') em_in_scope
    from "#OWNER#"."IBM_MANAGED_DATABASES" d, ibm_servers s
    where d.server = s.server
    When I run the page, I am getting an error
    report error:
    ORA-06502: PL/SQL: numeric or value error: character string buffer too small
    The same thing I implemented on emp ,dept tables in apex training instance and it works.
    Can anyone please address where I am going wrong in actual implementation.
    Thanks.

    Sarvani,
    I am sorry I did not get you "or change your handle to show it".I mean go to the Control Panel link (top right of on my page) and make your handle something like "Sarvani". While you are there click "Show" for your name and put at least your first name there. Messages are a lot easier to track when they are associated with human-sounding names.
    Is that you are pointing to the way I explained the problem.I don't know what you mean by that.
    My report has 1045 columns...1045 rows
    and as you suggested I used apex_item.popupkey_from_query...I first suggested that you try select_list_from_query_xl. Did you try that? I don't think it will help because you are returning so many rows but you could try it.
    Then you tried the popupkey_from_query. I am not clear if the page doesn't run and gives a 404 or if the page runs and the popup page gets a 404.
    When you put the test case on apex.oracle.com, we will be debugging the popup item but it will be much easier if you can first check your Apache logs on your system and get the error message.
    Scott

  • ORA-06502: PL/SQL: numeric or value error: NULL index table key value Repor

    W've been experiencing the Oracle Error: ORA-06502: PL/SQL: numeric or value error: NULL index table key value Report’ [we are currently on apex v3.0.1]. From the forum there was a reference to a bug fix: apex bug (6416829) fixed in 3.1. When we view '6416829' in Metalink we can see the bug title but cannot see any details as it's protected. Can anyone shed some light on why it's protected or provide further details.
    We have many LIVE customers reporting this error and we want to be certain it's fixed in v3.1.
    (currently we are working around this by flushing the shared pool but this is not ideal).
    Any help would be appreciated.

    Scott,
    This error has been thrown several times in the past 24 hours. Yesterday several of my reports threw the error, these reports have done so in the past. This morning APEX has begun throwing the error of which I have seen only once before. This is occuring at Home>Application>My Application. The error appears when I attempt to View the report in Details mode, is OK when I view the report in Icons mode. The error is occuring in my Prodution environment which has not been updated since 2/25/2009.
    As before, I edited the SQL on my application's reports and the error then disappeared.
    We are running Application Express 3.2.0.00.27 and Oracle Release 10.2.0.1.0. My browser is IE 7.0.
    Plan to test later with FireFox provided I can download it to see if this might browser related.
    Any inforamtion or guidance is appreciated.
    Jeff

  • PL/SQL: numeric or value error: character to number conversion error in TRG

    Hi,
    I've got strange issue with one trigger which during update of table reports (DB is 9.2.0.8):
    ORA-06502: PL/SQL: numeric or value error: character to number conversion error
    ORA-06512: at "UDR_LOG", line 345
    ORA-04088: error during execution of trigger 'UDR_LOG'but line 345 is:
    END IF;
    so its kind of strange
    the code looks like
    343 IF nvl(to_char(:old.PKD_ID),'''') <> nvl(to_char(:new.PKD_ID),'''') THEN
    344     v_zmn := v_zmn || 'PKD_ID''' || to_char(:old.PKD_ID) || '''' || to_char(:new.PKD_ID) || '''';
    345    END IF;
    so its concatenation not to_number usage .error is triggered by update statement on any column .
    I'm sorry I cant provide You with whole trigger code .
    So if You could only recommend any investigation method that would be great .
    Regards
    Greg

    Hi, Greg,
    When there's an error in a trigger, the line numbers in the error messages are relative to the first DECLARE or BEGIN statement; often, that's a few lines after CREATE OR REPLACE TRIGGER. Post a few lines after what you already posted.
    If you can't find the error, then create another table for testing this, and create a smaller trigger on that table, which does only enough to cause the error. Then you'll be able to post the complete trigger, and the code needed to re-create the problem.

  • ORA-06502: PL/SQL: numeric or value error : Not able to run a script

    Hi All,
    I want to run a script like this:
    DECLARE
    I_so_status_dtl     RIB_SOStatusDtl_REC;
    BEGIN
    I_so_status_dtl := RIB_SOStatusDtl_REC('0'     --Cust Order No
                   ,'1000000014'     --Dest ID
                   ,'100010222'     --Item ID
                   ,1          --Order Line Number
                   ,1          --Unit Quantity
                   ,'R'          --Status
                   ,'RMS12DEV'     --User ID
                   ,'06-May-2001'     --Updated Date
    End;
    I am trying to run this script. Actually this script is supposed to generate an XML message, which I require. Here's the definition for the TYPE RIB_SOStatusDtl_REC:
    create or replace TYPE RIB_SOStatusDtl_REC UNDER RIB_OBJECT (
         cust_order_nbr     VARCHAR2(10),
         dest_id     VARCHAR2(10),
         item_id     VARCHAR2(25),
         order_line_nbr     NUMBER(3),
         unit_qty     NUMBER(12,4),
         status     VARCHAR2(2),
         user_id     VARCHAR2(10),
    updated_date DATE,
         overriding member procedure appendNodeValues( i_prefix in varchar2)
    ,constructor function RIB_SOStatusDtl_REC (rib_oid number, cust_order_nbr VARCHAR2, dest_id VARCHAR2, item_id VARCHAR2, order_line_nbr NUMBER, unit_qty NUMBER, status VARCHAR2) return self as result
    ,constructor function RIB_SOStatusDtl_REC (rib_oid number, cust_order_nbr VARCHAR2, dest_id VARCHAR2, item_id VARCHAR2, order_line_nbr NUMBER, unit_qty NUMBER, status VARCHAR2, user_id VARCHAR2) return self as result
    This TYPE has a body which actually generates an XML message.
    But whenever I am trying to run this, I am getting the following message:
    Error report:
    ORA-06502: PL/SQL: numeric or value error: character to number conversion error
    ORA-06512: at line 6
    06502. 00000 - "PL/SQL: numeric or value error%s"
    *Cause:   
    *Action:
    Therefore I am not able to run the following script. Here I am passing hard coded value within the TYPE, as I have run similar kind of scripts, which accepts this and creates an xml message. Can anyone help me what's the wrong with this script?
    Thanks & Regards,
    Debabrata

    Hi,
    Create one constructor same as with 8 parameters as you have constructor for only 7 and 8 9 parameters.
    Regards
    RK

  • 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                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

Maybe you are looking for