Showing results for 
Search instead for 
Did you mean: 
Regular Visitor

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 



Super User
Super User

@Rimi_2095  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.

Helpful resources

Join Arun Ulag at MPPC23

Join Arun Ulag at MPPC23

Get a sneak peek into this year's Power Platform Conference Keynote.

PBI Sept Update Carousel

Power BI September 2023 Update

Take a look at the September 2023 Power BI update to learn more.

Learn Live

Learn Live: Event Series

Join Microsoft Reactor and learn from developers.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

Top Solution Authors
Top Kudoed Authors