Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

OLE DB or ODBC error: [DataSource.Error] An error happened while reading data from the provider:

Hi Team,

 

I'm getting bellow shown error while fetching one table from Power Query Editor to Power BI Desktop.

 

OLE DB or ODBC error: [DataSource.Error] An error happened while reading data from the provider: 'Invalid operation. The connection is closed.'.

 

I could see no error in that particular table in power query editor but when I'm fetching it to desktop this popup is coming after few minutes of loading.

 

@amitchandak  @Greg_Deckler  @lbendlin @Jihwan_Kim  @Ahmedx @Padycosmos @Arul @DataInsights @ppm1 @Sahir_Maharaj @MFelix @AllisonKennedy 

 

 

5 REPLIES 5
Poojara_D12
Super User
Super User

Hi @robinhood276 

You're encountering an error where Power Query loads the table fine in the editor, but when you actually apply and load it into Power BI Desktop, it fails with: "Invalid operation. The connection is closed." This usually means the data source connection is timing out or dropping during the final data load phase, even though preview works. Often, this happens with large tables, slow network/data gateway connections, or providers that close idle sessions. In short, the issue isn't with your query logic but with the connection not staying open long enough when loading to the model.

 

Did I answer your question? Mark my post as a solution, this will help others!
If my response(s) assisted you in any way, don't forget to drop me a "Kudos"

Kind Regards,
Poojara - Proud to be a Super User
Data Analyst | MSBI Developer | Power BI Consultant
Consider Subscribing my YouTube for Beginners/Advance Concepts: https://youtube.com/@biconcepts?si=04iw9SYI2HN80HKS

Thanks @Poojara_D12 , how do I overcome this? The internet connection is stable. How do I check which is the source of the issue?

@robinhood276 are you able to filter the data first? Do  you need to pull through all the data? Please let us know if you've solved this!


Please @mention me in your reply if you want a response.

Copying DAX from this post? Click here for a hack to quickly replace it with your own table names

Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C

I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com

robinhood276
Regular Visitor

HI I'm facing the same issue. Do you have a solution to this? I'm using sql server database as the data source. Gateway has been updated. No merging tables in Power Queries. Data loads for a few minutes and gives the error above.

@AllisonKennedy 

@GilbertQ 

@ibarrau 

AllisonKennedy
Super User
Super User

@Anonymous  Power Query Editor only loads a preview of the data, so errors sometimes don't appear until you 'close and apply'. What's your data source? If you're still experiencing an issue have you tried raising a support ticket?


Please @mention me in your reply if you want a response.

Copying DAX from this post? Click here for a hack to quickly replace it with your own table names

Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C

I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.