Forum Discussion
Error importing theme immediately after exporting it from another report
- 7 months ago
Microsoft’s schema documentation says that the JSON schema is “mostly additive” (Report theme JSON schema) and evolves over time, while older reports may still contain legacy property shapes. This implies that Power BI keeps backward-compatible structures internally so existing reports render correctly even if they don’t match the latest schema, but when you export a theme, Power BI writes out the theme exactly as stored in the PBIX, even if some properties are deprecated. Other user also reported that exported themes often include older structures like solid.color objects, which fail validation on re-import. if you see this below
Solved: Unable to import theme - Microsoft Fabric Community
Hii 2B
This error is caused by theme JSON validation, where the exported file contains a visualStyles rule under wildcarded visual types that doesn’t match the current theme schema specifically the color.solid block is being read as invalid because solid must be an object that contains a required color property (not just a value), and wildcard targeting can also fail for some properties. The practical fix is to update Power BI Desktop to the latest build and re-export, or edit/remove the offending visualStyles entry so it follows the schema format like "...\"color\": { \"solid\": { \"color\": \"#RRGGBB\" } }" (or delete that visualStyles section and import again).
folow below link :-
"update Power BI Desktop to the latest build"
I'm not sure what you mean - as best I can tell I'm on the latest version? If I look on the MS website for the latest download it's the same as what I've got (2.149.1429.0)