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

Refresh fails with error - Cannot connect to the mashup data source.

Hey All,
Getting the following error when (auto) refresh is triggered:

Last refresh failed: Wed Jan 09 2019 06:15:24 GMT+1100 (AUS Eastern Daylight Time)
Cannot connect to the mashup data source. See error details for more information.Hide details


Underlying error code: -2147467259 Table: DB bla_bla.
Underlying error message: Data on the server had an unexpected format. It might be possible to fix this by setting the 'OldGuids' option to true.
DM_ErrorDetailNameCode_UnderlyingHResult: -2147467259
Microsoft.Data.Mashup.ValueError.Reason: DataFormat.Error
Cluster URI: WABI-AUSTRALIA-SOUTHEAST-redirect.analysis.windows.net
Activity ID: a22f803c-1acb-4912-8fc4-d9c2ca083d92
Request ID: 394a2ced-e806-4317-8a75-e6eaeaa1ed80
Time: 2019-01-08 19:15:24Z

 

The suggested solution is already in place. "It might be possible to fix this by setting the 'OldGuids' option to true."
This is my query string:
= MySQL.Database("localhost:####", "DB", [ReturnSingleDatabase=true, OldGuids=true])

 

Any idea of the root cause and how to fix this?
Thanks!
A

2 ACCEPTED SOLUTIONS
v-frfei-msft
Community Support
Community Support

Hi @Anonymous,

 

Please refer the stpeps of this bolg.

https://paultebraak.wordpress.com/2015/12/08/mysql-import-issues-with-power-bi-and-oldguids/

 

Regards,

Frank

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

View solution in original post

Anonymous
Not applicable

Hey,

Wanted to update and summarize the issue.

 

Issue - In general there are issues with connections to MySQL DBs from Power BI. The symptom in my case was that data refresh did not work and failed with the error message in my first/original post.

 

Solution - Creat a connection string to MySQL DB with the query in it. For example: 

= MySQL.Database("localhost:3306", "DB_Name", [ReturnSingleDatabase=true, OldGuids=true, Query="select * from MyTable where MyCondition"])

There is no need to delete or re-create the original connection string. Just to update it.

 

Thank you @GilbertQ and @v-frfei-msft for your assistance.

 

Cheers!

View solution in original post

9 REPLIES 9
Anonymous
Not applicable

Hey,

Wanted to update and summarize the issue.

 

Issue - In general there are issues with connections to MySQL DBs from Power BI. The symptom in my case was that data refresh did not work and failed with the error message in my first/original post.

 

Solution - Creat a connection string to MySQL DB with the query in it. For example: 

= MySQL.Database("localhost:3306", "DB_Name", [ReturnSingleDatabase=true, OldGuids=true, Query="select * from MyTable where MyCondition"])

There is no need to delete or re-create the original connection string. Just to update it.

 

Thank you @GilbertQ and @v-frfei-msft for your assistance.

 

Cheers!

Thanks for letting us know, will certainly assist others if they run into this issue.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!







Power BI Blog

v-frfei-msft
Community Support
Community Support

Hi @Anonymous,

 

Please refer the stpeps of this bolg.

https://paultebraak.wordpress.com/2015/12/08/mysql-import-issues-with-power-bi-and-oldguids/

 

Regards,

Frank

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.
Anonymous
Not applicable

Hi @v-frfei-msft,

 

I am not sure how this is related. As I can see the imported data.

Anyhow, Can I modify the existing connection? And just enter the SQL statement?
I don't want to re-build the report(s) after creating the new datasource.
Renaming the DS does not matter, the report still points at the original one.
Cheers!

Yes, what you could do is to connect again in the same model with the SQL Statement.

Then copy all the code from your new table into your existing table.




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!







Power BI Blog

GilbertQ
Super User
Super User

Hi there Does this work if you refresh via the Power BI Desktop? If it does, I would then suggest updating the Power BI On-Premise data gateway to the latest version to ensure that the mashup engine versions are the same.




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!







Power BI Blog

Anonymous
Not applicable

Hey @GilbertQ
What do you mean refresh via the Power BI Desktop?
The gateway was installed this week, believe it is the latest one there is.

Anyhow, when I tried to update it, I got this error message below.2019-01-10 08_21_29-Clipboard.png
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Reading previous posts, seems like it is a bug?!
What should be done? I dont want to lose my configurations.
The version installed is 3000.0.265 (December 2018), is that the latest (and greatest?)

2019-01-10 08_42_07-Clipboard.png

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Thanks!

Hi there What I meant was if you manually refresh it via the Power BI Desktop file does it refresh. It does appear as if you have got the latest version of Power BI On-Premise Data Gateway. Can you confirm that the settings and testing the network connectivity works?




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!







Power BI Blog

Anonymous
Not applicable

Hi @GilbertQ

Yes, connectivity is good.

Moreover, I have other datasources on the same server and they work fine. For example a MS SQL DB.

Seems like it is related to MySQL DB only and not other data sources.

 

Cheers!

Helpful resources

Announcements
March Fabric Community Update

Fabric Community Update - March 2024

Find out what's new and trending in the Fabric Community.

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.

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
Top Kudoed Authors