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
Digger
Post Patron
Post Patron

DataSource.Error: MySQL: We cannot convert a value of type System.String to type System.Guid.

DataSource.Error: MySQL: We cannot convert a value of type System.String to type System.Guid.

 

 

how to fix?

1 ACCEPTED SOLUTION
Kletzy
Advocate III
Advocate III

@Digger this solved if for me = MySQL.Database("xxxxxxx", "xxxxxxx", [ReturnSingleDatabase=true, OldGuids=true])

View solution in original post

8 REPLIES 8
Agucho76
Frequent Visitor

Hello @Digger I have the same problem.

 

Could you solve it?

Thanks! 


Kletzy
Advocate III
Advocate III

@Digger this solved if for me = MySQL.Database("xxxxxxx", "xxxxxxx", [ReturnSingleDatabase=true, OldGuids=true])

@Kletzy using OldGuids=true solved my problem, i have no more errors in my table.

Thank you!

 

Adding some information I have searched about what this means

  • OldGuids: A logical (true/false) that sets whether char(36) columns (if false) or binary(16) columns (if true) will be treated as GUIDs. The default value is false. Link Here 

 

amitchandak
Super User
Super User

@Digger , Open the power query, and check is there a type conversion. Remove that step and try.

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

no conversion, error on source step, in adminer it work well no errors and uid showing, but in PBI error appears, it is possible to set "old guid=True" in PBI?

Were you able to resolve this? I am receiving exactly the same error message "DataSource.Error: MySQL: We cannot convert a value of type System.String to type System.Guid." and have no conversion steps - Source and Navigation only.

@Kletzy  not solved yet

Thanks Digger - seems strange that we are the only two having this issue - I cant find it anywhere else on Google. I do recall fixing something similar in the past but can't find or remember how I did it.

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.

Top Solution Authors