Numeric error in a function

Hi there!
...got a problem with a Function I wrote... after several iterations the Program stops while executing it with a larger number than before (had values between -1 and 1 before, than I get the value 7167943,57300470185652922197670142674731)
My function looks like that:
function diff_f_act (in# in number) return number is
result# number;
begin
dbms_output.put_line('in:'||in#);
result# := Exp(Nvl(in#,0)*(-1))/((1 + (Exp(Nvl(in#,0)) *(-1)))**2);
return result#;
end diff_f_act;
the error is:
ORA-06502: PL/SQL: numerischer oder Wertefehler
ORA-06512: in "EBFI.NN", Zeile 61
ORA-06512: in "EBFI.NN", Zeile 101
ORA-06512: in "EBFI.NN", Zeile 118
ORA-06512: in "EBFI.NN", Zeile 477
ORA-06512: in "EBFI.NN", Zeile 510
ORA-06512: in Zeile 2
means numeric or value error. Anybody who could help me? Thanks in advance!

the values I'm passing:
in:3200,058908281836871125663159588371504403
in:3198,241219825410765677625466993668376997
in:3200,058908281836871125663159588371504403
in:3198,241219825410765677625466993668376997
in:3200,058908281836871125663159588371504403
in:3198,241219825410765677625466993668376997
in:3200,058908281836871125663159588371504403
in:3198,241219825410765677625466993668376997
in:3200,058908281836871125663159588371504403
in:3198,241219825410765677625466993668376997
in:3200,058908281836871125663159588371504403
in:3198,241219825410765677625466993668376997
in:3200,058908281836871125663159588371504403
in:3198,241219825410765677625466993668376997
in:3200,058908281836871125663159588371504403
in:3198,241219825410765677625466993668376997
in:3200,058908281836871125663159588371504403
in:3198,241219825410765677625466993668376997
in:3200,058908281836871125663159588371504403
in:306391,4153502201384466073629367047496096
1;1;ORA-06502: PL/SQL: numerischer oder Wertefehler
ORA-06512: in "EBFI.NN", Zeile 66
ORA-06512: in "EBFI.NN", Zeile 111
ORA-06512: in "EBFI.NN", Zeile 137
ORA-06512: in "EBFI.NN", Zeile 496
ORA-06512: in "EBFI.NN", Zeile 529
ORA-06512: in Zeile 2
306391,4153502201384466073629367047496096 causes the Problem

Similar Messages

  • How to creat a numerical error propagation program

    trying to create a numerical error propagation program

    The response 'we have your suggestion on file' is typical.  Let's look at the history, although it may be brief here.  I suggested this almost a year ago.  Others in this thread, although they may have a different purpose, asked about this capability 5 years ago. 
    At the same time, LabVIEW adopts 'upgrades' every six months that, from my perspective, seem more as a mechanism to force users to the new products.  Many of the upgrades take LabVIEW in new directions and can be interesting at a more advanced level, but in the instruction of undergraduate engineering students, this has little purpose.  I don't want upgrades that cause me to change the LabVIEW lesson plans I have developed even though the changes are mostly superficial things like labels and where objects are located on menus.  A frustrating thing is that lab manuals are developed and printed (on paper) ahead of a course with directions for the 'old' version and then an upgrade happens that might create differences in the software, making the lab manual's directions 'wrong.'  With constant hardware, what we do in the laboratory does not change much and the software has to do a basic job of consistenty supporting the DAQ hardware's functions.  If the changes in LabVIEW versions become too great, our curriculum will switch over completely to MATLAB and use a fixed basis of hardware drivers.  In MATLAB, with its matrix formats, the error analysis is relatively easy to do and the plotting capabilities are superior.
    The paradox for me is that I want upgrades, but upgrades that add capability to the LabVIEW without changing the functions that already work.  One of the desired upgrades is a new datatype for error analysis using duals, with a new wire color to respect the processing mathematics and provide support for error analysis.  Here I mean error as component of 'uncertainty' and 'error analysis' including the two main topics of 'error sources' and 'error propagation'.  These are important subjects in the undergraduate engineering curriculum and many research publications require the reporting of uncertainty.  Upgrading from v7 to v8.2, we saw that the 'LabVIEW people' thought it important enough to make the error datatype (execution errors) its own wire color and datatype as a distinct cluster (this 'dark yellow' appears as more an olive color) to replace the error stream's pink color of mixed datatype clusters.  From a user's perspective, error analysis of the measurement is important and should have its own datatype and wire color too.
    Yes, there are ways in LabVIEW 8.2. (and probably later versions) to develop a new wire color and datatype but there is significant overhead using projects and classes.  The questions for me, as an instructor of lab courses, are how much of this needs to be taught to the students and will the learning of LabVIEW to perform DAQ become too complicated if projects and classes must be understood?  Digging down into the VI, sub-VI and function hierarchy levels, there has to be a balance struck between 'need-to-know' and 'don't go there'.  The projects and classes go up in level, placing VI's in a larger structure but we still must ask if this is 'need-to-know.'  If LabVIEW pursues this proposal of a new datatype and wire color for duals, this error analysis method would be placed on the current level of LabVIEW and we would not need to address different levels or ask if it is 'need-to-know.'  It becomes more functional and serves the user in providing simultaneous error calculations and a basis for uncertainty reporting.

  • MuseJSAssert: Error calling selector function:ReferenceError: Spry is not defined.

    I launched Muse today and it said there was an updated available. I installed it and then made a few small changes to my 5 page website. Then i exported the HTML and uploaded it to my server.
    But now when i try browsing the site in Chrome, I get the following error message:
    MuseJSAssert: Error calling selector function:ReferenceError: Spry is not defined.
    The only changes I made were adding some text to a few pages and adding metadata info to each page and when viewing the exported HTML locally (prior to uploading) it all behaves as it should...no error messages.
    Any ideas why its doing this? or more importantly, any suggestions on how to stop it from doing this? It wasn't doing this yesterday prior to me making these small changes.
    Here's the URL: www.gardensbytheseaursery.com
    Thanks in advance.
    Jake

    This error would occur if not all the files for the site we're uploaded.
    The 2.0 update includes numerous improvements in the generated HTML, CSS and JavaScript, so while you may have directly changed only certain pages, if you're using an external FTP client all the exported files and folders need to be uploaded. (The new built-in FTP support automatically only generates and uploads files that have changed since the previous upload.)

  • Loading Tree Node/Leaf causing numerous errors

    I am loading a tree with UNSPSC codes using an application engine program with code borrowed from a delivered app engine program. The code loads most of the codes, however I receive numerous errors as follows:
    Node not Found (92,3209) - I get this a lot but the data still loads in both PSTREENODE and PSTREELEAF
    Return: 805 - ORA-00001: unique constraint (FS.PS_PSTREELEAF) violated
    Failed SQL stmt:UPDATE PSTREELEAF SET TREE_NODE_NUM = :1, OLD_TREE_NODE_NUM = 'N' WHERE SETID = :2 AND SETCNTRLVALUE = :3 AND TREE_NAME = :4 AND EFFDT = TO_DATE(:5,'YYYY-MM-DD') AND OLD_TREE_NODE_NUM = 'Y' AND TREE_NODE_NUM = :6
    Tree Save error (92,3061)
    -- This error will rollback my changes to my last commit point, which, because of this error, I am committing after every value (saving tree, closing tree, and reopening the tree).
    Node index error (0,0)
    Node insert error (0,0)
    -- These errors still allow me to enter the data.
    A node without a parent was detected: %1 (25,22)
    -- This error causes an abend.
    The code used to update the tree is very simple (this code was copied verbatim from PV_CP_LOAD along with additional functions):
    REM ****************************************************************************************;
    Function AddToTree(&CAT_ID, &CAT_ID_PAR, &CAT_NAME, &ACCOUNT, &SIBLING)
    REM ****************************************************************************************;
    rem Add child to parent;
    If &CAT_ID <> &FIRST_NODE Then
    &MYNODE = &MS_TREE.FindNode(&CAT_ID, "");
    If None(&MYNODE) Then
    &MYNODE = &MS_TREE.FindNode(&CAT_ID_PAR, "");
    If All(&MYNODE) Then
    &NEWNODE = &MYNODE.InsertChildNode(&CAT_ID);
    If All(&NEWNODE) Then
    &NEWLEAF = &NEWNODE.INSERTDYNCHILDLEAF();
    &NodeCount = &NodeCount + 1;
    End-If;
    End-If;
    Else
    rem in case tree node is already there, but category isn't;
    rem addcategories(&CAT_ID, &CAT_NAME, &ACCOUNT, &CATEGORY_REC);
    End-If;
    End-If;
    End-Function;
    I am getting roughly 50% failure rate.
    Is there a database issue? Configuration of my Tree?

    What I discovered is that Node API method INSERTDYNCHILDLEAF tries to re-number all the leafs inserted each time it is called. However, it doesn't check to see if the TREE_NODE_NUM already exists. Since the TREE_NODE_NUM column is a key, it causes a unique constraint error.
    I pointed this out to Oracle, however, since I was using this function in a custom app engine program, they would not look at the problem. My app engine trace clearly showed the problem.
    I ended up re-writing the program to insert directly into the PSTREENODE and PSTREELEAF tables, controlling the TREE_NODE_NUM and PARENT_NODE_NUM columns myself. The result was a tree with 20499 rows with 0 audit errors.

  • While applying 4440000, "Error calling FNDLOAD function" Occurs.

    While applying the patch 4440000, the following error occured.
    ***********************************************************************************************Loading data using FNDLOAD function.
    FNDLOAD APPS/***** 0 Y UPLOAD @FND:patch/115/import/aflvmlu.lct @PER:patch/115/import/US/perzzlookup01823.ldt -
    Connecting to APPS......Connected successfully.
    Calling FNDLOAD function.
    Returned from FNDLOAD function.
    Log file:
    Error calling FNDLOAD function.
    Also, no log file for FNDLOAD generated.
    Referred the metalink note 441783.1. But unable to understand the solution. Can anyone please explain or other workaround if any?
    S. Sundar

    Dear Taylor,
    Thanks a lot. You are too excellent.
    After doing as follows, the problem is resolved.
    F:\oracle\product>ln -s 10.2.0 10_2.0
    F:\oracle\product>dir 10*
    Volume in drive F is New Volume
    Volume Serial Number is 08B6-ACF4
    Directory of F:\oracle\product
    12/16/2007 10:56 AM <DIR> 10.2.0
    04/01/2008 08:10 AM <JUNCTION> 10_2.0
    0 File(s) 0 bytes
    2 Dir(s) 10,004,815,872 bytes free
    F:\oracle\product>
    Thanks again.
    S. Sundar

  • ERROR WHILE UPLOADING FUNCTIONAL LOCATION MASTER DATA THROUGH LSMW?????

    Dear Experts,
    I am uploading the master data of functional location through LSMW .I had completed all the steps except "Run Batch Input Session".
    In that step it is showing as functional location already exists, after this error the remaining functional locations are updated in sap or it will stop total transaction by  this error???
    how can u upload the remaining in to sap by skipping already existed one????
    here I am uploading the error screen shot.
    Thanks & Regards,
    Sunil Boya

    Hi Jogeswara Rao Kavala,
    When I am pressing back or NO option  it is showing error like this
    What is this OK- Code means?
    how can I resume this process, even it was not going to back screen also and only one option is available for exit from this is by going into MENU-SYSTEM-SERVICES-BATCH INPUT-CANCEL.
    Sunil Boya

  • Error while posting GR "Internal error in FORM/FUNCTION CKML_F_BUILD_INDEX

    Dear Experts,
    While posting GR for any non-valuated material, I am getting an error "Internal error in FORM/FUNCTION CKML_F_BUILD_INDEX in position 1 with RC 0
    Message no. C+099"
    Kindly explore the possibilities of solution for the above error. The abve error only showing at the time of posting and not whicle Check.
    Regards,
    Tushar

    Hi Tushar,
    Your problem is happening because of the applicaiton of an SAP Note. I think PM has nothing to do with this Error. Pl. read the following (which I read this from one SAP website) & check the relevant SAP notes and take action or write to SAP  for solution.
    Symptom
    The posting of goods receipts results in a long runtime.
    Other terms
    ACTUPD, MIGO, performance, material ledger
    Reason and Prerequisites
    The actual costing is active.
    The performance problems usually occur when there are several procurement alternatives or procurement processes (tables CKMLMV001 and CKMLMV002) for certain materials.
    This can be caused by implementing the modification according to Note 1017470 or 919869, [...]
    Regards,
    Bala.

  • Certificate issues Active Directory Certificate Services could not process request 3699 due to an error: The revocation function was unable to check revocation because the revocation server was offline. 0x80092013

    Hi,
    We have some problems with our Root CA. I can se a lot of failed requests. with the event id 22: in the logs. The description is: Active Directory Certificate Services could not process request 3686 due to an error: The revocation function was unable to
    check revocation because the revocation server was offline. 0x80092013 (-2146885613).  The request was for CN=xxxxx.ourdomain.com.  Additional information: Error Verifying Request Signature or Signing Certificate
    A couple of months ago we decomissioned one of our old 2003 DCs and it looks like this server might have had something to do with the CA structure but I am not sure whether this was in use or not since I could find the role but I wasn't able to see any existing
    configuration.
    Let's say that this server was previously responsible for the certificates and was the server that should have revoked the old certs, what can I do know to try and correct the problem?
    Thank you for your help
    //Cris

    hello,
    let me recap first:
    you see these errors on a ROOT CA. so it seems like the ROOT CA is also operating as an ISSUING CA. Some clients try to issue a new certificate from the ROOT CA and this fails with your error mentioned.
    do you say that you had a PREVIOUS CA which you decomissioned, and you now have a brand NEW CA, that was built as a clean install? When you decommissioned the PREVIOUS CA, that was your design decision to don't bother with the current certificates that it
    issued and which are still valid, right?
    The error says, that the REQUEST signature cannot be validated. REQUESTs are signed either by itself (self-signed) or if they are renewal requests, they would be signed with the previous certificate which the client tries to renew. The self-signed REQUESTs
    do not contain CRL paths at all.
    So this implies to me as these requests that are failing are renewal requests. Renewal requests would contain CRL paths of the previous certificates that are nearing their expiration.
    As there are many such REQUEST and failures, it probably means that the clients use AUTOENROLLMENT, which tries to renew their current, but shortly expiring, certificates during (by default) their last 6 weeks of lifetime.
    As you decommissioned your PREVIOUS CA, it does not issue CRL anymore and the current certificates cannot be checked for validity.
    Thus, if the renewal tries to renew them by using the NEW CA, your NEW CA cannot validate CRL of the PREVIOUS CA and will not issue new certificates.
    But it would not issue new certificates anyway even if it was able to verify the PREVIOUS CA's CRL, as it seems your NEW CA is completely brand new, without being restored from the PREVIOUS CA's database. Right?
    So simply don't bother :-) As long as it was your design to decommission the PREVIOUS CA without bothering with its already issued certificates.
    The current certificates which autoenrollment tries to renew cannot be checked for validity. They will also slowly expire over the next 6 weeks or so. After that, autoenrollment will ask your NEW CA to issue a brand new certificate without trying to renew.
    Just a clean self-signed REQUEST.
    That will succeed.
    You can also verify this by trying to issue a certificate on an affected machine manually from Certificates MMC.
    ondrej.

  • Server 2008 R2 Windows Server Backup. "Error in backup of Hyper-V.vhd during read: Error [0x80070001] Incorrect function.

    Hello,
    We are currently using Windows Server Backup to backup three Hyper-V guests running on a Windows 2008 R2 host.  Two guests are running Server 2008 R2 and one is running Windows 7.  I have the backups going to a dedicated external disk drive.
    WSB backs up the two 2008 R2 Hyper-V guests just fine.  However, when attempting to backup the Windows 7 Hyper-V guest, I receive the following error:
    Error in backup of <Windows 7.vhd> during read: Error [0x80070001] Incorrect function.
    I ran a "vssadmin list writers" and all the VSS writers showed "Stable" with no errors.  I have plenty of space on the external drive as well.  I've read this article:
    https://support.microsoft.com/kb/973455?wa=wsignin1.0#workaroundissue12 except that doesn't seem to be what I'm experiencing here.
    Anyone have any suggestions?

    Hi,
    As the other 2 guests could be backed up correctly, the issue should not be the Windows Server Backup feature.
    First please refer to this article:
    Backing Up and Restoring Virtual Machines
    http://msdn.microsoft.com/en-us/library/dd405549(v=vs.85).aspx
    Please check if all following requirements are met. Specifically please check if Integration Service is installed. 
    Backup (volume snapshot) Integration Service is installed and running in the child VM. The service name is "Hyper-V Volume Shadow Copy Requestor".
    Windows 2000:  Backup Integration Service is not supported.
    The child VM must be in the running state.
    The Snapshot File Location for the VM is set to be the same volume in the host operating system as the VHD files for the VM.
    All volumes in the child VM are basic disks and there are no dynamic disks.
    All disks in the child VM must use a file system that supports snapshots (for example, NTFS).
    If you have any feedback on our support, please send to [email protected]

  • I got this warning when i open a specific page on my website in IE : MuseJSAssert: Error calling selector function:Error: A security problem occurred.

    Hi,
    I found out when i'm in IE and go to the page 'Artists'
    and i click on a name, for example: 'Abel Equipe ELA/I Gomes'
    I get this warning :
    MuseJSAssert: Error calling selector function:Error: A security problem occurred.
    This is only in IE, not when i use Safari or Chrome
    this is the website link
    Any ideas how to solve this problem?

    There's an invalid hyperlink on the Abel Equipe ELA/I Gomes page on a bit of text that reads "with your input." You need to find this text within Muse, clear the hyperlink and enter a valid one.

  • Muse JS Assert: Error calling selector function:Type error: Object has no method Muse Menu

    When exporting html and viewing locally we receive the following error... This error disappears after removing menu from top of page. This error does not occur when viewed on Outdoors360.businesscatalyst.com (our temporary site)
    Muse JS Assert: Error calling selector function:Type error: Object has no method Muse Menu
    Any ideas??

    I fix the problem.
    I have carefully reviewed JAVASCRIPT files and I could see that these are not a major influence within the site, only are reference code and utilities of the same application.
    By removing these files nothing has stopped working, I thought I would have some error in the sliders, or opacities, but no, nothing happened.
    DELETE IT
    FRANCISCO CATALDO DISEÑADOR GRÁFICO

  • Error in UseOneAsMany Function Error in SAP XI

    Error in UseOneAsMany Function Error in SAP XI
    Hi Experts,
    I am trying the Example of function UseOneAsMany. My Input and Output XML Files are provided below:
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:MT_MM4 xmlns:ns0="http://test/mapping.test">
       <Header>
          <MatNo>MatNo</MatNo>
          <MatDesc>MatDesc</MatDesc>
       </Header>
       <Item>
          <MatNo>MatNo1</MatNo>
          <ItemNo>ItemNo1</ItemNo>
          <MatGroup>MatGroup1</MatGroup>
          <Mattype>Mattype1</Mattype>
          <Plant>Plant1</Plant>
       </Item>
       <Item>
          <MatNo>MatNo2</MatNo>
          <ItemNo>ItemNo2</ItemNo>
          <MatGroup>MatGroup2</MatGroup>
          <Mattype>Mattype2</Mattype>
          <Plant>Plant2</Plant>
       </Item>
    </ns0:MT_MM4>
    My Expected Output should be :
    <?xml version="1.0" encoding="UTF-8"?>
    -<ns0:MT_MM4R xmlns:ns0="http://test/mapping.test">
    -<Header>
    <MatNo>MatNo</MatNo>
    <MatDesc>MatDesc</MatDesc>
    <MatGroup>MatGroup1</MatGroup>
    </Header>
    -<Item>
    <MatNo>MatNo1</MatNo>
    <ItemNo>ItemNo1</ItemNo>
    <Mattype>Mattype1</Mattype>
    <Plant>Plant1</Plant>
    </Item>
    -<Header>
    <MatNo>MatNo</MatNo>
    <MatDesc>MatDesc</MatDesc>
    <MatGroup>MatGroup2</MatGroup>
    </Header>
    -<Item>
    <MatNo>MatNo2</MatNo>
    <ItemNo>ItemNo2</ItemNo>
    <Mattype>Mattype2</Mattype>
    <Plant>Plant2</Plant>
    </Item>
    </ns0:MT_MM4R>
    But for me Headers are coming first and then followed by two items. Please let me know how to solve the issue and also please provide the explanation.
    Thanks,
    GIRIDHAR

    Hello,
    Change ur structure little bit (add parent node "Record") and then use java mapping pasted in below blog to remove Record node to get ur desired structure.
    File Conversion using 'Nodeception'
    <?xml version="1.0" encoding="UTF-8"?>
    -<ns0:MT_MM4R xmlns:ns0="http://test/mapping.test">
    <Record> --- 0..Unbounded
    -<Header>
    <MatNo>MatNo</MatNo>
    <MatDesc>MatDesc</MatDesc>
    <MatGroup>MatGroup1</MatGroup>
    </Header>
    -<Item>  
    <MatNo>MatNo1</MatNo>
    <ItemNo>ItemNo1</ItemNo>
    <Mattype>Mattype1</Mattype>
    <Plant>Plant1</Plant>
    </Item>
    </Record>
    <Record>
    -<Header>
    <MatNo>MatNo</MatNo>
    <MatDesc>MatDesc</MatDesc>
    <MatGroup>MatGroup2</MatGroup>
    </Header>
    -<Item>
    <MatNo>MatNo2</MatNo>
    <ItemNo>ItemNo2</ItemNo>
    <Mattype>Mattype2</Mattype>
    <Plant>Plant2</Plant>
    </Item>
    </Record>
    </ns0:MT_MM4R>
    Thanks
    Amit Srivastava

  • I am getting this error :The right function requires 2 argument(s).

    declare 
    @startdate datetime,
    @enddate datetime 
    SET @STARTDATE ='01-MAR-2014'
    SET @enddate = '01-MAR-2014'
    Set @StartDate = Convert(datetime, Convert(char(10), @StartDate, 120) + ' 00:00:00', 120)
    set @enddate =convert(datetime,Convert(char(10),@enddate, 120) + ' 23:59:59',120) 
    SELECT 
    [row_date]
    ,[logid]
    ,CONVERT(VARCHAR(6), (ISNULL(SUM([acwouttime] + [auxouttime] + [holdtime]), 0))/3600) + 
    ':' + RIGHT('0' + CONVERT(varchar(2),(ISNULL(SUM([acwouttime] + [auxouttime] + [holdtime]), 0)) % 3600) / 60), 2)
    + ':' + RIGHT('0' + CONVERT(varchar(2), (ISNULL(SUM([acwouttime] + [auxouttime] + [holdtime]), 0)) % 60), 2)AS HoldTime
    FROM [CMSData].[dbo].[hagent2]
    WHERE ([logid] IN (1382, 1493,1382,1493,1444,1466,1301,1074,1655,
    1749,1685,1686,1684,1617,1681,1792,1595,1597,1687,1622))
    AND (row_date BETWEEN  @StartDate AND @EndDate)
    GROUP BY 
    [row_date]
    ,[logid]
    hi friends when I am executing this query I am getting this error please help me I will grateful to you .
    ERROR: The right function requires 2 argument(s).

    you may be better off making date filter as below
    declare
    @startdate datetime,
    @enddate datetime
    SET @STARTDATE ='01-MAR-2014'
    SET @enddate = '02-MAR-2014'
    AND (row_date >= @StartDate AND row_date <@EndDate)
    see
    http://visakhm.blogspot.in/2012/12/different-ways-to-implement-date-range.html
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • CAST Not working for me - Arithmetic overflow error converting int to data type numeric - error

    GPM is DECIMAL(5,2)
    PRICE is DECIMAL(11,4)
    COST is DECIMAL(7,2)
    Trying to update the Gross Profit Margin % field and I keep getting the "Arithmetic overflow error converting int to data type numeric" error.
    UPDATE SMEMODETAIL SET SMD_GPM = (SMD_PRICE-SMD_COST) / SMD_PRICE * 100
    FROM SMEMODETAIL WHERE SMD_PRICE<>0 AND SMD_QUANTITY<>0
    Example record:
    SMD_PRICE    SMD_COST    GPM%
    1.8500            1.62                12.4324324324324300
    I added cast and I still get the error.
    How do I format to get this to work?
    Thanks!

    Hi GBerthume,
    The error is caused by some value such as 1000.01 of the expression (SMD_PRICE-SMD_COST) / SMD_PRICE * 100 exceeds the
    precision of the column(DECIMAL(5,2)). The example data doesn't cause the overflow error for the value of the expression is 12.43 which is in the scope of DECIMAL(5,2).
    USE TestDB
    CREATE TABLE SMEMODETAIL
    SMD_PRICE DECIMAL(11,4),
    SMD_COST DECIMAL(7,2),
    SMD_GPM DECIMAL(5,2)
    INSERT INTO SMEMODETAIL(SMD_PRICE,SMD_COST) SELECT 1.8500,1.62
    UPDATE SMEMODETAIL SET SMD_GPM = (SMD_PRICE-SMD_COST) / SMD_PRICE * 100
    FROM SMEMODETAIL WHERE SMD_PRICE<>0-- AND SMD_QUANTITY<>0
    SELECT * FROM SMEMODETAIL
    DROP TABLE SMEMODETAIL
    The solution of your case can be either scale the DECIMAL(5,2) or follow the suggestion in Scott_morris-ga's to check and fix your data.
    If you have any question, feel free to let me know.
    Eric Zhang
    TechNet Community Support

  • 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

Maybe you are looking for

  • My early 2008 has a faulty  NVIDIA GeForce 8600M GT GPU.

    A random day my early 2008 MacbookPro could not turn on its display when i powered it on. I sent it to Apple and they told me that it has a faulty GPU. (and that it was a known issue for the "NVIDIA GeForce 8600M GT") But there have been 4 years and

  • Pass object reference from TestStand to C#

    Hi, I have created a GUI in .NET which i invoke in TestStand (through a custom step type). User can enter a object reference teststand variable in the UI input expression box. So i need to get the object value in that variable and use it to call some

  • How to convert Oracle reports previewer output into delimited file.

    How to convert Oracle reports previewer output into delimited file if the report has more than 1000 pages. I tried with previewer option File --> Generate to file --> Delimited file, but the report engine is crashing.Not generating .TXT file. I obser

  • Error in SP 9 upgrade for NW04s using JSPM

    Hi, i have installed NW04s and trying to upgrade to SP9 using JSPM. But during validation of the SCA files in the JSPM, the following error occurs which does not allow me to deploy. please help me how to resolve. This error shows the package "SAPEU09

  • Trouble Re-Installing FInal Cut Express

    Hello Everyone, I have been a frequent reader of this forum, and now I've finally gummed myself up enough that I have to post a question. For a variety of reasons I needed to remove Final Cut Express from my iMac, so I used FCS Remover as has been re