Forum Discussion
Unable to import theme
Hi,
I'm not able to import theme in desktop. I get communicat like this:
I tried to verify my theme json with this:
powerbi-desktop-samples/Report Theme JSON Schema at main · microsoft/powerbi-desktop-samples · GitHub
But the latest version is November 2024 and I changed the theme in December without any problems. I currently have the PBI desktop version 25 January.
Is there a bug with this version? Or theme schema in January is changed?
Report schema for January 2025 is available: https://github.com/microsoft/powerbi-desktop-samples/tree/main/Report%20Theme%20JSON%20Schema
As SignedUpToSay wrote few things to change.
In my case from:"background": {"solid": {"color": "#FFFFFF","transparency": 100}}to:"background":"#FFFFFF","transparency": 100
6 Replies
- ETomAdvocate I
Report schema for January 2025 is available: https://github.com/microsoft/powerbi-desktop-samples/tree/main/Report%20Theme%20JSON%20Schema
As SignedUpToSay wrote few things to change.
In my case from:"background": {"solid": {"color": "#FFFFFF","transparency": 100}}to:"background":"#FFFFFF","transparency": 100 - rajendraongole1Super User
Hi ETom - you are trying to import does not conform to the expected schema used by the current version of Power BI Desktop. This could be due to changes in the schema or stricter validation rules introduced in the January 2025 release.
Open your JSON theme file in a text editor or JSON editor.
Search for the problematic properties mentioned in the error and make corrections. For example:
If a background property is missing or incorrectly formatted, add or fix it.
Add reverseDirection or hideText if required. - tateFrequent Visitor
It seems I have exactly the same problem as ETom: I made changes to the schema successfully on 10.1.2025 and now PBI desktop gives me more than 100 different errors for the theme file.
I'm using the same January 2025 version: 2.139.1576.0 64-bit
I was expecting there would have been a new schema as this problem seems to be similar to this problem from 2023, but as ETom said, the latest schema is from Nov 2024, so long before I made the latest changes: https://community.fabric.microsoft.com/t5/Desktop/Custom-themes-are-broken/m-p/3109467
Any suggestions rajendraongole1 how to fix for example the first problem on the list:
#/visualStyles/*/*/title/0/subtitle must be string,number,boolean (type; matching schema #/properties/visualStyles/additionalProperties/properties/*/patternProperties/%5E.%2B%24/items/patternProperties/%5E.%2B%24/anyOf/0/type)
#/visualStyles/*/*/title/0/subtitle must have required property 'reverseDirection' (required; matching schema #/required)
#/visualStyles/*/*/title/0/subtitle must have required property 'hideText' (required; matching schema #/required)My visualStyles subtitle looks like this in the theme file:
"visualStyles": {"*": {"*": {"title": [{"show": true,"fontFamily": "Arial","fontSize": 12,"bold": true,"fontColor": {"solid": {"color": "#151515"}},"subtitle": {"show": true,"fontFamily": "Arial","fontSize": 10,"alignment": "left","fontColor": {"solid": {"color": "#4F4F4F"}}},"background": {"solid": {"color": "#FFFFFF"} - SignedUpToSayRegular Visitor
Definitely seems to be schema changes as I had similar issues.
In my case I finally fixed it by changing a few:
"fontColor": {"solid": {"color": "#151515"}}to"fontColor": "#151515" - ETomAdvocate I
As I wrote above on this page, the latest scheme is from November 2024. So, I'm not sure if it is up to date.
- AnonymousNot applicable
Hi ETom ,
Did rajendraongole1 reply solve your problem? If so, please mark it as the correct solution, and point out if the problem persists.
Best regards,
Adamk Kong