WBE Fix collation when joining

Fix collation issue when joining

*This issue only applies to MySQL Server and incompatible table collations when joining data in Tableau Desktop.

It is possible that you want to join data from your Write Back scenario back into the dashboard. For example, joining your adjusted forecast numbers with your sales trend. In order to fix the mapping between your Write Back scenario and the sales trend you also need the _mapping table. The _mapping table contains the relationship between your Write Back scenario and the datapoint you have selected to add data to.

However it can happen with MySQL Server (newer version 8.0+) that the collation of the Write Back Extreme schema table is incompatible with the system tables like _mapping. This can happen when the default collation of the database is different compared to the one we are using to create schema’s.

For example, the collation uft8mb4_0900_ai_ci and utf8mb4_unicode_ci are incompatible. This results in an error in Tableau when joining these tables.

But this issue is easily fixable! Please follow the steps below to solve the issue.

WriteBackExtreme | How to fix collation issue when joining Educational Content writebackextreme

The solution

First, you have to find out what the collation of the table is. Therefore, you need to run this query:


Find the collation of the tables starting with _.

In our case this is: utf8mb4_unicode_ci

Also, find your Write Back scenario table and have a look at the collation.

In our case this is: utf8mb4_0900_ai_ci

These collations are incompatible, so lets change it!


You have changed the collation of your write back scenario tables.

The last step is to change the default collation of the database. Therefore, this will not happen again in the future.



You should be able to join tables again in Tableau.

Have fun with Write Back Extreme!

Learn more about Write Back Extreme: Product Guide

We love to make solutions and help Tableau users to do things more efficiently. If you have feedback, ideas, questions or need support, please make sure to share it with us! Also, don’t forget to follow us on social media for our latest news and updates.