Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hello,
February 2023 update broke the json custom themes. Everytime I try to apply my json theme that worked before, I get the following error message:
#/visualStyles/card/*/labels/0/labelDisplayUnits must be integer (type; matching schema #/definitions/labelDisplayUnits/type)
#/visualStyles/card/*/labels/0/labelDisplayUnits must be equal to one of the allowed values (enum: '0' ,'1' ,'1000' ,'1000000' ,'1000000000' ,'1000000000000'; matching schema #/definitions/labelDisplayUnits/enum)
#/visualStyles/slicer/*/general/0/orientation must be integer (type; matching schema #/properties/visualStyles/properties/slicer/properties/*/allOf/1/properties/general/items/properties/orientation/type)
#/visualStyles/slicer/*/general/0/orientation must be equal to one of the allowed values (enum: '0' ,'1'; matching schema #/properties/visualStyles/properties/slicer/properties/*/allOf/1/properties/general/items/properties/orientation/enum)
#/visualStyles/slicer/*/data/0/relativeRange must be equal to one of the allowed values (enum: 'Last' ,'Next' ,'This'; matching schema #/properties/visualStyles/properties/slicer/properties/*/allOf/1/properties/data/items/properties/relativeRange/enum)
#/visualStyles/slicer/*/data/0/relativePeriod must be equal to one of the allowed values (enum: 'None' ,'Days' ,'Weeks' ,'Calendar Weeks' ,'Months' ,'Calendar Months' ,'Years' ,'Calendar Years'; matching schema #/properties/visualStyles/properties/slicer/properties/*/allOf/1/properties/data/items/properties/relativePeriod/enum)
#/visualStyles/slicer/*/header/0/background/solid/color must match pattern "^#([a-fA-F0-9]{3}){1,2}$" (pattern; matching schema #/definitions/color/pattern)
#/visualStyles/slicer/*/header/0/background/solid/color must be object (type; matching schema #/definitions/themeDataColor/type)
#/visualStyles/slicer/*/header/0/background/solid/color must match exactly one schema in oneOf (oneOf; matching schema #/oneOf/0/properties/solid/properties/color/oneOf)
#/visualStyles/slicer/*/header/0/background must have required property 'gradient' (required; matching schema #/oneOf/1/required)
#/visualStyles/slicer/*/header/0/background must NOT have additional properties (additionalProperties; matching schema #/oneOf/1/additionalProperties)
#/visualStyles/slicer/*/header/0/background must have required property 'pattern' (required; matching schema #/oneOf/2/required)
#/visualStyles/slicer/*/header/0/background must NOT have additional properties (additionalProperties; matching schema #/oneOf/2/additionalProperties)
#/visualStyles/slicer/*/header/0/background must match exactly one schema in oneOf (oneOf; matching schema #/oneOf)
Solved! Go to Solution.
It looks like the criteria has been changed with February 2023 and if you follow all the error messages, it will then work.
Can Anyone help me!
My problem is at the backgrouns of title in the slicer. The earlier verstion of json file I used (
. But it is not accepted now and we have to choose a color but How can I predifine the bacground at the title to be transperancy ( 100%)?
Thank you!
so, this is caused by a februar 2023 update. I feel rather sad, Microsoft does not provide a tool to convert. As PBI changes over time, this is likely going to happen many more times.😕
Or i am wrong?
Hi everyone,
My custom theme has broken as well. After already fixing the initial error which was caused by some values that were in quotes and should now be integers, I still get this error when trying to import:
#/visualStyles/slicer must NOT have additional properties (additionalProperties; matching schema #/properties/visualStyles/properties/slicer/additionalProperties)
In addition I followed the steps that @Rudz posted (thank you!) and the following errors are flagged in VS Code:
Property multiRowCard is not allowed.
Property tableEx is not allowed.
Property pivotTable is not allowed.
I initially thought that these may have been renamed but the strange thing is that when browsing through the schema JSON, all of those are still included. If I delete all four, slicer, MultiRowCard, TableEx, and PivotTable, the theme will load. Ideally though I would like to keep them in with whatever changes are now required. Does anyone have any ideas on how to fix these?
I'm not an expert here, but in the schema these vlisuals (slicer, multiRowCard, etc.) have a setting of
"additionalProperties": false
This means no additional properties will be allowed.1 Any property you use has to be in the schema.
I'm guessing that one of the properties you have under each of these visuals was either removed or you have a typo. If you can't find it, paste in your slicer code here (or your whole theme if you want).
It looks like the criteria has been changed with February 2023 and if you follow all the error messages, it will then work.
I don't even have an error message!! What do I do now? Anyone in @PowerBI listening and willing to give me a fix please?
Here's a method to figure out errors.
You can open the schema file and trace through the properties to figure out what is valid code, in this case: "background": { "solid": { "color": "#DDDDDD" } },
This isn't always easy to figure out. If you are struggling with this part, copy out the lines of code in yellow and open a new issue here and someone can help fix that code. Or better yet, paste in the whole theme. Always open a new question unless you are asking for clarification on the exact same issue as another problem. When you ask questions on a problem that is already marked resolved like this one, often no one looks at them and you are less likely to get a reply.
Thanks @Rudz for explaining the method to fix the error in a detailed manner. I learnt in the process of fixing the theme file a lot. It was kind of urgent as my large team was facing issues and our service delivery was somewhat impacted. We had started using old files - to get into the new projects with Organizational theme.
The problems are fixed now and a new theme file is in place to import - which works as expected.
Did you use a json file to create your custom theemes? If so, check your file and comment or remove properties or remoe the part that has "additionalProperties" and try again
what does it mean "follow all the error messages" ?
@Magnolia, See my reply to siddhartha0208 for the steps to see your theme error messages.
Can you send a screen shot of your error messages?
User | Count |
---|---|
115 | |
73 | |
60 | |
48 | |
47 |
User | Count |
---|---|
171 | |
122 | |
60 | |
59 | |
56 |