Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Problem Description: I am encountering a recurring “Theme file import error” in Power BI Desktop when attempting to import a custom theme JSON file. The error message indicates “JSON syntax is invalid, the required property ‘name’ is missing, an invalid color is used, or an invalid top-level property is specified.” This occurs specifically when including dataLabels or legend properties within the visualStyles section. Despite successful partial imports and confirmation of JSON syntax, combining these elements leads to a failure. Furthermore, the custom font (‘Noto Sans JP’) is not available in the dropdown lists for dataLabels or legend in the visual formatting pane, preventing manual application.
Power BI Desktop Version: 2.148.1477.0 64-bit (October 2025) OS: Windows 11 Pro 24H2
Custom Font Details:
Steps to Reproduce:
{
"name": "Noto Sans JP Full Theme Test",
"textClasses": {
"callout": { "fontFace": "Noto Sans JP" },
"title": { "fontFace": "Noto Sans JP" },
"header": { "fontFace": "Noto Sans JP" },
"label": { "fontFace": "Noto Sans JP" }
},
"visualStyles": {
"*": {
"*": {
"general": [
{
"fontFamily": "Noto Sans JP"
}
],
"title": [
{
"fontFamily": "Noto Sans JP"
}
],
"labels": [
{
"fontFamily": "Noto Sans JP"
}
],
"categoryAxis": [
{
"fontFamily": "Noto Sans JP"
}
],
"valueAxis": [
{
"fontFamily": "Noto Sans JP"
}
],
"dataLabels": [ // Adding this property causes import failure
{
"fontFamily": "Noto Sans JP"
}
],
"legend": [ // Adding this property also causes import failure
{
"fontFamily": "Noto Sans JP"
}
]
}
}
}
}Expected Behavior: The theme file should import successfully, applying ‘Noto Sans JP’ to all specified text elements (text boxes, chart titles, axis labels, data labels, legends, etc.). The font should also be available for manual selection in all relevant dropdowns within the visual formatting pane.
Actual Behavior: An error popup titled “テーマ ファイルのインポート エラー” (Theme file import error) is displayed, with the message: “テーマ ファイルのインポート中に問題が発生しました。JSON 構文が無効であるか、必要なプロパティ “name” が欠落しているか、無効な色が使用されているか、無効な最上位プロパティが指定されています。” (A problem occurred while importing the theme file. The JSON syntax is invalid, the required property “name” is missing, an invalid color is used, or an invalid top-level property is specified.) (Screenshot attached)
Additional Observations and Troubleshooting Steps Taken:
Conclusion/Hypothesis: Based on these observations, it strongly appears there is a bug in Power BI Desktop where:
This significantly hinders the ability to create fully consistent reports using custom fonts via theme files.
Attachments:
Solved! Go to Solution.
Hi @ShoyaY,
It took me time to understand your issue....So this issue caused due to several factors:
So try this approaches and tell me if it works:
First Approach :
{
"name": "Noto Sans JP Fixed Theme",
"textClasses": {
"callout": { "fontFace": "Noto Sans JP" },
"title": { "fontFace": "Noto Sans JP" },
"header": { "fontFace": "Noto Sans JP" },
"label": { "fontFace": "Noto Sans JP" }
},
"visualStyles": {
"*": {
"*": {
"*": [{
"fontFamily": "Noto Sans JP",
"fontSize": 10
}],
"title": [{
"fontFamily": "Noto Sans JP",
"fontSize": 12
}],
"labels": [{
"fontFamily": "Noto Sans JP",
"show": true
}]
}
},
"columnChart": {
"*": {
"dataLabels": [{
"fontFamily": "Noto Sans JP"
}],
"legend": [{
"fontFamily": "Noto Sans JP"
}]
}
},
"barChart": {
"*": {
"dataLabels": [{
"fontFamily": "Noto Sans JP"
}],
"legend": [{
"fontFamily": "Noto Sans JP"
}]
}
},
"lineChart": {
"*": {
"dataLabels": [{
"fontFamily": "Noto Sans JP"
}],
"legend": [{
"fontFamily": "Noto Sans JP"
}]
}
}
}
}
Second Approach :
"textClasses": {
"callout": { "fontFace": "'Noto Sans JP'" },
"title": { "fontFace": "'Noto Sans JP'" },
"header": { "fontFace": "'Noto Sans JP'" },
"label": { "fontFace": "'Noto Sans JP'" }
}
Bonus Approach :
First apply a base theme without dataLabels and legend
Use Format Painter to standardize formats
Manually set fonts for elements that can not be controlled via theme
Notes :
Consider downgrading to an older Power BI version (like December 2022 release) as a temporary workaround
Thank you so much for your excellent suggestions and for helping me understand the issue!
I’m very happy to report that the JSON structure you provided (which places dataLabels and legend under specific visual types) successfully imported into Power BI Desktop! This is a significant breakthrough in applying my custom font.
Here’s what is now working correctly with the imported theme:
However, I am still facing challenges with specific elements, and I’d appreciate your further guidance:
My goal is to have the ‘Noto Sans JP’ font applied to all text elements within my reports, including these data labels on pie and bar charts.
Could you please advise on how I might modify the JSON further to ensure the ‘Noto Sans JP’ font is applied to the data labels (numerical values, percentages, and category names) of pie charts and bar charts? Are there specific properties or additional settings required for these particular elements within the theme JSON?
Thank you again for your invaluable help!
Hi @ShoyaY,
Happy to hear this ☺️❤️
So the issue with pie chart and bar chart data labels you are facing is a common one, they often require more specific targeting in the JSON....So could you try this JSON structure that specifically targets data labels for pie charts and bar charts :
{
"name": "Noto Sans JP Complete Theme",
"textClasses": {
"callout": { "fontFace": "Noto Sans JP" },
"title": { "fontFace": "Noto Sans JP" },
"header": { "fontFace": "Noto Sans JP" },
"label": { "fontFace": "Noto Sans JP" }
},
"visualStyles": {
"*": {
"*": {
"*": [{
"fontFamily": "Noto Sans JP",
"fontSize": 10
}],
"title": [{
"fontFamily": "Noto Sans JP",
"fontSize": 12
}],
"labels": [{
"fontFamily": "Noto Sans JP",
"show": true
}]
}
},
"columnChart": {
"*": {
"dataLabels": [{
"fontFamily": "Noto Sans JP",
"color": "#000000",
"show": true
}],
"legend": [{
"fontFamily": "Noto Sans JP"
}]
}
},
"barChart": {
"*": {
"dataLabels": [{
"fontFamily": "Noto Sans JP",
"color": "#000000",
"show": true
}],
"legend": [{
"fontFamily": "Noto Sans JP"
}]
}
},
"pieChart": {
"*": {
"dataLabels": [{
"fontFamily": "Noto Sans JP",
"color": "#000000",
"show": true,
"categoryLabel": {
"fontFamily": "Noto Sans JP",
"show": true
},
"value": {
"fontFamily": "Noto Sans JP",
"show": true
},
"percentage": {
"fontFamily": "Noto Sans JP",
"show": true
}
}],
"legend": [{
"fontFamily": "Noto Sans JP"
}]
}
},
"donutChart": {
"*": {
"dataLabels": [{
"fontFamily": "Noto Sans JP",
"color": "#000000",
"show": true,
"categoryLabel": {
"fontFamily": "Noto Sans JP",
"show": true
},
"value": {
"fontFamily": "Noto Sans JP",
"show": true
},
"percentage": {
"fontFamily": "Noto Sans JP",
"show": true
}
}]
}
}
}
}
If the above JSON still does not work for data labels, try these additional approaches:
Select your pie/bar chart
Go to Format pane → Data labels
Then reapply your theme
If the theme still doesn't catch data labels, you can:
Apply the theme first
Then manually set data label fonts in the Format pane
Use Format Painter to copy these settings to other similar visuals
Try this more explicit structure for pie charts:
"pieChart": {
"*": {
"dataLabels": [{
"fontFamily": "Noto Sans JP",
"show": true,
"labelStyle": {
"fontFamily": "Noto Sans JP"
}
}]
}
}
Important Notes you should Know it:
Let me know how this works!😀❤️
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:
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.
Hi @ShoyaY,
Mark the reply that has solution not my request solution reply to help other peopleto find it *You can mark more than one reply) i hope you understand
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 40 | |
| 35 | |
| 34 | |
| 31 | |
| 28 |
| User | Count |
|---|---|
| 136 | |
| 102 | |
| 68 | |
| 66 | |
| 58 |