cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Reply
cutestjigs
Frequent Visitor

Load JSON column Data from MYSQL table to POWER BI

Hi there,

 

I have table called "accounts". 

table has columns like id INT, name VARCHAR, type VARCHAR, date TIMESTAMP, contact JSON.

contact has data like {"email": "info@xxx.com", "phone": "0038828288", "mobile": "04838888", "address": "xxxx, xxx, xxx", "country": "xxxx"}

 

I want to load this table into power bi. It showing me error 

DataSource.Error: MYSQL:Fatal error encountered during command execution

Errorcode = -2147467259

 

I want to use all this details in my report. How can I make columns for all json fields?

I want table which will look like id INT, name VARCHAR, type VARCHAR, date TIMESTAMP, email VARCHAR, address VARCHAR, phone VARCHAR, mobile VARCHAR.

 

Please help me in this.

 

Thank you

1 ACCEPTED SOLUTION

Hi @v-huizhn-msft

 

Problem Solved! I downloaded new version of mysql connector and installed it on my computer.  Now it successfully loads table with JSON field. Thanks for your help. 

 

Best Regards,

 

Jigu Patel

View solution in original post

4 REPLIES 4
v-huizhn-msft
Microsoft
Microsoft

Hi @cutestjigs,

When you loaded Mysql table to Power BI, could you please connect Mysql database successfully? Please create a simple table without JSON fields, and check if you can load the table successfully.

Thanks,
Angelia


Hi @v-huizhn-msft,

 

I tried to load table without JSON field and it is working fine! Just have problem with JSON field.

 

Thanks,

 

Jigu Patel

Hi @cutestjigs,

As I tested, I also can load table wiout json fied successfully, and have a problem with JSON field. And I changed the database driver, there still have the problem. You can load the table without json field, and load a JSON file separatly. 

Best Regards,
Angelia

Hi @v-huizhn-msft

 

Problem Solved! I downloaded new version of mysql connector and installed it on my computer.  Now it successfully loads table with JSON field. Thanks for your help. 

 

Best Regards,

 

Jigu Patel

Helpful resources

Announcements
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

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!

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors