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

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now

Reply
Anonymous
Not applicable

OLE DB or ODBC error: [DataSource.Error] MySQL: Fatal error encountered during data read.

Hi all, 

 

I encountered the error message when applying query changes as below:

 

OLE DB or ODBC error: [DataSource.Error] MySQL: Fatal error encountered during data read.

 

I have checked the DB connection and the database all work fine. Can anyone advise? 

 

1 ACCEPTED SOLUTION

Hello @Anonymous,

 

I'd say there was an error on one of the steps, perhaps it wasnt shown on the query editor, (you'd need to refresh in every single step), and there's also the possibility that some data that wasnt being loaded in the query editor was causing the error (i.e, a  # when a numeric value is expected, i've suffered a couple of times by replacing # by empty spaces after setting the data type to numeric, even tough it might work in the query editor, when the full data set is loaded it will give an error)

View solution in original post

14 REPLIES 14
Wedson_veras
New Member

<pre id="tw-target-text" class="tw-data-text tw-text-large tw-ta" dir="ltr" data-placeholder="Tradu&ccedil;&atilde;o"><span class="Y2IQFc" lang="en">Each case is different,
it always happens to me,
my solution is,
Log out of all Microsoft accounts including Power Bi and log in again.
Sometimes we remain logged in with our personal account and business account on Microsoft and there may be a conflict</span></pre>

This is an interesting angle. Maybe MS support people can comment.

fexiao
Frequent Visitor

Hi,

 

Here is my update after more guess and validation. I would like to share my opinion on this topic.

After applying query change or refreshing reports, we can observe loading progress of each table. There is one table showing quite many rows loading and spending a lot of minutes. However the table actually contains very limited number of records. Thinking of calculation with SelectRows(), I narrowed down both couping tables to several records and then observed the kind of couping leading to multiplication of both table row numbers during loading. So far, root cause was basically identified.

Then, after moving mentioned calculation to data preparition phase because the calculation is unrelated to all data slicing, the loading is very very fast, just actual size of row both table loaded as per prompt. Of course, offloading dynamic calculation to report with DAX should also be another option.

After all, it can be concluded that couping b/w tables put multiplying load in loading. As a result, often dataset often fails due to expiry.

Hope helpful for you!

 

fexiao
Frequent Visitor

I am suffering from the same trouble. Even though, all numberic columns were validated with any valid number, I still got "OLE DB or ODBC error: [DataSource.Error] MySQL: Fatal error encountered during data read.."

Of course, I refreshed all applied steps one by one as well.

 

Any other suggestion or idea on the situation?

 

Syed_Abbas-7
New Member

I would suggest refresh first in query editor and apply it. Later click close option and move to dashboard. It worked for me.

Anonymous
Not applicable

Hi, 

I'm getting same error while importing a view from MySQL.
The data has around 1 lakh record and I haven't applied any steps others than importing the view from MySQL.
Any help would be appreciated.

Thank you.

Anonymous
Not applicable

Try updating sql-netconnector and power bi. Hope this works for you.

hilmandenis
Frequent Visitor

In my case, the root cause is probably a hardware issue. Because when I try to refresh it from my laptop, no matter how Applied Steps is arranged, it still shows the error. But when I give it to my manager, it's just working fine 😐

Salvador
Responsive Resident
Responsive Resident

Hello,

 

Have you checked all the steps in the query editor in case any of them gives an error? (You might have to do a refresh on the query editor)

Anonymous
Not applicable

@Salvador,

 

I have done the refresh and checked the query editor and everythings seems fine in query editor with no error return. 

Anonymous
Not applicable

I managed to get rid of this error message by redoing the query steps, one by one. After completing one step then i click on close and apply and save after the applying steps succeed and repeat for second steps.

 

Anyway, i would like to know the root cause of it so that i can prevent it in future. 

Anonymous
Not applicable

Hello. 

You redo the query steps in the power query editor in powerbi?

Im kind of new in this and im trying to stablish a connection to mysql. 

I´ll be waiting for an answer. 

 

Best Regards

Hello @Anonymous,

 

I'd say there was an error on one of the steps, perhaps it wasnt shown on the query editor, (you'd need to refresh in every single step), and there's also the possibility that some data that wasnt being loaded in the query editor was causing the error (i.e, a  # when a numeric value is expected, i've suffered a couple of times by replacing # by empty spaces after setting the data type to numeric, even tough it might work in the query editor, when the full data set is loaded it will give an error)

it is not true, when i refresh single table which give error on main refresh, error does not appears

Helpful resources

Announcements
Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

February 2024 Update Carousel

Power BI Monthly Update - February 2024

Check out the February 2024 Power BI update to learn about new features.

Fabric Career Hub

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.

Top Solution Authors