Error saving dashboard with an specific chart #30976
Replies: 1 comment 1 reply
-
I found a similar closed issue related to special characters in a CSV export, which might provide some insights: Special characters in a csv export. This issue was last updated on May 02, 2024 [1]. For your specific problem, the error message indicates that there is a character encoding issue involving the 'latin-1' codec, which cannot encode certain characters like '\u2013' (an en dash). Here are some steps you can take to troubleshoot:
These steps should help you identify and resolve the encoding issue you're encountering. |
Beta Was this translation helpful? Give feedback.
-
Scenario:
Database: Postgres 16, Encoding UTF-8
Superset 4.0.2
An bar chart created with no issues, and the query also runs fine in SQL Lab
Adding this chart to an existing or new blank dashboard gives an error in UI: Sorry, there was an error saving this dashboard: Fatal error
The traceback when saving the dashboard shows following error:
2024-11-19 15:03:27,014:ERROR:flask_appbuilder.api:'latin-1' codec can't encode character '\u2013' in position 399: ordinal not in range(256)
Changing dimension on the chart solves the problem. This is where it gets weird, as first of all, my database have encoding UTF-8, and the column used for dimension have no '\u2013'.
Where should I troubleshoot?
Beta Was this translation helpful? Give feedback.
All reactions