Forum Discussion

itimatic's avatar
itimatic
Frequent Visitor
4 years ago
Solved

Refresh data error: Character set 'utf8mb3' is not supported by .Net Framework

When I try refreshing dataset I get error:
An error happened while reading data from the provider: 'Character set 'utf8mb3' is not supported by .Net Framework.'

Used to work fine before, I get data from a remote MySQL database on AWS server Checked collation of columns is utf8mb4_unicode_ci
I use:

  • .Net framework version: 4.8
  • MySQL connector version: 8.0.16 Also tried on latest version
  • Power BI Desktop version: 2.100.1182.0 64-bit (December 2021)

    I'm able to get the database tables in MySQL Workbench and HeidiSQL
    Furthermore, I checked all db server config settings are all set to utfmb4

    - Tested on 3 previous versions of Power BI
    - Tested on 3 pervious versions of MySQL connectors
    - Tested on 2 versions of data gateways

Any idea?

 

  • The issue has been resolved.

    The report was previously built based on MySQL database data source
    On server side MySQL database has been converted to MariaDB which caused utf8mb3 errors when establishing connection.
    Updating and downgrading of .Net framework didn't resolve the issue.

    The connection was re-established successfully using connector-odbc-3.1.4 available on https://downloads.mariadb.com/Connectors/odbc/connector-odbc-3.1.4/
    And data source settings I changed from MySQL Database to MariaDB, which resulted in datasets being treated as a completely new source, eventually all worked as before.




23 Replies