Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
JosephJClark
Regular Visitor

Theme Validation Error

Custom Themes that are currently working on all our client files cannot be Saved and used on other new .pbix files.

I get the following error message:

Validation error at /visualStyles/*/*/columnFormatting/0/dataBars: Structure under wildcarded visualType does not anticipated structure for a property definition. Try targeting a specific visualType with these definitions for a more detailed error message.

 

I have tried targeting specific Visuals, but the error message stays the same.

I have worked through the .json file and cannot figure out what the issue could be.

Please advise and thank you in advance.

 

2 ACCEPTED SOLUTIONS
GeraldGEmerick
Super User
Super User

@JosephJClark They update the specification for Power BI theme files from time to time. Try removing any dataBars entry in the file.

View solution in original post

Ritaf1983
Super User
Super User

Hi @JosephJClark 

The error occurs because Data Bars (dataBars) and Column Formatting (columnFormatting) are properties specific to certain visual types and cannot be defined under a global wildcard (*) in the Power BI Theme JSON schema.

To resolve this, you need to locate the visualStyles section in your JSON file and move the columnFormatting definitions from the generic wildcard section to specific visual types that support them, such as tableEx or pivotTable. Power BI's validation engine no longer accepts these properties when they are applied globally across all visual types.

Corrected JSON Structure Example:

Instead of using:
"visualStyles": { "*": { "*": { "columnFormatting": [...] } } }

You should use:

JSON
"visualStyles": {
"tableEx": {
"*": {
"columnFormatting": [
{
"dataBars": {
"show": true
// additional properties
}
}
]
}
},
"pivotTable": {
"*": {
"columnFormatting": [...]
}
}
}
If you do not strictly need global default Data Bars, the quickest fix is to remove the columnFormatting block entirely from the wildcard section. Once you've targeted specific visuals or removed the global reference, the theme will pass validation and allow you to save your .pbix files.

 

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

View solution in original post

3 REPLIES 3
Ritaf1983
Super User
Super User

Hi @JosephJClark 

The error occurs because Data Bars (dataBars) and Column Formatting (columnFormatting) are properties specific to certain visual types and cannot be defined under a global wildcard (*) in the Power BI Theme JSON schema.

To resolve this, you need to locate the visualStyles section in your JSON file and move the columnFormatting definitions from the generic wildcard section to specific visual types that support them, such as tableEx or pivotTable. Power BI's validation engine no longer accepts these properties when they are applied globally across all visual types.

Corrected JSON Structure Example:

Instead of using:
"visualStyles": { "*": { "*": { "columnFormatting": [...] } } }

You should use:

JSON
"visualStyles": {
"tableEx": {
"*": {
"columnFormatting": [
{
"dataBars": {
"show": true
// additional properties
}
}
]
}
},
"pivotTable": {
"*": {
"columnFormatting": [...]
}
}
}
If you do not strictly need global default Data Bars, the quickest fix is to remove the columnFormatting block entirely from the wildcard section. Once you've targeted specific visuals or removed the global reference, the theme will pass validation and allow you to save your .pbix files.

 

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile
GeraldGEmerick
Super User
Super User

@JosephJClark They update the specification for Power BI theme files from time to time. Try removing any dataBars entry in the file.

Thank you very much. I removed the dataBars settings from the wildcard section and it resolved the issue. I appreciate the effort taken to give advise.

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors