March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
I am trying to refresh a table (with less than 50 records and 200 columns). The source is a text file on my desktop and I am pretty sure nothing has changed except a few additional records in the new file.
The error message says: OLE DB or ODBC error: Exception from HRESULT: 0x80040E1D. This happened in the old version of the Desktop as well as the new version (i.e, latest version that I downloaded and installed today).
Has anyone seen this before? Can I get some tips on troubleshooting this error? Thank you.
I received a similar error upon refresh of my Power BI dataset when it was working fine in the past.
I found a workaround as follows:
1. Use the Transform Data option from the Power BI desktop Home menu.
2. Click on your query that is producing the OLE DB/ODBC Error and select the Advanced Editor menu option.
3. Save a copy of your original logic that appears in the Advance Editor by copy/paste to Wordpad.
4. Comment out or remove a large portion of your query logic so that you leave a cutback version and click "Done" from within Advanced Editor to save the revisions.
5. Exit the Transform Data area by choosing the "Close and Apply" option.
6. Your query will attempt to reload for the data refresh. Determine if it is successful. If not then you need to keep commenting out the logic in it until you can get it to run successfully.
7. Once you get the query to run successfully for your data refresh, go back into the "Transform Data" area and the Advanced Editor option and add back into the query the original logic, save and exit with the "Close and Apply"
8. After performing the above steps, my original logic for the data refresh ran perfectly and the OLE/ODBC error disappeared.
I realize this is an odd set of steps but it worked for me and had the least impact on my PBIX.
Hi all,
I found this video that might be helpful. I could solve the issue thanks to it. You just need to check if the data type of the columns is correct. They should also match the data type you have in your DataBase.
OLE DB or ODBC error: Exception from HRESULT: 0x80040E1D | Power bi Refresh Error - YouTube
Thank you so much - this was driving me crazy! It just suddenly stopped working but this did the trick 😊
Hi
I had the same error and I fixed it with this video: OLE DB or ODBC error: Exception from HRESULT: 0x80040E1D | Power bi Refresh Error - YouTube
Hello,
I came acroos this same error yesterday in one of my PBI reports. I tried a lot of the suggetions I came across pn this forum, but none seem to work. I just pyulling in a notes Excel spreadsheet into my PBI. Wierd thing is my co worker can open the file and refresh just fine. Anyone have this issue or know anythign about it?
Im getting this error: OLE DB or ODBC erro: the handle is invalid.. A connection could not be made to the data source with the name of '675abf08-3e93-4158-ae32-23f0fd4b3f4d
Hello, I got the same code reference some seconds after I launched the "Refresh All".
After reading all the previous posts and doing a lot of attempt I discovered I solved by isolating and unflagging one specific "preview feature" among the Options:
"Store datasets using enhanced metadata format."
Now, without that option, my repor works perfectly as before the latest PBI Desktop update.
I read on the guide of the feature that PBI is investing on this feature for future release, and the fact it is not working on my project makes me fear I will have many problems in feature. I hope PBI engineers will fix this collateral effects (I thing it is RAM related, because I saw in the task manager that the process is really RAM-demanding if the option is active, till the crash happens).
Hope this can be useful for people not having solved still.
Thank you everybody for all suggestions.
I have a solution on this.
Go to power Query editor section in Power BI.
Create a duplicate query and delete the old one.
this will solve your problem.
I'm having the same issue and I'm using an Excel file for my data. I just upload the lastest update. Could this have something to do with it?
I am having the same problem with an Excel sheet.
I have the same error when using local Excel data and append queries from multiple tables.
Hi there,
I have started getting the same error in the last few days. My model is a combination of SQL Server Tables. Excel files and Aggregated Tables. I have tried the following:
a. Checked the integrity and data format of my Excel Files
b. Checked the relationships between tables
c. Rebooted the system
I have asked the IT team to reboot the SQL server tonight.
Despite all efforts, I keep getting the errors. And each time, the error is on a different table. However, if I refresh the tables individually, they work just fine.
Is anybody able to point me to the right direction?
Many thanks.
OK. I am sorted. We had a duplicate record. As soon as that was fixed, all errors disappeared. But I had to refresh each table individually to narrow down the problem.
i hv the same issue too, seems like as long my table contains "date", this error msg are quite likely to reoccur whenever i refresh the data with "date' column, not sure is it becoz the "date"formate different from Power BI default setting, "mm/dd/yyyy" or "dd/mm/yyyy"
I have made a work around for this issue. It seems there is an issue going from the SharePoint cloud with an .xlsx file to Power Bi.
I hope this helps.
Hi, I had the same problem as yours today, and I solved it by deleting some incorrect relationships between different data sources.
Hope it helps!
I restarted my pc to clear any errors in ODBC connection and then refreshed the datafiles and the error above disappeared.
I had this issue when importing in multiple spreadsheets and refreshing.
I resolved this in two steps:
In order to complete step 1. I opened up Query Editor and refeshed each source spreadsheet at a time, until I hit the error. This identifies whe soure of the issue.
In order to complete step 2. I then opened up Advanced Query Editor and copied the text into Notepad. I then removed all of the steps and added them in one by one and refreshed each time, until I hit the error again. Things to remember when doing this (I found out by trial and error)
In my case, adding them all back in, line by line still resolved the issue, so this does look like a bug, but is easily resolved.
Hi, maybe it's not a proper woraround, but ... In my case helped to do all calculation on the tabs coppied from those upload to M BI. So as a rule I upload all the data I need for the project, than merged, coppied etc. to new tabels and later functionalities are build on those new. Original data are keep in the project without any manipulation, one I do and it's works is lookupvalue from the original tabels. I can assume that if we taking the data from original tabels it's fine for them, when we are try to add some data it's causing the problems with later updates.
Hope it's help you and do not affect efficiency of yours projects
Hi, maybe it's not a proper woraround, but ... In my case helped to do all calculation on the tabs coppied from those upload to M BI. So as a rule I upload all the data I need for the project, than merged, coppied etc. to new tabels and later functionalities are build on those new. Original data are keep in the project without any manipulation, one I do and it's works is lookupvalue from the original tabels. I can assume that if we taking the data from original tabels it's fine for them, when we are try to add some data it's causing the problems with later updates.
Hope it's help you and do not affect efficiency of yours projects
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
129 | |
90 | |
75 | |
58 | |
53 |
User | Count |
---|---|
200 | |
104 | |
101 | |
67 | |
55 |