Overflow when trying to assign Float to Double

Please excuse me if this has already been anwered.
I'm trying to pull a long decimal (0.110494842038439 to be exact) from an
Oracle database table where it's stored as a Float.
Dim z As Double = rsAgg("st_dev")
Returns the error "Arithmetic operation resulted in an overflow."
Dim z As Oracle.DataAccess.Types.OracleDecimal = rsAgg.GetDecimal(2)
Seems like it should do it, but that one gives the same error.
Dim z As Oracle.DataAccess.Types.OracleDecimal = rsAgg.GetValue(2)
Same thing.
I'm running out of ideas, hopefully someone can point me in the right
direction.
Thanks!
-Dan

I know that using the SafeMapping feature you could get the value back either as a string or as a binary representation.
Converting from a string value is, as we both agree, inefficient especially for thousands of values in a loop.
The binary representation is easily converted to an OracleNumber using the constructor that takes an array of bytes. The problem is that I can't safely cast the OracleNumber to a decimal (System.Decimal) when the OracleNumber has a greater precision than a decimal will hold.
Now I could write my own function that operates on the byte array and converts the relevant portion to a decimal ignoring the extra precision. But it would be so much more clean, and definitely less buggy, if this were done for me in the OracleDataReader itself.
Just to clarify, the reason I want these values as decimals is because I want them in a DataSet or other structure that I want to serialise to a remote client - where the ODP is not installed. In which case I am restricted to native .NET types.

Similar Messages

  • Table overflowed  when trying to sap locks in the table..

    Dear ALL,
      when trying to sap locks in the table then its showing table overflowed. can telle the actual reason.
    Reagards.
    ASHUTOSH

    Hi, ALL
    suddenly sap PP persons execute the report, " errors comes as last msg  table overflow" whats the main reasons. i konw my self it automatically resize the table.
    Regards,
    ASHUTOSH

  • When trying to assign IP reservation in IPAM, Domain does not appear in Forward lookup zone drop-down list

    I am trying to assign reserved IP Addresses through IPAM that is installed on a Server 2012 OS.  Here is the procedure I have been following:
    Login to IPAM server
    Open Server Manager
    In left-hand column select IPAM
    In left-center column expand IP ADDRESS SPACE
    Select IP Address Range Groups
    Right-click the appropriate address range and select Find and Allocate Available IP Address
    In new window, scroll down to Basic Configurations
    I can input the basic configurations with no problem.  DHCP Reservation Synchronizations look good too.  But when I get down to DNS Record Synchronization, I can't do anything with the Forward lookup zones because nothing appears in the drop-down
    lists and I cannot manually enter the zone name.  Here is a screen shot of what I see at this point:
    Without completing this information, I cannot complete the Address Reservation.
    Any help or insight will be greatly appreciated.
    Thanks!
    Tom LaLumiere

    Hi Tom,
    This happens if your DNS servers that are managed by IPAM are not authoritative and primary for any zones, if they are not authoritative for the appropriate zones, or if there are not any DNS servers managed by IPAM.
    See the examples below. Here my DNS server is authoritative for 4 forward zones and 2 reverse zones. I can choose any of the forward zones but assuming I pick a range such as 10.0.1.0, I would be unable to choose the 168.192.in-addr.arpa zone because the
    IP addresses do not match.
    -Greg

  • Help! Exception when trying to use Float

    Hi. I'm about to lose my mind trying to fix this exception:
    SubsampleAverage - Parameter value's class (java.lang.Float) is not an instance of the parameter class (java.lang.Double) for parameter "scaleX".It's being thrown by this code,
    public BufferedImage resizeImage(InputStream inputStream)
        BufferedImage resizedImage = null;
        try {
          SeekableStream stream = SeekableStream.wrapInputStream(inputStream, true);
          RenderedOp newImage = JAI.create("stream",stream);
          ((OpImage)newImage.getRendering()).setTileCache(null);
          float scale = targetWidth / newImage.getWidth();
          ParameterBlock pb = new ParameterBlock();
          pb.addSource(newImage);
          pb.add(scale);
          pb.add(scale);
          RenderingHints qualityHints =
            new RenderingHints(RenderingHints.KEY_RENDERING, RenderingHints.VALUE_RENDER_QUALITY);
          resizedImage = (JAI.create("SubsampleAverage",pb,qualityHints)).getAsBufferedImage();
        catch (Exception e)
          this.error = e.getMessage();
        return resizedImage;
      }

    I suspect scale should be a double then.

  • "stack overflow" when trying to connect with Oracle ODBC

    Hi,
    I'm trying to connect to Oracle DB (8.1.7.3.0) from WinNT 4.0 SP6 with Oracle ODBC driver 8.0.6.6.0. I've been trying to connect with "Oracle ODBC Test" and with "MS Query". In either way I end up with Dr. Watson reporting about "stack overflow". Before starting to upgrade ODBC driver I wanted to ask - should these versions of driver and DB work together at all (even unofficially)? Or may I be missing some other thing? Any hints, ideas are welcome.
    Regards,
    Madis Priilinn

    Thank You for replying, Justin!
    Yes, I can connect successfully to the database through other tools - at the moment I tried SQL*Plus, Net8 Easy Config and Schema Manager.
    The Oracle client in the NT machine is 8.0.5.0.0. And unfortunately I do not know anything about the Oracle installation on this machine and at the moment I don't have that person near me too whom to ask also. But I think the installation was ok, because the connection through ODBC was working before the DB upgrade as far as I understood (sorry, again at the moment I don't know what was the previous version of DB. I will ask that information as soon as possible).
    The main problem that bothers me at the moment is that I can't install 8.1.* series OraODBC driver with 8.0.5.0.0 Oracle Installer. I managed to install 8.0.6.6.0 version of the driver, but not the newer ones. As far as I've understood I have to upgrade the whole Oracle in the NT machine to upgrade that installer. Am I correct?
    Regards,
    Madis Priilinn

  • VMM2012 SP1 console giving error message when trying to assign logical networks

    Hello,
    we are encountering the following Situation.
    I have a new Hyper-V Cluster (2012) with at that time two nodes.
    When I try to configure the Logical Network connectivity on a virtual Switch (Preparing the use of multiple VLANs) it works on one of the nodes but on the other one we are getting the following error message:
    Virtual Machine Manager
    VMM is unable to process one of the provided parameters for the cmdlet (Set-SCVMHostNetworkAdapter):
    Cannot convert 'System.Object[]' to the type 'Microsoft.SystemCenter.VirtualMachineManager.HostNetworkAdapter' required by parameter 'VMHostNetworkAdapter'. Specified method is not supported.
    ID: 12416
    Does anyone has an idea what I am missing here?
    Thank you
    Sascha

    Could it be possible that your network adapter does not support VLAN tagging?
    I've run into this issue in my lab using consumer oriented NICs and trying to VLAN networking. A good test would be to do the following:
    Go to Hyper-V Manager
    Create a Virtual Switch and set it to a VLAN.
    Do you get an error message? If so, your NIC (or NIC driver) does not support VLAN tagging. If not, then you are fine and you have a problem with VMM somewhere.
    This issue can also occur due to bad drivers on a NIC card as well.  However, for troubleshooting purposes, you will want to go down to the lowest level (Hyper-V Manager) to make sure that this isn't a Hyper-V issue and really is a VMM issue.
    Hope this helps!
    -Bill

  • Grayed out "This connection is" when trying to assign terminals to sub vi.

    Hi
    I am having trouble assigning terminals to my sub vi. When I click on the connector pane and and right click to show the menu to reveal the "this connection is" field, the field is grayed out.
    Does anybody know what may be the cause of this problem.
    Thanks
    Ashley.

    Hi Ashley
    You first have to assign the controls and indicators to the terminals. Afterwards you can change the "this connection is"-value.
    Thomas
    Using LV8.0
    Don't be afraid to rate a good answer...

  • Error when trying to assign Function Key as Service menu shortcut

    When I try to assign Control-Option-F15 to a Service Menu item in System Preferences > Keyboard > Keyboard Shortcuts I get the following error in the Console:
    9/14/09 10:09:27 AM System Preferences[878] * Assertion failure in +[NSKeyboardShortcut shortcutWithKeyEquivalent:modifierMask:], /SourceCache/AppKit/AppKit-1038.11/Menus.subproj/NSMenu_KeyEquivalents.m:37
    9/14/09 10:09:27 AM System Preferences[878] Invalid parameter not satisfying: c != nil
    Is it possible to assign function keys as keyboard shortcuts to Service menu items?

    I have the same problem (though I didn't look in the Console): I try to assign F8 to one of my services and the shortcut just stays blank. However, I have found a work-around:
    1. Leave the shortcut for the service blank, but make a note of the name -- in my case, "iTunes- PlayPause".
    2. Go to "Application Shortcuts" on the left of the Keyboard Shortcuts preference pane.
    3. Add an item under "All Applications" giving it the name of your service (eg. "iTunes- PlayPause") and you can then assign a function key as the shortcut (eg. F8).
    Since the service appears in the application's "Services" menu, it will now have the shortcut assigned uner "All Applications". An annoying bug, but at least there's a workaround.
    Cheers,
    Jolin

  • Error -6602 when trying to assign backup drive

    get this error when I try to mount my Synology DS207 drive.
    Operation could not be completed. (OSStatus error -6602.)
    any idea why?

    The information from a Google search indicates the error is generated when connecting to a PC share. So this may be some kind of error generated by the NAS' operating system. In any event I cannot find such an error number associated with OS X so if it is an OS X error number then it's not publicly documented. I would still think Synology's tech support should be able to help you since it is their device. If they sent you here then they're passing the buck.

  • Error in shared services when trying to assign access control

    Hi,
    EPM 11.1.2 on windows 7 64 bit.
    I can connect to Essbase server with Administration console.
    In shared services, after clicking on demo application for example, we get an error: "unable to connect". And we cannot get Artifact lilst.
    Any idea please ?

    user643304 wrote:
    Hi,
    EPM 11.1.2 on windows 7 64 bit.
    Any idea please ?Try installing on a supported OS
    http://www.oracle.com/technetwork/middleware/bi-foundation/hyperion-supported-platforms-085957.html
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • "Lock table overflow" error msg when trying to change a repot program

    hi ABAP experts,
    We are getting the following error msg
    "Lock table overflow
    Choose 'Display object' or 'Cancel'.".
    Click the question mark on the same error msg window, then the detailed error msg would like this:
    Message no. MC603
    Diagnosis
    This table overflowed when trying to enter SAP locks in the lock table.
    System Response
    The locks could not be set.
    Procedure
    Contact your system administrator. If this error occurs frequently, change the size of the profile parameter 'enque/table_size'. This parameter defines the size of the lock table in KByte.
    What would be the reason and how to resolve this problem?
    <REMOVED BY MODERATOR>
    Edited by: Alvaro Tejada Galindo on Apr 2, 2008 1:03 PM

    Hi,
    This could be bcos the lock table is getting overflowed beyond the allotted space. Check if any other program/BAPI is causing continuous creation of locks.
    To analyze choose (SM12) Extras Statistics to display the statistics. These are the statistics that have been compiled since the last time the lock server was restarted.
    Check the below link for more information on SAP Lock Concept.
    http://help.sap.com/saphelp_nw04/helpdata/en/7b/f9813712f7434be10000009b38f8cf/content.htm
    For details on Subsequent Analysis of Lock Table Overflows, check the below links.
    http://help.sap.com/saphelp_nw2004s/helpdata/en/d3/43d2416d9c1c7be10000000a1550b0/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/f0/b57338788f4d72e10000009b38f8cf/content.htm
    Hope this helps. <REMOVED BY MODERATOR>
    Thanks,
    Balaji
    Edited by: Alvaro Tejada Galindo on Apr 2, 2008 1:03 PM

  • Problems when trying to connect BW to R/3

    hello all,
    i am new to SAP and am trying to connect my BW3.0 with R/3 4.6c which are on two different laptops. have created a logical source system on R/3 side and assigned it there successfully. have also created a logical system on BW side but when trying to assign it, i am getting an error 'be careful when trying to change the source systems'. have accepted it and after that i cannot go into RSA1- comes up with a message saying 'logical system has been changed'.
    when i go into details of this error message, it will ask me to delete all the transfer structures/rules created earlier and shouldnt be using ALE or work-flow.
    how can i assign the newly created logical system in BW???
    thanks in advance...
    sujan

    hello naveen,
    i will try to explain it again....
    i have already got a source system by name BWINST in my BW system and i have created another logical source system just for the purpose of communicating with my R/3 system. when i tried to assign this new logical system, i get a warning message saying "Be careful when changing your logical system". i have OK'd it and was trying to get into RSA1. I now get an error message saying "Your logical system has been changed and your request will be terminated" and will close the application. It also says that if i need to change my source system to my new one i will have to delete all my transfer structures, and shouldnt be using any ALE or workflow and ....etc. I cannot even get into AWB now but when i change my source system back to BWINST everything works fine.
    so can i use my first source system for communicating with my R/3 system...
    hope this is clear...
    thanks for trying to help me...
    sujan

  • When Role is assigned to User through membership rule then it's membership is not added to OID ?

    Hi All,
          I have OIM 11gR2 installed with  LDAPSync enabled.
    When tried to assign Role to User through membership rule, Role is successfully assigned to User in OIM, but it is not added in OID.
    Role membership is added in OID when User requests Role through Catalog search. Also, Role membership is added in OID after running job 'LDAPSync Post Enable Provision Role Memberships to LDAP '.
    How can I add Role membership in OID  as soon as Role is assigned to User  through membership rule in OIM ?

    Hi
    It sounds like you have not selected anything on the Presentation & Data tab of the Workspace Startpoint/User Service.
    You need to specify:
    Your Asset (the form you want to present to the user)
    An associated Action Profile (tells the server how you want the form rendered...typically it is set to Default which uses the Render PDF Form process)
    The variable to hold your data(typically an xml variable)
    Make sure these are set.
    Diana

  • Black Screen When Trying to Edit Photos

    I have the same problem as many others: When trying to Edit a photo, double clicking it creates a normal enlarged screen but this screen is all black. The problem has been raised by many for some time but no solutions have been identified. Should I be surprised that Apple has not yet addressed or even recognize the problem?

    what does it mean to right con it?
    Sorry - right "click" - fat fingers here
    when i try to view photos on full screen, i now get a black screen with a white exclamation point. i view these pictures earlier this year with no problem. please help!
    That indicates that iPhoto has lost the connection between the thumbnail and the full photo - if you have not been messing around inside the iPhoto library (you NEVER should do this) then backup and rebuild your library - depress the command and options keys and launch iPhoto - rebuild your library form the last automatic database backup - if that does not fix it use the other options - as a last resort use iPhoto Library Manager - http://www.fatcatsoftware.com/iplm/ - to rebuild your library
    LN

  • When I am trying to assign a job to my name, i am getting an error.

    Hi,
    In R12, when I am trying to assign a job to my name, i am getting an error(APP-PER-07510: You cannot continue, Future changes exist).
    my user was end dated. i deleted that end date and trying to working on that, i can create a new user and will work on that user also but that problem is, we have my company unique id , based on that only user should be created.so, what ever i have user id, it had been created and i dont have any scope to create new user.
    simply to say i have to user my end dated user only, how can i use it in feature also.
    Please help me to come out form this situation.
    Thanks,
    Ram.

    Are you using "Shared" HR? You can refer to note >1074384.6 on Metalink for a resolution to this issue. If you are using the full install of HR then refer to note > 786785.1 on Metalink
    Edited by: pillair on Jun 12, 2012 9:03 PM

Maybe you are looking for

  • Delete button not enabled on Inbox Search List

    We are using CRM 2007 sp4.  In one of our Web Interaction Centers we want to allow certain end users the ability to delete certain transactions from the inbox search list.  At present when an item in the result list on the inbox [Component ICCMP_INBO

  • BPA shows domain prepped for Exchange 2007 SP1 after SP3 install

    Hello, I have a Client with a domain that is at 2003 domain functional level and 2000 forest level. The client had Exchange 2007 SP1 and I have just upgraded it to SP3. There is one CAS, one Hub Transport, and one Mailbox Server (All three had Exchan

  • WORKLIST transactioon for SOURCIGN in SRM 7

    Hi, We are on SRM 7.1 I'm new to SRm 7 and hecne wanted to check what is the trasnction and under which role which will be used to see the worklist for any Buyer? In SRM,we had the SOURCING trasnction which would have two tabs:1 worklist and other FI

  • Navigation issue on iPad Content Viewer

    I'm just testing out Content Viewer on my iPad (4th gen) and when I preview on the device I can't seem to access the naviagtion. i.e Home button, Contents etc... Its should be a simple one tap to get this information but it doesnt appear. I have turn

  • Time statement variant

    I want to run time evaluation for just one employee subgroup on a particular day. I figured out the method how to do that. Its by further selection tab on PT60 transaction , but My problem is that i want to create a variant so that the end user doesn