Hi friend,
My custome template is used and works fine with january 2023 release, but after up grade power bi desktop to version 2.117.984.0 (may 2023), now is showing error when importing the same custom theme. How can I fixed this?
This is the error and down is the JSON theme
#/visualStyles/barChart/*/title/0/alignment must be equal to constant (const; matching schema #/definitions/alignment/oneOf/0/const)
#/visualStyles/barChart/*/title/0/alignment must match exactly one schema in oneOf (oneOf; matching schema #/definitions/alignment/oneOf)
#/properties/visualStyles/properties/barChart/properties/*/allOf/1/properties/valueAxis/items/properties/position/oneOf)
#/visualStyles/barChart/*/valueAxis/0/labelColor/solid/color must be string (type; matching schema #/definitions/color/type)
#/visualStyles/barChart/*/valueAxis/0/labelColor must have required property 'gradient' (required; matching schema #/oneOf/1/required)
#/visualStyles/barChart/*/valueAxis/0/labelColor must NOT have additional properties (additionalProperties; matching schema #/oneOf/1/additionalProperties)
#/visualStyles/barChart/*/valueAxis/0/labelColor must have required property 'pattern' (required; matching schema #/oneOf/2/required)
* **** JSON THEME
{
"name": "customer template v1",
"textClasses": {
"label": {
"fontSize": 12,
"color": "#666666",
"fontFace": "Arial"
},
"callout": {
"fontSize": 12,
"fontFace": "Arial",
"color": "#666666"
},
"title": {
"fontFace": "Arial",
"color": "#666666"
},
"header": {
"fontSize": 12,
"fontFace": "Arial",
"color": "#666666"
}
},
"firstLevelElements": "#4C5356",
"secondLevelElements": "#4C5356",
"thirdLevelElements": "#4C5356",
"fourthLevelElements": "#4C5356",
"background": "#FFFFFF",
"secondaryBackground": "#D4D6D9",
"tableAccent": "#B0ADB3",
"dataColors": [
"#004666",
"#73B1DD",
"#FFFF00",
"#80B0C8"
],
"neutral": "#2274AC",
"minimum": "#73B1DD",
"center": "#FF871F",
"maximum": "#004666",
"bad": "#C82D20",
"good": "#51AE30",
"visualStyles": {
"*": {
"*": {
"background": [{
"color": {
"solid": {
"color": "#FFFFFF",
"transparency": 100
}
}
}],
"border": [{
"color": {
"solid": {
"color": "#FFFFFF",
"transparency": 100
}
},
"show": true,
"radius": 6
}],
"visualHeader": [{
"foreground": {
"solid": {
"color": "#666666",
"transparency": 100
}
},
"backgroundColor": {
"solid": {
"color": "red"
}
},
"transparency": 100
}],
"visualHeaderTooltip": [{
"text": "",
"titleFontColor": {
"solid": {
"color": "#666666"
}
},
"transparency": 0,
"background": {
"solid": {
"color": "red"
}
}
}],
"outspacePane": [{
"backgroundColor": {
"solid": {
"color": "#FFFFFF"
}
},
"foregroundColor": {
"solid": {
"color": "#828282"
}
}
}],
"filterCard": [{
"$id": "Applied",
"backgroundColor": {
"solid": {
"color": "#FFFFFF"
}
},
"foregroundColor": {
"solid": {
"color": "#7B7B7B"
}
},
"transparency": 0
},
{
"$id": "Available",
"foregroundColor": {
"solid": {
"color": "#7E7E7E"...
.... AND MORE ..
2 Comments
- AnonymousNot applicable
Hi SANDRALIA
If it is convenient, can you provide the full JSON file for testing? The information you have provided so far is not enough to determine the cause of the problem.
How to provide sample data in the Power BI Forum - Microsoft Fabric Community
Best Regards,
Community Support Team _ Ailsa Tao - SANDRALIAHelper I
Here is the Json,
Thanks in advance!
{
"name": "i Template",
"textClasses": {
"label": {
"fontSize": 12,
"color": "#666666",
"fontFace": "Arial"
},
"callout": {
"fontSize": 12,
"fontFace": "Arial",
"color": "#666666"
},
"title": {
"fontFace": "Arial",
"color": "#666666"
},
"header": {
"fontSize": 12,
"fontFace": "Arial",
"color": "#666666"
}
},
"firstLevelElements": "#4C5356",
"secondLevelElements": "#4C5356",
"thirdLevelElements": "#4C5356",
"fourthLevelElements": "#4C5356",
"background": "#FFFFFF",
"secondaryBackground": "#D4D6D9",
"tableAccent": "#B0ADB3",
"dataColors": [
"#004666",
"#80B0C8"],
"neutral": "#2274AC",
"minimum": "#73B1DD",
"center": "#FF871F",
"maximum": "#004666",
"bad": "#C82D20",
"good": "#51AE30",
"visualStyles": {"*": {
"*": {
"background": [{
"color": {
"solid": {
"color": "#FFFFFF",
"transparency": 100
}
}
}],
"border": [{
"color": {
"solid": {
"color": "#FFFFFF",
"transparency": 100
}
},
"show": true,
"radius": 6
}],
"visualHeader": [{
"foreground": {
"solid": {
"color": "#666666",
"transparency": 100
}
},
"backgroundColor": {
"solid": {
"color": "red"
}
},
"transparency": 100
}],
"visualHeaderTooltip": [{
"text": "",
"titleFontColor": {
"solid": {
"color": "#666666"
}
},
"transparency": 0,
"background": {
"solid": {
"color": "red"
}
}
}],
"outspacePane": [{
"backgroundColor": {
"solid": {
"color": "#FFFFFF"
}
},
"foregroundColor": {
"solid": {
"color": "#828282"
}
}
}],
"filterCard": [{
"$id": "Applied",
"backgroundColor": {
"solid": {
"color": "#FFFFFF"
}
},
"foregroundColor": {
"solid": {
"color": "#7B7B7B"
}
},
"transparency": 0
},
{
"$id": "Available",
"foregroundColor": {
"solid": {
"color": "#7E7E7E"
}
}
}
]
}
},
"barChart": {
"*": {
"general": [{
"responsive": false,
"keepLayerOrder": false
}],
"legend": [{
"show": true,
"fontSize": "12",
"position": "Bottom",
"showTitle": false
}],
"categoryAxis": [{
"show": true,
"showAxisTitle": false,
"position": "Bottom",
"axisStyle": "showBoth",
"labelColor": {
"solid": {
"color": "#4C5356"
}
},
"concatenateLabels": true,
"titleColor": {
"solid": {
"color": "#4C5356"
}
},
"titleFontSize": "12",
"gridlineShow": false,
"gridlineColor": {
"solid": {
"color": "#4C5356"
}
}
}],
"valueAxis": [{
"show": true,
"position": "Bottom",
"axisStyle": "showUnitOnly",
"labelColor": {
"solid": {
"color": {
"solid": {
"color": "#666666"
}
}
}
},
"fontSize": "10",
"gridlineShow": false,
"gridlineColor": {
"solid": {
"color": {
"expr": {
"ThemeDataColor": {
"ColorId": 2,
"Percent": -0.5
}
}
}
}
},
"showAxisTitle": false}],
"dataPoint": [{
"showAllDataPoints": true
}],
"labels": [{
"show": true,
"showSeries": true,
"color": {
"solid": {
"color": "#666666"
}
},
"fontSize": "18"
}],
"plotArea": [{
"transparency": 100
}],
"title": [{
"show": true,
"fontSize": "14",
"color": {
"solid": {
"color": "#666666"
}
},
"fontFamily": "Arial",
"bold": true,
"alignment": "Center"
}],
"border": [{
"show": true
}]
}
},
"tableEX": {
"*": {
"stylePreset": [{
"name": "Default"
}],
"general": [{
"responsive": true,
"keepLayerOrder": true
}],
"title": [{
"show": true,
"titleWrap": true,
"fontColor": {
"solid": {
"color": "red"
}
},
"background": {
"solid": {
"color": "red"
}},
"fontSize": "12"
}],
"background": [{
"show": true,
"color": {
"solid": {
"color": "#A8ADB3"
}
},
"transparency": 100
}],
"lockAspect": [{
"show": true
}],
"grid": [{
"gridVertical": true,
"gridVerticalColor": {
"solid": {
"color": "red"
}
},
"gridVerticalWeight": 1,
"gridHorizontal": true,
"gridHorizontalColor": {
"solid": {
"color": "red"
}
},
"gridHorizontalWeight": 10,
"rowPadding": 26,
"outlineColor": {
"solid": {
"color": "red"
}
},
"outlineWeight": 1,
"textSize": 12,
"imageHeight": 100
}],"border": [{
"show": false,
"color": {
"solid": {
"color": "red"
}
}}],
"visualHeader": [{
"show": true
}]
}},
"treemap":{
"*": {
"legend": [{
"show": true,
"fontSize": "10",
"position": "Bottom",
"showTitle": false
}],
"title": [{
"show": true,
"fontSize": "14",
"color": {
"solid": {
"color": "#666666"
}
},
"fontFamily": "Arial",
"bold": true,
"alignment": "Center"
}]
}
},"waterfallChart":{
"*": {
"legend": [{
"show": true,
"fontSize": "10",
"position": "Bottom",
"showTitle": false
}],
"title": [{
"show": true,
"fontSize": "14",
"color": {
"solid": {
"color": "#666666"
}
},
"fontFamily": "Arial",
"bold": true,
"alignment": "Center"
}],
"categoryAxis": [{
"show": true,
"showAxisTitle": false,
"position": "Bottom",
"axisStyle": "showBoth",
"labelColor": {
"solid": {
"color": "#4C5356"
}
},
"concatenateLabels": true,
"titleColor": {
"solid": {
"color": "#4C5356"
}
},
"titleFontSize": "12",
"gridlineShow": false,
"gridlineColor": {
"solid": {
"color": "#4C5356"
}
}
}],
"valueAxis": [{
"show": true,
"showAxisTitle": false,
"position": "BottomCenter",
"fontSize": 12,
"titleFontSize": "12",
"titleColor": {
"solid": {
"color": "#4C5356"
}
},
"gridlineShow": false,
"gridlineColor": {
"solid": {
"color": "#4C5356"
}
}
}]
}
},"pageNavigator": {
"*": {
"pages": [{
"showHiddenPages": true,
"showTooltipPages": false
}],
"drillFilterOtherVisuals": true,
"background": [{
"show": false,
"color": {
"solid": {
"color": "#FFFFFF"
}
}
}],
"border": [{
"show": false,
"color": {
"solid": {
"color": "#FFFFFF"
}
},
"radius": 0
}],
"title": [{
"show": false
}],
"visualHeader": [{
"show": false
}],"fill": [{
"show": true
}, {
"$id": "default",
"transparency": 0,
"fillColor": {
"solid": {
"color": "#A8ADB3"
}
}
}, {
"$id": "hover",
"transparency": 0,
"fillColor": {
"solid": {
"color": "#D8AA00"
}
}
}, {
"$id": "press",
"transparency": 0,
"fillColor": {
"solid": {
"color": "#95A844"
}
}
}, {
"$id": "selected",
"transparency": 0,
"fillColor": {
"solid": {
"color": "#003366"
}
}
}, {
"$id": "disabled",
"transparency": 0,
"fillColor": {
"solid": {
"color": "#FFFFFF"
}
}
}],
"outline": [{
"show": false
}, {
"$id": "default",
"transparency": 0,
"lineColor": {
"solid": {
"color": "#FFFFFF"
}
},
"weight": 2
}, {
"$id": "hover",
"transparency": 0,
"lineColor": {
"solid": {
"color": "#FFFFFF"
}
},
"weight": 2
}, {
"$id": "press",
"transparency": 0,
"lineColor": {
"solid": {
"color": "#FFFFFF"
}
},
"weight": 2
}, {
"$id": "selected",
"transparency": 0,
"lineColor": {
"solid": {
"color": "#FFFFFF"
}
},
"weight": 2
}, {
"$id": "disabled",
"transparency": 0,
"lineColor": {
"solid": {
"color": "#FFFFFF"
}
},
"weight": 1
}],
"text": [{
"show": true
},
{
"$id": "default",
"fontFamily": "Arial",
"fontSize": 12,
"fontColor": {
"solid": {
"color": "#4C5356"
}
},
"horizontalAlignment": "center",
"verticalAlignment": "middle"
}, {
"$id": "hover",
"fontFamily": "Arial",
"fontSize": 12,
"fontColor": {
"solid": {
"color": "#FFFFFF"
}
}
}, {
"$id": "press",
"fontSize": 12,
"fontColor": {
"solid": {
"color": "#FFFFFF"
}
},
"fontFamily": "Arial"
}, {
"$id": "selected",
"fontSize": 12,
"fontColor": {
"solid": {
"color": "#FFFFFF"
}
},
"fontFamily": "Arial"
}, {
"$id": "disabled",
"fontSize": 12,
"fontColor": {
"solid": {
"color": "#FFFFFF"
}
},
"fontFamily": "Arial"
}
]
}
},"page": {
"*": {
"displayArea": [{
"type": "Custom",
"verticalAlignment": "Middle",
"canvasHeight": 800,
"canvasWidth": 1980
}],
"background": [{
"color": {
"solid": {
"color": "#FFFFFF"
}
},
"transparency": 0
},
{
"image": {
"name": "",
"scaling": "Fit",
"url": "<Enter a 64 base image url>"
}
}
],
"outspace": [{
"color": {
"solid": {
"color": "#374649"
}
},
"transparency": 0
}],
"outspacePane": [{
"backgroundColor": {
"solid": {
"color": "#ededed"
}
},
"foregroundColor": {
"solid": {
"color": "#3e3e3e"
}
},
"borderColor": {
"solid": {
"color": "#3e3e3e"
}
},
"transparency": 0,
"titleSize": 18,
"headerSize": 8,
"fontFamily": "Arial",
"border": false
}]}
}
}
}