SSAS 2005 Error converting numeric to double

Hello,
   im getting error: "Errors in the back-end database access module. OLE DB was unable to convert a value to the data type requested for column 0.", "Errors in the OLAP storage engine: An error occurred while the 'Unit Price' attribute of the 'Dim Work' dimension from the 'S1_DWH' database was being processed." This error rises when OLAP tries to convert numeric(18,6) to double with value less than 1 and bigger than -1. Same problem with measures with these values. With any other values cube and dimensions works well. This error occured on production server.  On dev server works well without any errors.
Any ideas?

Hi,
This issue could be caused by the data difference between dev DW and product DW. Could you check if there is unexpected null value in database? Also, if you are using named query, could you run the query on product server for test?
Here are two similar threads:
http://social.msdn.microsoft.com/forums/en-US/sqlanalysisservices/thread/1c06a7a6-9885-4756-a055-50b83b25029e/
http://social.msdn.microsoft.com/Forums/en-US/sqlanalysisservices/thread/74d4a3d4-72fe-46fb-b3a0-a8bab7ac643f
Hope this helps.
Raymond

Similar Messages

  • Error converting data type nvarchar to numeric 'witholding tax' (OWHT)

    Hi Guys.
    After I have upgraded my clients 2007 PL 30 database to 8.81 PL05, and running a repair to fix inconsistincies, I am receiveing some error when opening any sales documents.
    It takes place when I open a sales document, or browse previous docs. When browsing previous docs, it onlly happens on some of them.
    I also receive a different error when viewing sales orders: Error converting data type nvarchar to numeric (CRD2).
    Any ideas how to fix it?
    It does not limit me from processing and using the rest of the functionality. All calculations with queries in the docs are still working.
    Thanks.

    Hi,
    Please check Note No. : 1402855 and see if the same applied to the issue mentioned by you.
    Kind Regards,
    Jitin
    SAP Business One Forum Team

  • Saving result from sp_executesql into a variable and using dynamic column name - getting error "Error converting data type varchar to numeric"

    Im getting an error when running a procedure that includes this code.
    I need to select from a dynamic column name and save the result in a variable, but seem to be having trouble with the values being fed to sp_executesql
    DECLARE @retval AS DECIMAL(12,2)
    DECLARE @MonthVal VARCHAR(20), @SpreadKeyVal INT
    DECLARE @sqlcmd AS NVARCHAR(150)
    DECLARE @paramdef NVARCHAR(150)
    SET @MonthVal = 'Month' + CAST(@MonthNumber AS VARCHAR(2) );
    SET @SpreadKeyVal = @SpreadKey; --CAST(@SpreadKey AS VARCHAR(10) );
    SET @sqlcmd = N' SELECT @retvalout = @MonthVal FROM dbo.CourseSpread WHERE CourseSpreadId = @SpreadKeyVal';
    SET @paramdef = N'@MonthVal VARCHAR(20), @SpreadKeyVal INT, @retvalout DECIMAL(12,2) OUTPUT'
    --default
    SET @retval = 0.0;
    EXECUTE sys.sp_executesql @sqlcmd,@paramdef, @MonthVal = 'Month4',@SpreadKeyVal = 1, @retvalout = @retval OUTPUT;
    SELECT @retval
    DECLARE @return_value DECIMAL(12,2)
    EXEC @return_value = [dbo].[GetSpreadValueByMonthNumber]
    @SpreadKey = 1,
    @MonthNumber = 4
    SELECT 'Return Value' = @return_value
    Msg 8114, Level 16, State 5, Line 1
    Error converting data type varchar to numeric.

    Please follow basic Netiquette and post the DDL we need to answer this. Follow industry and ANSI/ISO standards in your data. You should follow ISO-11179 rules for naming data elements. You should follow ISO-8601 rules for displaying temporal data. We need
    to know the data types, keys and constraints on the table. Avoid dialect in favor of ANSI/ISO Standard SQL. And you need to read and download the PDF for: 
    https://www.simple-talk.com/books/sql-books/119-sql-code-smells/
    >> I need to select from a dynamic column name and save the result in a variable, but seem to be having trouble with the values being fed to sp_executesql <<
    This is so very, very wrong! A column is an attribute of an entity. The idea that you are so screwed up that you have no idea if you want
    the shoe size, the phone number or something else at run time of this entity. 
    In Software Engineering we have a principle called cohesion that says a model should do one and only one task, have one and only one entry point, and one and only one exit point. 
    Hey, on a scale from 1 to 10, what color is your favorite letter of the alphabet? Yes, your mindset is that level of sillyity and absurdity. 
    Do you know that SQL is a declarative language? This family of languages does not use local variables! 
    Now think about “month_val” and what it means. A month is a temporal unit of measurement, so this is as silly as saying “liter_val” in your code. Why did you use “sp_” on a procedure? It has special meaning in T-SQL.  
    Think about how silly this is: 
     SET @month_val = 'Month' + CAST(@month_nbr AS VARCHAR(2));
    We do not do display formatting in a query. This is a violation of at the tiered architecture principle. We have a presentation layer. But more than that, the INTERVAL temporal data type is a {year-month} and never just a month. This is fundamental. 
    We need to see the DDL so we can re-write this mess. Want to fix it or not?
    --CELKO-- Books in Celko Series for Morgan-Kaufmann Publishing: Analytics and OLAP in SQL / Data and Databases: Concepts in Practice Data / Measurements and Standards in SQL SQL for Smarties / SQL Programming Style / SQL Puzzles and Answers / Thinking
    in Sets / Trees and Hierarchies in SQL

  • Error: Numeric underflow: double literal too small.

    Hi!
    For some reason from the line...
    private static final double TIME_TO_PAINT_DIALOG = 0.050;
    ... I get error mentioned in the subject field. My Java version is: "Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1-b24)".
    Could someone please tell me what�s wrong!!??
    /jasurakka

    >
    I�m not quite sure what do you mean... On the line 75
    there is:
    private static final double TIME_TO_PAINT_DIALOG =
    0.050;
    And when I compile, I get the error:
    Error:
    Y:\nemu_em\src\com\nokia\em\applauncher\ThinClient\cli
    nt\login\Installer.java(75): Numeric underflow: double
    literal too small.
    What else do you need...?It helps to know that it is a compile error.
    Remove every other line in the class except for that one and compile it again.
    Compile it using the command line tools and not as part of any other application (like an ide or as part of a web installer.)

  • 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

  • Arithmetic Overflow error converting float to data type numeric

    Hi,
    Am facing strange issue,I have function which returns money datatype and assigning the return money value to float datatype in table.
    Error msg:
    Msg 8115, Level 16, State 6, Procedure GBCalcCatalogPriceNewV2, Line 204
    Arithmetic overflow error converting float to data type numeric.
    The statement has been terminated.
    Strange thing is the same stored procedure is working fine in production environment,but in the deveopment i see this error.Am scared if the same happens in the production environment.Please advice and advance
    thanks
    Regards
    RAj

    Strange thing is the same stored procedure is working fine in production environment,
    How could that be strange? This is an error that occurs depending on the data. Accidents that are waiting to happen will happen sooner or later.
    Then again, a development database may be more prone to such errors, because data that entered are completely out of whack with real life data. Still it is a warning sign. If you have some place where you convert data from float to numeric, you must consider
    the risk that the float value is outside the range for the numeric data type. How do you prevent that from happening? Maybe a CHECK constraint on the column? Of if the data origins from a money column, use a numeric data type with sufficient precision.
    Erland Sommarskog, SQL Server MVP, [email protected]

  • WIS 10901 error when creating a webi report based on OLAP unv (SSAS 2005)

    Hi,
    I'm using two VM.
    Machine A is running SSAS 2005. I'm able to create SSAS cube. Everything is ok
    Machine B is runing BO XIR3.1. I'm able to create webi report on relational DB without any problem or opening samples.
    Both VM machines are on the same custom network and I'am able to ping both. SQL managment server studio is installed on both machines. I'm able to manage SSAS from B also and not only from A.
    Creating unv with BO designer on machine B is OK, connexion is runing and universe has been created and published on the BO server
    But when I create a webi report from B, using my OLAP unv based on SSAS located on machne A I recieve following error message :
    Une erreur de base de données s'est produite. Le message d'erreur est le suivant : . (WIS 10901)
    thanks for your help,
    Nicolas

    Hi
    Ya I used SAP authentication - then also get same error.
    Connections are created with username, password to access SAP Source
    Thanks!
    J>M>Raj
    Edited by: John Milton on Jun 25, 2009 10:03 AM

  • While Browsing SSAS 2005 Cube Getting Error " The following system error occurred from a call to GetOverlappedResult for Physical file: Logical file: '' : Insufficient system resources exist to complete the requested service."

    Hi Guys,
    When I try to Brows Cube (SSAS 2005), I get below error (Sometimes):
    TITLE: Microsoft SQL Server 2005 Analysis Services
    Server: The operation has been cancelled.
    The following system error occurred from a call to GetOverlappedResult for Physical file: '\\?\F:\Program Files\Microsoft SQL Server\MSSQL.2\OLAP\Data\XXX_2012.0.db\XXX DC.0.cub\FACT_XXX.0.det\PARTITION_2013Q31.0.prt\674.fact.data', Logical file: '' : Insufficient
    system resources exist to complete the requested service. .
    The following system error occurred from a call to GetOverlappedResult for Physical file: '\\?\F:\Program Files\Microsoft SQL Server\MSSQL.2\OLAP\Data\XXX_2012.0.db\XXX DC.0.cub\FACT_XXX.0.det\PARTITION_2013Q23.0.prt\385.fact.data', Logical file: '' : Insufficient
    system resources exist to complete the requested service. .
    BUTTONS:
    OK
    and I think due to above Error, Index on a Particular Attribute (EMP_ID) of a DIMENSION DIM_EMP is getting dropped from FEW of the Partitions (Folders) and started getting new error:
    TITLE: Microsoft SQL Server 2005 Analysis Services
    File system error: The following error occurred while opening the file '\\?\F:\Program Files\Microsoft SQL Server\MSSQL.2\OLAP\Data\XXX_2012.0.db\XXX DC.0.cub\FACT_XXX.0.det\PARTITION_2013Q31.0.prt\688.DIM_EMO.EMP_ID.fact.map'.
    BUTTONS:
    OK
    I followed the above path and did not find file 688.DIM_EMO.EMP_ID.fact.map in folder PARTITION_2013Q31.0.prt. Once I rebuild the Index (ProcessIndex) for this partition, I am able to See file 688.DIM_EMO.EMP_ID.fact.map.
    But again when next time I get error "Insufficient system resources exist to complete the requested service", Then 688.DIM_EMO.EMP_ID.fact.map will be dropped and will not be available in folder PARTITION_2013Q31.0.prt.
    Anyone had similar issue. Could you please share your experience and resolution if any.
    Thanks Shiven:) If Answer is Helpful, Please Vote

    Hi Shiven,
    In your scenario, the issue occur at sometimes, right? Base on my research, the issue can be caused by that calculation estimate exceeded available memory. Possibly due to possible number of dimension members and sizes of keys. And 32bit environment didn’t
    allow for any expansion to the SSAS memory space.
    To avoid this issue, please try to use userva to fine tune the 3GB setting down to 2900 since /3GB is the likely
    cause (has been for most other customers who encountered the same problem before). The KB Articles below discuss that setting in detail.
    How to use the /userva switch with the /3GB switch to tune the User-mode space to a value between 2 GB and 3 GB
    Regards,
    Charlie Liao
    TechNet Community Support

  • Voyager SSAS 2005 SSO connection

    Hi,
    We are using BO Xi 3.1 and we have sso is configured for Infoview, now we are trying to configure SSO till database for Voyager (SSAS 2005), and we receieved the error message, We made change in the krb5.ini file with an entry of "forwardable = true", as well as on SSAS server, made changes for service account like spn entry and delegation for the service account but still no luck.
    Here are couple of things we observed:
    1) When i gave windows username and password in CMC for cube and create voyager reprot it works fine.
    2) When i use SSO then it failed with error saying " An Error has occured while attempting to connect to the OLAP Server. Failed to Intialize (The component for microsoft OLE DB Provider for analysis service 2008. returned the server error (an error has encounter in transport layer; The peer prematuarly closed the connection)
    3) I login to sql profiler to see the credentails it passes but when i try to create voyager with SSO it doesn't passes the windows credentails instead it passes "anonymous" login.
    I opened the tech support ticket but i didn't getting much help from them.
    Thanks for the help in advance.

    Hello,
    Sorry for my English.
    Can you send the SETSPN commands you ran?
    The Voyager connections, the server name you have put in capital letters and the domain name in full format?
    Sorry.

  • Statistical Setup Error - Error Converting Quantity

    Dear SDN Mates,
    We are getting this below error while doing the statistical setup for SD extraction in 11 application,
    Error converting quantity: unit M numerator 0 / denominator 0.
    Regards
    Arun S

    Hi guys,
    I have the same error with below message :
    Error determining rate: foreign curr.  local curr.KRW date 17.06.2011 (doc. 14024)
    I checked data in table VBAK with sale document 14024, some information of this data record related above error :
    + ERDAT (Date on Which Record Was Created) : 17.06.2011
    + WAERK (SD Document Currency) : KRW
    + STWAE (Statistics currency) : <BLANK>
    I tried to create 2 new records in Currency Exchange Rates (OB08), like this :
    But there're still error.
    Please give some ideas to solve it.
    Regards
    Dennis Vu,

  • How to convert BigDecimal to double

    Error Message: {http://xmlns.oracle.com/OracleRules1/OracleRules1_DecisionService_1}operationErroredFault
    Fault ID default/BusinessRule2!1.0*b48a0c26-0b59-41e0-8939-55c7589d76f1/BusinessRule2_BPELProcess/10004-BpInv0-BpSeq2.9-4
    Fault Time Jan 15, 2010 11:52:33 AM
    Non Recoverable System Fault :
    <bpelFault><faultType> <message>0</message></faultType><operationErroredFault xmlns="http://xmlns.oracle.com/OracleRules1/OracleRules1_DecisionService_1"><part name="payload"><errorInfo xmlns="http://xmlns.oracle.com/OracleRules1/OracleRules1_DecisionService_1"><errorMessage>cannot convert from type 'java.math.BigDecimal' to type 'double' at line 5 column 9 in main</errorMessage></errorInfo></part></operationErroredFault></bpelFault

    >
    > how to convert bigdecimal to double in webdynpro java
    Hi,
    Try this:
    double x = wdContext.currentContextElement().getBigdecimalAttribute().doubleValue();
    Refer methods applicable on Bigdecimal here -
    http://code.google.com/android/reference/java/math/BigDecimal.html
    Regards,
    Anagha
    Edited by: Anagha Jawalekar on Nov 17, 2008 12:08 PM

  • Arithmetic overflow error converting expression to data type int

    Hi
        iam creating on sp for  the  database total size , used mb and  free size .  percentage free . 
     in  this purpose i was creating on sps, with in the sp iam was writing  one select statement . it  statement is    
    SELECT [Drivename] ,[DataSizedUsedMB],[DriveFreeSizeMB],DriveTotalSizeMB,
      CAST( (DriveFreeSizeMB/DriveTotalSizeMB)*  100 AS NUMERIC(5,2))
       As
      [PercentFree] ,[DateRecorded] FROM 
    SELECT SUBSTRING([physical_name],1,1) AS Drivename,
      CAST(((SUM(COALESCE(size,0)))*8)/1024 AS NUMERIC(20,2)) AS DriveTotalSizeMB,
      CAST(((SUM( COALESCE( FILEPROPERTY( [name],'SpaceUsed'),0)))*8)/1024 AS NUMERIC(20,2)) AS DataSizedUsedMB,
      CAST(((SUM(COALESCE(size,0))-SUM(COALESCE(fileproperty([name],'spaceused'),0)))*8/1024)AS NUMERIC(20,2)) AS DriveFreeSizeMB
      ,SYSDATETIME()  AS [DateRecorded]
    FROM sys.master_files 
    GROUP BY SUBSTRING([physical_name],1,1))  AS Data
      it was executive one  server with out error  but the same select  statement is writing antoher server iam geeting  belo error.
    "@ErrorDesc: Line 24 - Line 13- Arithmetic overflow error converting expression to data type int." 
      how to slove this issue..
    please help me...

    Change 8 to 8E0, to make it a float literal. The data type of
    SUM(COALESCE(size,0)))*8)
    is int, since all components are int, and it can easily overflow the size for an int. If you use 8E0, you get a float, and the entire expression will be float.
    Erland Sommarskog, SQL Server MVP, [email protected]

  • Dump error while creating or double click the info package

    Hello experts,
    I have actived infocube 0FIAR_C03 in BI content. Ago, The creation infopackage have been deleted in the past , today, I  created a infopackage, while I update mode selected u2018initialize delta processu2019, then click save button , the system prompt u2018Deltas already loaded for request  REQU_D64R47LDUSZHY9CBIB86WMLFJ init.selection; no 2. initu2019, I canoti save it for my setting. Why is this?
    Then I have search cause in SDN,  and I have reference OSS Note 852443 to do .
    Note 852443 have mention some table: RSSELDONE、RSSDLINIT、RSSDLINITSEL、ROOSPRMSC、ROOSPRMSF.
    I have to delete that request of record using se16 in these tables: RSSELDONE、RSSDLINIT、RSSDLINITSEL.
    in my BI 7.0 system,   ROOSPRMSC、ROOSPRMSF is no any data.
    I was no found delta queue in RSA7.
    Now . Dump error while creating or double click the info package,  how can I change this?
    Please let me know the solution.
    Thanks for your help.
    Best Regards
    Steve

    Here are some links  which deals with same issue.
    Re: Dump In Infopackage
    Re: Getting into Short dump at the time of selecting InfoPackage to execute for
    Short dump while performing init in infopackage
    Re: Infopackage going into short dump
    Thanks.

  • Error synchroniz​ing with Windows 7 Contacts: "CRADSData​base ERROR (5211): There is an error converting Unicode string to or from code page string"

    CRADSDatabase ERROR (5211): There is an error converting Unicode string to or from code page string
    Device          Blackberry Z10
    Sw release  10.2.1.2977
    OS Version  10.2.1.3247
    The problem is known by Blackberry but they didn't make a little effort to solve this problem and they wonder why nobody buy Blackberry. I come from Android platform and I regret buying Blackberry: call problems(I sent it to service because the people that I was talking with couldn't hear me), jack problems (the headphones does not work; I will send it again to service). This synchronisation problem is "the drop that fills the glass". Please don't buy Blackberry any more.
    http://btsc.webapps.blackberry.com/btsc/viewdocume​nt.do?noCount=true&externalId=KB33098&sliceId=2&di​...

    This is a Windows registry issue, if you search the Web using these keywords:
    "how to fix craddatabase error 5211"       you will find a registry editor that syas it can fix this issue.

  • Crystal Data Conversion Issue (Error converting data type varchar to datetime)

    Hi,
    I can run stored procedure without error in SQL Server using my personal credentials as well as database credentials.
    I can also run Crystal Report after connecting to Stored procedure without error on my desktop using my personal credentials as well as database credentials.
    But when I upload the crystal report in BOBJDEV and when I run using database credentials report fails saying that "Error in File ~tmp1d1480b8e70fd90.rpt: Unable to connect: incorrect log on parameters. Details: [Database Vendor Code: 18456 ]" but I can run the crystal report successfully on BOBJDEV using my personal credentials.
    I googled (Data Conversion Error Message) about this issue & lot of people asked to do "Verify Database" in Crystal Report. So I did that, but when I do it I am getting a error message like this:
    Error converting data type varchar to datetime.
    Where do you think the error might be occurring? Did anyone faced this kind of issue before? If so, how to resolve it?
    (FYI, I am using Crystal Reports 2008, & for stored procedure I have used SSMS 2012 )
    Please help me with this issue.
    Thanks & Regards.
    Naveen.

    hello Naveen,
    since the report works fine in the cr designer / desktop, we need to figure out where you should post this question.
    by bobjdev do you mean businessobjects enterprise or crystal reports server? if so please post this question to the bi platform space.
    -jamie

Maybe you are looking for