ORA-01476: divisor is equal to zero Error in tabular form

Hello,
My tabular form will give me this error sometimes: Error in add row internal routine: ORA-01476: divisor is equal to zero. I don't understand what causes it. On the form I have a on load - before header process that will add 5 blank rows automatically, which was wizard generated. This error doesn't always happen, when I turn off this process and then turn it back on it works fine. Currently I have to set the condition to never, so I don't get the error. Is this a bug with Apex?
Also, when there is data available I have to click on the next arrow for the data to display.
Please advise.
Thanks,
Mary
Edited by: MaryM on Feb 26, 2010 9:49 AM
Edited by: MaryM on Mar 2, 2010 11:16 AM

Hello,
I have the same error message for ADD ROWS in tabular form. It is also happens when I try to open one empty record using On Load when page rendered. Have you found a fix for that ?
Thanks,
Marina

Similar Messages

  • BI Report Error:ORA-01476: divisor is equal to zero

    I have written the Query containing the Pl/SQL procedures and is working fine when executed ,but when I am using the same query for the BI Publisher report , in the Runtime the report is giving error *"ORA-01476: divisor is equal to zero"* .
    Please provide me with the answers and help ,as it is most important for me to get it solved.

    Hi,
    Try this...
    case when nvl(Y,0) = 0 then 0 else (X/Y) end
    Replace your columns in place of X and Y in your query..
    hope helps you....
    Cheers,
    Aravind

  • Error in add row internal routine: ORA-01476: divisor is equal to zero

    Hi,
    I am using Tabular Form Report in my application. So, when the user enters the page for the first time, no fields appear (if he has previously not entered any values in the DB). So to avoid this I added a Data Manipulation process-> Add rows to tabular Form ->On load after footer, so that when the user logins whether he entered previous values or not, he can see some empty fields, but this is not working as expected.
    Any ideas how to resolve this issue.

    Hmm other people have had this errorm found this hope it helps,
    Hi,
    Have a look at: Re: Add Row in detail table when check box is checked on a master report table as this shows how you can use javascript to clone a row

  • Ora-01476 divisor is equal to zero

    hi!
    ROUND(SUM(VALOR_VDA) / SUM(DECODE(QTDE_VDA,0,1,QTDE_VDA)),2)
    Oracle 10.2.0.1.0
    Red Hat Enterprise 5

    is this QTDE_VDA field numeric
    The only issues here with the decode is see is if the total value of all the rows when summed is 0 - zero then you will have zero-divide error
    SS
    Message was edited by:
    user478316

  • Divisor is equal to zero error

    Hi, I am getting divisor is equal to zero error while doing a calculation using sql. Is there a workaround this ?
    Thanks

    What do you want to do, if the divisor is 0?
    Is the SQL executed in SqlPlus or in a procedure/function?
    Hi, I am getting divisor is equal to zero error while doing a calculation using sql. Is there a workaround this ?
    Thanks

  • Divisor is equal to zero......Help...plz

    Hi all.
    I tried to get a tablespace and fragmentation information with blow script.
    But I got an error(ORA-1476 : divisor is equal to zero)
    How can I fix the script properly ?
    Could anybody help me to fix the script?
    Thanks in advance.
    select tablespace_name,sum(obj_cnt) object_count,sum(ini_ext) init_ext,sum(nex_ex
    t) next_ext,sum(byte)/1048576 bytesize,
    (sum(byte)/1048576)- (sum(fbyte)/1048576) byteused,sum(fbyte)/1048576 bytefree,
    sum(frags), sum(largest)/1048576 avail,
    (sum(fbyte)/sum(byte))*100 free
    from (select tablespace_name,0 obj_cnt,0 ini_ext,0 nex_ext, 0 byte, sum(bytes) fb
    yte, count(*) frags, max(bytes) largest
    from dba_free_space
    group by tablespace_name
    union
    select tablespace_name,0, 0, 0, sum(bytes), 0, 0, 0 from dba_data_files
    group by tablespace_name
    union
    select tablespace_name, 0, initial_extent/1024 ini_ext, next_extent/1024 nex_ext,
    0,0,0,0
    from dba_tablespaces
    union
    select tablespace_name, count(*) obj_cnt, 0, 0, 0, 0, 0, 0
    from dba_segments
    group by tablespace_name)
    group by tablespace_name

    The various NVL and DECODE solutions may get rid of the error, but will not get you the correct answer. By the way, you may want to look at the differences in behaviour between
    (sum(fbyte)/decode(sum(byte),0,NULL))*100 free and
    (sum(fbyte)/decode(sum(byte),0,1))*100 free before you use either.
    Your real problem is that you have a temp tablespace using temporary files. This is the right thing to do, but, you need another union in your statement, to access dba_temp_files:
    SELECT tablespace_name,SUM(obj_cnt) object_count,
           SUM(ini_ext) init_ext, SUM(nex_ext) next_ext,
           SUM(byte)/1048576 bytesize,
           (SUM(byte)/1048576)- (SUM(fbyte)/1048576) byteused,
           SUM(fbyte)/1048576 bytefree, SUM(frags), SUM(largest)/1048576 avail,
           (SUM(fbyte)/SUM(byte))*100 free
    FROM (SELECT tablespace_name, 0 obj_cnt, 0 ini_ext, 0 nex_ext, 0 byte,
                 SUM(bytes) fbyte, COUNT(*) frags, MAX(bytes) largest
          FROM dba_free_space
          GROUP BY tablespace_name
          UNION ALL
          SELECT tablespace_name,0, 0, 0, sum(bytes), 0, 0, 0
          FROM dba_data_files
          GROUP BY tablespace_name
          UNION ALL
          SELECT tablespace_name,0, 0, 0, sum(bytes), 0, 0, 0
    FROM dba_temp_files
    GROUP BY tablespace_name
          UNION ALL
          SELECT tablespace_name, 0, initial_extent/1024 ini_ext,
                 next_extent/1024 nex_ext, 0,0,0,0
          FROM dba_tablespaces
          UNION ALL
          SELECT tablespace_name, COUNT(*) obj_cnt, 0, 0, 0, 0, 0, 0
          FROM dba_segments
          GROUP BY tablespace_name)
    GROUP BY tablespace_nameYou should also use UNION ALL instead of UNION, because UNION implies a sort distinct, whil union all does not. The sort is unneccessary, and the distinct may cause you to lose rows.
    TTFn
    John

  • ORA-01476: divisor equal to zero

    When I try to run this query I get error 'ORA-01476: divisor equal to zero'. How can I write the query so it understand that it not should use Sum(SalesQuantity)=0 And Sum(Net_Sales)=0 in the Case?
    SELECT year_month, customer,
    (Sum(Case When record_type NOT IN ('B', 'E') And NET_SALES <> '0' Then NET_SALES Else Null End)/
    Sum(Case When record_type NOT IN ('R', 'P') And SALES_QUANTITY <> '0' Then SALES_QUANTITY Else Null End)) As Test
    Where Period_date Between to_date('2007-01-01','yyyy-mm-dd') And to_date('2007-09-30','yyyy-mm-dd')
    FROM tbltest
    Group By year_month, customer

    I generally use
    whatever / NULLIF(expression, 0)Message was edited by:
    William Robertson

  • HP QUERY DATA ERROR((SQLER=ORA01476 divisor is equal to zero

    Experts,
    We are seeing the following error in Inventory Optimization Horizontal Plan
    HP QUERY DATA ERROR((SQLER=ORA01476 divisor is equal to zero
    Navigation
    Sign on as Inventory Planner responsibility, Inventory Plan > Workbench
    Select the plan owning org, so you can see all orgs.
    View by organizations
    Select org: <Org Code>
    Select Category <category>,
    item <Item name
    Right click, select Horizontal Plan > Default
    Can you help please.

    Well the easiest way to troubleshoot this problem would be to find the row where FBASEVOLTAGE = 0. Something like this maybe:
    SELECT BV.FBASEVOLTAGE
         , FB.FMAGNITUDE_RESULT
         , BS.IUBUSNO
    FROM                       GN
    JOIN                       GM ON  GM.IELEMENT_MAP_ID  = GN.IELEMENT_MAP_ID
    JOIN                       BS ON  GM.NPS_ELEMENT_ID   = BS.IUBUSID
                                  AND GM.NPS_ELEMENT_TYPE = 101
    JOIN   CONFIG_BASE_VOLTAGE BV ON  BS.IBASEVOLTAGEID   = BV.IBASEVOLTAGEID
    JOIN   FACT_BUS            FB ON  FB.IBUS_NO          = BS.IUBUSID
                                  AND FB.IPS_CASE_ID      = GN.IPS_CASE_ID
    WHERE BV.FBASEVOLTAGE = 0
    AND   GN.IPS_CASE_ID  = 1637
    ;

  • Divisor is equal to zero in date function

    Hi
    I have used a query like this but am getting error like divisor is equal to zero
    with s_mon as (select to_char(add_months(trunc(sysdate,'rr'),level-1),'Mon-RR') month from dual connect by level <=12)
    select s_mon.month,
    tgdate
    from abc ,s_mon
    where to_char(tgdate(+),'Mon-RR')=s_mon.month
    Result should be like this
    month tgtdate
    jan-12 01-01-12
    feb-12 05-02-12
    mar-12
    apr-12
    dec-12
    Edited by: vishnu prakash on 27-May-2012 00:32

    Vishnu,
    I did not get any error for the below statements; Does this not match with yours? If not, then please post your table structure, data and the exact query in which you are facing error.
    drop table test_table;
    create table test_table (pk_col number, col date);
    insert into Test_table values (3, to_date('MAY-2012', 'MON-RR'));
    insert into Test_table values (4, to_date('DEC-2012', 'MON-RR'));
    select * from test_table;
    with t as
      select to_char(add_months(trunc(sysdate, 'rr'), level - 1), 'MON-RR') month
        from dual
      connect by level <= 12
    select b.month, a.col
      from test_table a,
           t b
    where to_char(a.col(+), 'MON-RR') = b.month
    MONTH     COL
    APR-12     
    AUG-12     
    DEC-12     01-DEC-12
    FEB-12     
    JAN-12     
    JUL-12     
    JUN-12     
    MAR-12     
    MAY-12     01-MAY-12
    NOV-12     
    OCT-12     
    SEP-12     Regards,
    P.

  • Error creating tabular form

    When I use the Create Page > Tabular Form wizard to create a form based on a table with a zero in the name, I receive this error:
    ORA-20001: Unable to create updateable report. ORA-20001: ParseErr: ORA-00904: "T11_ACCOUNT": invalid identifier
    Here is my table layout:
    SQL> desc a200t011
    Name Null? Type
    T011_ACCOUNT VARCHAR2(10)
    T011_AREA VARCHAR2(3)
    T011_ACCOUNT_NAME VARCHAR2(40)
    T011_GRANT_BEGIN DATE
    T011_GRANT_END DATE
    T011_DEPARTMENT VARCHAR2(8)
    T011_STATUS VARCHAR2(1)
    T011_TYPE VARCHAR2(1)
    Looks like HTMLDB is removing the zeros?

    Billy,
    I've confirmed this behavior but I cannot explain why it is happening. So for now, it'a a bug.
    Scott

  • Error in tabular form

    On a wizard generated tabular form on a table, I keep getting
    Error in mru internal routine: ORA-20001: Error in MRU: row= 1, ORA-20001: ORA-20001: Current version of data in database has changed since user initiated update process.
    when I click the Apply Changes button.
    The data has definitely not changed.
    How do I go about troubleshooting this? I did add some derived fields to the SQL query that the wizard generated, but they are not Editable, they are read-only fields.
    I am at my wits end.
    Thanks

    Marc:
    I did the latter thing. I started with the wizard generated form, made sure it was working and added my changes one at a time, keeping my fingers crossed after each change! Its still fine.
    <rant>
    See the frustrating thing about the MRU error is that it gives absolutely no indication as to what the real problem is, it doesnt help to fix it. So basically one has to "backtrack" all the way to the beginning, the same way I did above i.e. start all over again. Its very time-consuming and counter-productive.
    </rant>
    Marc: Is there a way you can basically prevent changes to the wizard-generated form that would make it "not work" anymore?
    Thanks

  • Character string buffer too small error in tabular form

    Hi Folks,
    One of my tabular forms suddenly stopped working out of the blue after 3 months of working perfectly. So I've run into the debug and looks like something went wrong rendering my LOV as below:
         0.16968     0.00328     ...Execute Statement: begin begin SELECT TIME_DISPLAY D, TIME_RETURN R bulk collect into wwv_flow_utilities.g_display,wwv_flow_utilities.g_value FROM TS_HOURS ORDER BY 2; end; end;     4     
    8
         0.17292     0.03912     ...Execute Statement: begin begin select /*+ cardinality(t 10) */ disp, val bulk collect into wwv_flow_utilities.g_display,wwv_flow_utilities.g_value from table(wwv_flow_utilities.get_temp_lov_data(2)) t order by insert_order, disp; end; end;     4     
    100
         0.21211     0.00224     report error: ORA-06502: PL/SQL: numeric or value error: character string buffer too smallI've looked around and saw few others having same issues but nothing that's like mine. Could someone please help me find what the issue is? THanks.
    I am using Apex 4.1.1

    Hi Andre, I have figured out the issue.
    You were correct about the 32K limit. However it applies to the whole tabular form not to do with the particular LOV.
    I tweaked my other LOV's (with 200 return value) to display fewer and this issue was resolved. I think there wasn't enough left for my 60 row LOV by the time APEX engine got to it which renders after the bigger LOV was rendered.
    I think Advisor should have some kind of feature to check forms against 32k limit. Otherwise you wake up one morning and application broke after working 3 months perfectly.

  • MRU Error in Tabular Form

    Hi
    I created a tabular form. Also created a trigger that would insert a sequence number, user and system date each time a new record is inserted. I have associated an existing LOV to one of the fields.
    I hit the 'Add Row' button. Select a value from the LOV for the account code. Hit the submit button and page indicates 1 row inserted.
    I hit the 'Add Row' button again to insert another row and the following message appears:
    Error in mru internal routine: ORA-20001: Error in MRU: row= 0, ORA-20001: ORA-20001: Current version of data in database has changed since user initiated update process. current checksum = "F246ADAF68494BEE51356ECC92B1047C", item checksum = "B9E444CAB12B67D92A5DBC8BB3E48517"., update "TEST"."VIEW_ACCOUNTS" set "CONTROL_SEQUENCE" = :b1, "ACCOUNT_CODE" = :b2
    If I come completely out of the application and go back in to insert another record, I get the same error.

    Hi,
    I think above probem is caused by the trigger created.
    Check without the trigger for test-purposes and check if the error is gone. ( checksum error, I suppose )
    Kind regards,
    Iloon

  • Custom errors in tabular form

    Hi,
    I am getting oracle errors in a tabular form if entering some illegal values. For example i am getting below oracle error
    when giving an invalid date in a date field
    Error in mru internal routine: ORA-20001: Error in MRU: row= 1, ORA-20001: Found invalid date value, please verify
    date format., insert into "PE_DIP"."CORRELATION_ELIGIBILITY"
    ( "ID", "CUSTOMER_ID", "SITE_ID", "EQUIPMENT_ID", "TERMINATION_ID", "CORRELATION_ELIGIBILITY", "LAST_MO
    DIFIED_BY", "LAST_MODIFIED_ON") values ( :b1, :b2, :b3, :b4, :b5, :b6, :b7, :b8)i just need the message
    Found invalid date value, please verify date formatand like this, for each errors i just need the error message and that will be dispalyed in the notification area and not in
    other page. Is this possible?. Plz help,
    Thanks,
    TJ

    Hi TJ,
    You could write a JavaScript function to do that for you. Just call it onChange or onBlur. I have the following javascript functions that I use. These display the error next to the item though, so you may need to play around with it to display it where you want it to. (Pls note: I have a few validation functions like the notNull one below that all call the setError function.)
    //This function checks to see if the object sent in is null and if so displays an error message
    //back to the user. This is useful when doing client side validations on tabular forms in APEX.
    //It takes in the ID of the object we want to do this check for and prints out an error
    //just after the cell where the error occurred.
    function notNull(object, errObj) {
    var val = $x(object).value;
    setError(object, (val == "" || val == null), "This field cannot be empty ", errObj);
    //Function to display an error in a tabular form. The error will be displayed next to the field associated
    //with the object parameter, using div tags. In addition to the object parameter, the function also takes in
    //the err object to use as id in the div tag, a boolean variable to indicate if there is an error and the error string
    //to display
    function setError(object, isErr, errStr, errObj) {
    //ensure you have the name for the error string to be displayed
    if (!errObj) {
    errObj = "err_".concat(object.id);
    //if there was a prior error displayed, first delete that, so we do not have duplicate messages shown
    $x_Remove(errObj);
    if (isErr) {
    if (!$x(errObj)) {
    $x_Style(object, 'border', '1px solid red');
    var errStr = ('<div name="err" id="').concat(errObj).concat('" style="color:red;">').concat(errStr).concat(' </div>');
    object.parentNode.innerHTML += errStr;
    $x("Back").focus();
    $x(object.id).focus();
    } else {
    $x_Style(object, 'border', "1px solid #C8C8C8");
    $x_Remove(errObj);
    In the report item attributes page, I call the above function as onBlur="notNull(this);" in the element attribute field.
    HTH,
    Chandini

  • Error Creating Tabular Form in 4.2

    I have a workspace with additional schemas granted. So, thew workspace has a parsing schema of SCHEMA_A but, schemas SCHEMA_B and SCHEMA_C have been granted.
    I have confirmed that the appropriate permissions have been granted on a table in SCHEMA_B to SCHEMA_A. (U,I,S,D).
    I can create an Interactive report on TABLE_A in SCHEMA_B without any issues.
    However, if I go to add a Tabular Form, I pick the exact same table and I get the following error alert:
    You do not have access to the schema you are importing
    Import Failed
    As further evidence that this is, indeed, a bug, I can create the form with some random table in the SCHEMA_A schema. Then, go edit the page and chnage it to select from the table in SCHEMA_B and everything works fine.
    Help!
    -Joe

    Joe,  I was able to resolve my issue by following the advise here: How to change parsing schema for using application in test environment?
    (In particular Roel's tip to login as Administrator in the Test environment and add the schema to the workspace schema('s))
    I hope this works for you as well.

Maybe you are looking for

  • Multiple caches use same distributed scheme, what about cachestore config?

    Hi, If a distributed scheme is configured with read-write-backing-map, will ALL caches be required to define the cachestore configuration if the caches are using the same distributed scheme? For example, we have two caches "ExpireSessions" and "Custo

  • I get winmail.dat attachments from my Co. they will not open I tried notepad and got nonsence

    I just started with a new Co. And they send e-mail attachments as winmail.dat When I open I get junk. I've gone into applications in Options but all form still give me junk notebook ect... Any suggestions

  • Printer stops after one document

    My Printer works for first document sent to print, but will not print a subsequent document sent to print.  The second one shows in the print queue.  I have to turn the printer off and then back on to get it to resume printing.  How do I fix this? Th

  • How to restrict fileAdapter??

    Hi All, I am using JDev 10.1.3.3 and SOA 10.1.3.3. I have 100 files in a folder. I need to read the filenames and directory. I have done those things by using InboundHeader.wsdl. Now the requirement is I need to read only first 10 files. How can I st

  • Photoshop elements V 11

    I need to reinstall my V 11 Photoshop elements.due to HD damage i had to put new one. Can you please assist.