Forum Discussion
Power BI Desktop Theme Import Error: JSON Syntax Invalid or Invalid Top-Level Property
- 9 months ago
Hi Ahmed-Elfeel ,
I wanted to provide an update and express my sincere gratitude for your invaluable help!
All the issues are now resolved, and my custom font (‘Noto Sans JP’) is successfully applied to all text elements in my Power BI reports, including data labels and legends!
The key to the final solution was combining your modified JSON structure (which places dataLabels and legend under specific visual types) with an additional step:
- I imported the theme JSON file you provided (or a slightly extended version of it, including pieChart settings). This part worked perfectly, and the theme imported without any errors.
- For any text elements that did not immediately update to ‘Noto Sans JP’ after importing the theme (e.g., data labels on pie/bar charts), I found that using the “Reset to default” option in the visual formatting pane for that specific element caused the ‘Noto Sans JP’ font to be applied correctly.
This confirms that the theme was indeed loaded with the correct font settings, but some existing visual elements needed to be explicitly reset to adhere to the new theme.
Now, all my text boxes, table visuals, bar chart axis values, pie chart legends, and most importantly, data labels on bar charts and pie charts are correctly displaying ‘Noto Sans JP’.
Thank you again so much for your persistent support and excellent guidance. Your insights on placing dataLabels and legend under specific visual types were crucial, and the combined approach (import + reset to default) has finally led to a complete solution!
I would be happy to mark your initial helpful post as the solution.