Forum Discussion
Custom themes are broken
- 3 years ago
It looks like the criteria has been changed with February 2023 and if you follow all the error messages, it will then work.
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": falseThis 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).