cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper III
Helper III

Desktop Data Refresh Fails and no idea why

Hi,

 

I am pulling in a table from a MySql Database that has millions of rows. All other tables are pulled n correctly, no worries. This table gets to about 5million rows and then just fails saying Timeout Experienced (eventhough everything is up and running).

Is there any og or anything to get more details?

Capture.JPG

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Microsoft
Microsoft

Re: Desktop Data Refresh Fails and no idea why

Hi @duggy,

 

Actually, that's an error of Mysql database. I would suggest you enlarge the timeout values. Please refer to https://forums.mysql.com/read.php?38,188231,188231 and https://stackoverflow.com/questions/3475867/mysql-data-mysqlclient-mysqlexception-timeout-expired.

 

Please understand that this link is provided “AS IS” with no warranties or guarantees of content changes, and confers no rights.

 

 

Best Regards,

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
Highlighted
Microsoft
Microsoft

Re: Desktop Data Refresh Fails and no idea why

Hi @duggy,

 

Actually, that's an error of Mysql database. I would suggest you enlarge the timeout values. Please refer to https://forums.mysql.com/read.php?38,188231,188231 and https://stackoverflow.com/questions/3475867/mysql-data-mysqlclient-mysqlexception-timeout-expired.

 

Please understand that this link is provided “AS IS” with no warranties or guarantees of content changes, and confers no rights.

 

 

Best Regards,

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Highlighted
Helper III
Helper III

Re: Desktop Data Refresh Fails and no idea why

I incresed the timeout to 60 as you suggested and error dissapeared.

MUCH APPRECIATED!

Highlighted
Advocate I
Advocate I

Re: Desktop Data Refresh Fails and no idea why

As far as MySQL timeout errors go, this addresses one end. There can be a timeout on the server as well as a timeout on the client. In this case, it seems that it was a timeout on the server end, which when addressed resolved the issue.

 

However, I ran into a similar error message, with my data refresh failing after 11 minutes or so. My server timeout was set to indefinite, so the problem wasn't on the server. It turns out by default the CommandTimeout on the MySQL.Database() function in Power Query M is set to 10 minutes. I was trying to download 3 million rows, and it was taking more than 10 minutes, and so it would fail.

 

The option to set the CommandTimeout is as an optional record in the third parameter of the MySQL.Database() function.

 

https://docs.microsoft.com/en-us/powerquery-m/mysql-database

 

I used the following:

Source = MySQL.Database( "192.168.0.100", "myschema", [ CommandTimeout = #duration(0,0,30,0) ] ),

Sure enough it worked just fine. Duration is listed in Days, Hours, Minutes, Seconds.

Helpful resources

Announcements
Super Users of the Quarter - Q2 2020

Super Users of the Quarter - Q2 2020

Who are our Super User Superstars? Who made it to the top of the leaderboards? Get the answers!

June 2020 Community Highlights

June 2020 Community Highlights

Featured community members, changes to the Community, and more! Read up on recent Power BI community news.

Community Summit North America

Community Summit North America

Innovate, Collaborate, Grow. The top training and networking event across the globe for Microsoft Business Applications

Power Platform 2020 release wave 2 plan

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Kudoed Authors