Power query from ODBC :"DataSource.Error: Arithmetic operation resulted in an overflow"

Good day
Everytime I want to pull data into a query from our servers it gives the error "DataSource.Error: Arithmetic operation resulted in an overflow". What is the reason for this error, and how do I get past this bump.
Thanks in advance
Arnoux

Hey Tristan. Thanks I did that yes.
For some reason my direct MySQL connection does not want to work.
I get the following error
DataSource.Error: MySQL: Unable to find a database provider with invariant name 'MySql.Data.MySqlClient'.
This error may have been the result of provider-specific client software being required but missing on this computer.  To download client software for this provider, visit the following site and choose at minimum 'MySQL Connector/Net':

Similar Messages

  • ODBC BI Server Bug - arithmetic operation resulted in an overflow

    I am trying to write some really simple .NET code access the Oracle BI Server ODBC driver and it's not working at all.  I've connected fine, however it seems like anything I try to do related to getting database information spits up an error "arithmetic operation resulted in an overflow".
    Here is the code:
    Dim ConnectString As String
    Dim FactoryType As String
    Dim Factory As System.Data.Common.DbProviderFactory
    Dim Connection As System.Data.Common.DbConnection = Nothing
    Dim TablesData As System.Data.DataTable = Nothing
    Dim err As String = ""
    Dim nl As String = Chr(13) + Chr(10)
    Try
        ' Connect to the database via ODBC
        ConnectString = "DSN=BSODBC_7;uid=TheUser10;pwd=************"
        FactoryType = "System.Data.Odbc"
        Factory = System.Data.Common.DbProviderFactories.GetFactory(FactoryType)
        Connection = Factory.CreateConnection
        Connection.ConnectionString = ConnectString
        Connection.Open()
        ' Request a list of tables from the database
        ' ** Tried both with restrictions and without
        ' ERROR on this line:
        ' “Arithmetic operation resulted in an overflow.”
        TablesData = Connection.GetSchema("Tables")
        ' Show the list of tables on the screen in a grid
        ' If it was successful.
        OnScreenGrid.AutoGenerateColumns = True
        OnScreenGrid.DataSource = TablesData
    Catch ex As Exception
        ' Report the error
        err = ex.Message
        If Not (ex.InnerException Is Nothing) Then
            If Not (ex.InnerException.Message Is Nothing) Then
                err = err + nl + nl + ex.InnerException.Message
            End If
        End If
        MsgBox(err, MsgBoxStyle.OkOnly + MsgBoxStyle.Exclamation, "Error")
    Finally
        ' Clean up and Close the DB Connection
        If Not (Connection Is Nothing) Then
            Connection.Close()
            Connection.Dispose()
            Connection = Nothing
        End If
    End Try
    Any Thoughts?  Is this a known bug?  Is there a fix?

    I doubt on line
    OnScreenGrid.DataSource = TablesData
    instead of array as TablesData try to take List object and assign it to OnScreenGrid.DataSource
    just in case check this
    DataGridView.AutoGenerateColumns Property (System.Windows.Forms)
    I might be wrong but just check it

  • MySQL connection and Arithmetic operation resulted in an overflow

    Hi
    I installed MySQL connector and created a user DSN. In SSIS, a data source connection using ADO Net Source created and I was able to run a simple select statement in preview. But when I run a test transferring data from MYSQL to SQL, I got the following
    error.
    Error: 0xC0047062 at Data Flow Task, ADO NET Source [59]: System.OverflowException: Arithmetic operation resulted in an overflow.
       at System.Data.Odbc.SQLLEN.op_Implicit(SQLLEN value)
       at System.Data.Odbc.OdbcDataReader.BuildMetaDataInfo()
       at System.Data.Odbc.OdbcDataReader.GetSchemaTable()
       at Microsoft.SqlServer.Dts.Pipeline.DataReaderSourceAdapter.PreExecute()
    I tested by limiting only 100 records of a single column and it worked. when I changed it to 1000 limits, I get an error.
    I am wondering if this has to do with the size of the records. What is going on here?

    This means you chose a too limiting datatype.
    You need to enlarge the one in question, or use a different one that can accommodate greater values.
    Arthur My Blog

  • Arithmetic operation resulted in an overflow - The remote server returned an error: (407) Proxy Authentication Required

    Hello I read and tried the previous forum suggestions. I have deleted the role and readded it. I use a domain account that is able to get through the proxy. Each time a variant of the Proxy error is returned. The site is on server 2008 R2.
    The AI certificate is valid and specified in the console. I am not sure what could be missing. Everything used to work as specified on Server 2003. This configuration is the same, but it is no longer able to sync. Thanks.   

    Would recommend that you elaborate on what issue you are facing so that the community can help.
    Blog: http://theinfraguys.com
    Follow me at Facebook
    The Infra Guys Facebook Page
    Join the Singapore System Center Admin Group
    SG System Center Admin Group
    Please remember to click Mark as Answer on the answer if it helps you in anyway

  • Migrate tables and data from ODBC datasource to Oracle 11.2

    Hiya
    I have a database file in Dynamics NAV 5.0 native format - about 200-300 tables totalling maybe 10 GB worth of data.
    My task is to migrate those tables with their data into a schema in our Oracle 11.2 database.
    No tools support the NAV format directly :-) But I have a windows ODBC driver for that format that works.
    The Oracle database runs on Linux and I have no ODBC transparent gateway and no linux ODBC driver that would let me access the NAV datafile directly from within Oracle.
    I tried migration wizard in SQL Developer, but it seems it cannot use a "generic ODBC" datasource (even with JDBC-ODBC bridge), it must be a supported database format?
    Then I have tried trial of product Altova MapForce, but it can't seem to read the schema (table/columns) from the ODBC datasource for some reason.
    I know reading the schema from the ODBC datasource is possible - I have used third party product "Database Browser" that reads the ODBC with no problems.
    And a colleague has read the schema of the ODBC in C# also.
    I am primarily a SQL developer. My colleague said he could write in C# a program that looped over the tables in the ODBC, read the columns, executed "create table" in Oracle, read data from the ODBC, inserted data in Oracle.
    But he is going on vacation right now :-( And I keep thinking that someone else must have written such a migration program ;-)
    I just can't seem to find it by googling? Altova Mapforce was my best bet, but it just seems to have problems with this specific ODBC datasource.
    Any ideas for a migration tool that can accept a generic ODBC datasource and not specifically SQL Server, MySQL, DB2, etc.?
    Thanks for any hints that might help ;-)
    Regards
    Kim Berg Hansen

    Hi Kim,
       The earlier 9i and 10g generic connectivity option - HSODBC - could only run as part of the RDBMS but the 11g DG4ODBC can be installed and run standalone without an RDBMS.  You then connect using database links from Linux using an entry in the RDBMS tnsnames.ora as you have said.
    See these notes depending if Windows is 32-bit or 64-bit -
    How to Configure DG4ODBC (Oracle Database Gateway for ODBC) on Windows 32bit to Connect to Non-Oracle Databases Post Install (Doc ID 466225.1)
    How to Configure DG4ODBC (Oracle Database Gateway for ODBC) on 64bit Windows Operating Systems to Connect to Non-Oracle Databases Post Install (Doc ID 1266572.1)
    The latest 11.2 version is available from My Oracle Support as -
    Patch 13390677: 11.2.0.4.0 PATCH SET FOR ORACLE DATABASE SERVER
    and for the gateways you only need to download -
    p13390677_112040_WINNT_4of6.zip
    for 32-bit but
    p13390677_112040_MSWIN-x86-64_5of7.zip
    for 64-bit.
    The downloads have everything necessary for a gateway standalone install.
    Regards,
    Mike

  • Fill blank cells in power query from the cell above

    Is it possible in Power Query to fill blank 
    In excel I can choose them by using "go to special" > "blanks" dialogue, and using referrence like "=R-1C"
    Is it possible to fill this blank cells with value of cell above if Import this file in power query? 
    Thank you

    I am using Power Query preview Version: 2.9.3547.162 and there is a 'Fill Down' command in the transform section that does just that. 
    Bertrand

  • Moving Power Query from Excel to SSAS

    We are using Excel 2013 Power Query and PowerPivot to build data models that will be moved to SSAS Tabular. Are there any gotchas that will not import? I have seen in testing that we have to be careful about importing files. Excel likes drive letters and
    SQL Server prefers the UNC path. We aren't likely to have many/any files in the production state, but I'm wondering if there are other gotchas like this, especially with Power Query.

    Any ideas for Mike?
    Thanks!
    Ed Price, Azure & Power BI Customer Program Manager (Blog,
    Small Basic,
    Wiki Ninjas,
    Wiki)
    Answer an interesting question?
    Create a wiki article about it!

  • Need arithmetic operation result in Fixed point arithmetic disabled prg

    Hi,
    I am writing an enhancement which is in standard SAP program which is not enabled for 'Fixed arithmetic' calculations.
    I need to do some actual arithmetic operation involving packed numbers in my enhancement.
    Say 
    p1 = '2.00'
    p2 = '12.00'.
    result = p1 * p2.
    result coming is 2400.00. This is because Fixed point arithmetic is disabled in standard program.
    I need a result of 24.00 . Is there any solution to this apart from dividing it with 100?
    Regards,
    Dhana

    based on P1 and P2 values you need to divide the value with 100 or 1000 as per the number of decimals on P1 and P2

  • BI SERVER ODBC datasource error

    Hello,
    30 mnts before all the application is working.Now i am getting the following error when trying to configure odbc data source
    [nQSerror:12008] Unable to connect to port 9703 on machine 'hostname'
    [nqserror:12010] Communication error connecting to remote end point: address = hostname;port = 9703
    [nqserror:12002] Socket communication error at call=: (Number = -1) Unknown
    I am getting this error when i tried to login from the BI Answers
    Odbc driver returned an error (SQLDriverConnectW).
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 12008] Unable to connect to port 9703 on machine LOCALHOST. [nQSError: 12010] Communication error connecting to remote end point: address = LOCALHOST; port = 9703. [nQSError: 12002] Socket communication error at call=: (Number=-1) Unknown (HY000)
    Before that every thing used to work just fine.
    what might the reason behind this?
    Please suggest.
    Thanks in advance

    Hello,
    In my case NQSconfig.ini file has some additional entries for the repositories.
    As soon as I deleted those additional entries just keeping only the required repository entry, BI server is started.
    Try looking in the log file.
    Thanks.

  • Can I use Power Query to Import a table from Excel sheet range which starts not from the top row?

    Hi,
    Being an experienced Excel user before Power BI, I am just starting to explore the M and Power Query capabilities, and need help already (ain't easy to google this use case somehow):
    I need to import the table which sits in the Excel file with header row in the row 17 of Excel sheet, with some metadata header in the preceding rows of the columns A and B.
    01: Report name, Quick Report
    02: Report Date, 1/1/2014
    17: Employee Name, Manager, etc...
    18: John Doe, Matt Beaver, etc.
    Both (a) direct attempt to load as Excel file and (b) the indirect way through [From Folder] and formula in custom column -- both lead to the same error: "[DataFormat.Error] External table is not in the expected format."
    Specifically, I tried to use the [Power Query -> From File -> From Folder] functionality, select an Excel file and add a custom column to access the binary content: [Add Custom Column] with formula "=Excel.Workbook([Content])".
    It looks like Power Query expects a rectangular range with headers full-width followed by a contiguous table range to import anything, and refuses to load if that is not the case...
    QUESTION: Is there any way to load whatever-formatted data from Excel first, and then manipulate the overall imported range (like referring to rows starting from 17th using "Table.SelectRows" etc.) to read the actual data? Reading and using
    the metadata from header would be a bonus, but that comes second... The main issue is to get something from a non-regular Excel file to later work with using M formulae ...
    Thanks!
    SAM

    Finally found the answer to this one in ():
    You Cannot Open a Password-Protected Workbook
     If the Excel workbook is protected by a password, you
      cannot open it for data access, even by supplying the correct password with
      your connection settings, unless the workbook file is already open in the
      Microsoft Excel application. If you try, you receive the following error
      message:
    Could not decrypt file.
    ANSWER: So, will have either weave in the work with temporary unprotected files or requires opening them before updating the data source (although this almost defeats the purpose of automation...)
    ANSWER to ORIGINAL QUESTION: password was preventing Power Query from reading the Excel file. For solution see above.
    Thanks anyway for participation and inspiration, Imke!

  • Can I query to PowerShell scripts from Power Query ?

    Can I query to PowerShell scripts from Power Query ?
    I want to use PowerShell result for Data Visualization in Excel.
    Like importing from web, odata, hdinsight, etc,
    I want to import result of PowerShell script.
    PowerShell can do a lot of system management.
    Regards,
    Yoshihiro Kawabata 

    This is not possible today and is not something that's likely to be implemented. The combination of being able to easily share queries and being able to easily launch external scripts that can do anything supported by the current user's permissions is
    something of a security nightmare.

  • Office 365 Excel Power Query Preview Problem Signing In -- Appears Corrupted, Please Repair

    The image below shows that Excel "thinks" I'm signed in with an organizational account that has Power BI Preview, yet Power Query from Excel doesn't think I'm signed in and says it's corrupted when I try to sign in.  I was trying to use the
    online search to find the odata feed that I have set up for Office 365 Power BI Preview.  So, alternatively, when I go to other data sources and specify the odata feed that is set up properly and available, Microsoft says "access forbidden". 
    Clearly, account credentials aren't being passed correctly.  I have read other posts on this forum and have verified that I have the latest Power Query Preview, that I only use lower case letters to sign in, that IE cache is clear.  I have repaired,
    uninstalled and re-installed Power Query Preview multiple times, with no change in this behavior. 
    Any ideas?
    Neil

    Zarar, yes, tried that, and much more. 
    Even though Power BI is supposed to navigate through firewalls, I believe we are having firewall problems. 
    I need to ask our network people to open up for Microsoft on this one, but there's no good information out there on the sites/IPs required to make Power BI Preview work. 
    In addition, the complexity that comes with using domain credentials, Microsoft Account (live) credentials, and Organizational credentials (O365) on the same computer at various times of the day complicates matters.
    That said, I can take my machine to my home network and get as far as attempting to connect to the odata feed I set up -- except the data source is on a computer with an internal IP and Power Query cannot resolve the local computer name -- i.e. x.x.local. 
    So now, I have two questions:
    1. What IPs need to be unblocked to make Power BI work?
    2. Is there a way to get the odata feed to work when the datasource is on an internal network (the datasource is working and tests okay from Power BI Admin -- but does not resolve the machine name when coming in through Excel via the odata feed from an off-site
    location
    Neil

  • Power Query Update breaks connection to PostgreSQL database

    After the update to Power Query 2.11.3625.144, we can't connect our PostgreSQL database anymore. 
    Error message is: 
    DataSource.NotFound: PostgreSQL: Unable to find a database provider with invariant name 'Npgsql'.
    This error may have been the result of provider-specific client software being required but missing on this computer.  To download client software for this provider, visit the following site and choose at minimum 'Npgsql version 2.0.12': http://go.microsoft.com/fwlink/?LinkID=282716
    Readding the Npgsql driver doesn't solve the issue. Has the version requirement changed with the Power Query update? Or is PostgreSQL connectivity completely broken?

    Hmm, 
    If I add the line, I get the following error message in Power Query: 
    'Npgsql' returned the error: 'Unrecognized element. (C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Config\machine.config line 169)'.
    This error may have been the result of provider-specific client software being required but missing on this computer.  To download client software for this provider, visit the following site and choose at minimum 'Npgsql version 2.0.12': http://go.microsoft.com/fwlink/?LinkID=282716
    The code in the machine config looks like this: 
      <system.data>
            <DbProviderFactories />
            <add description=".Net Framework Data Provider for Postgresql Server" type="Npgsql.NpgsqlFactory, Npgsql, Version=2.0.12.0, Culture=neutral, PublicKeyToken=5d8b90d52f46fda7" name="Npgsql Data Provider" invariant="Npgsql" support="FF"/>
        </system.data>
    The node seems to be empty by default. Can it be that the surrounding stuff has to be differently written in that case?

  • Using Power Query in Excel for Power BI Report with OData Feedfack

    I am trying to get the data into Excel Power Query from Dynamics CRM 2013 using OData Feedback.
    Every thing works fine but the data that I retrieve in Power Query Editor shows columns as Record and when I expand it by selecting Value option shown it provides me the data in integer format whereas I want the name.
    Basically it only provides me the value or id of the field from CRM, How could I obtain the Name field in it. 

    The documents should load but you won't be able to refresh your data. You should just see what was loaded to the sheet when you previously saved the document. Changes that you make in the iOS version shouldn't overwrite the PQ info and you should be able
    to edit the queries and refresh when you load it back into a desktop Excel client. Please let us know if your experience deviates from these expectations.

  • Power Query Cannot Connect to NAV Database

    I can access the NAV database and get data by PowerPivot, however when I connect to NAV database with Power Query and enter my user name and password.  Power Query will pops out error message "The User Was Not Authorized".  But my account
    works fine in powerPivot.  Can anyone provide me some help please?
    Thanks
    Henry

    In Power Query, there are usually different types of credentials that you can choose on the left side of the dialog. Are you sure you've chosen the right type of credentials (ie. SQL auth vs Windows auth)?

Maybe you are looking for