Issue symptoms

When I try to import a help center theme, I get the following error: Failed to import theme. The property ‘#/settings/X/variables/X’ of type object did not match any of the required schemas.

Resolution steps

There are several potential causes for this error to appear when you import a help center theme. The error essentially indicates that there is a problem with a variable inside the setting. See the examples below for common variable errors and how to resolve them.

Use underscore

The variable below returns the error The property '#/settings/3/variables/0' of type object did not match any of the required schemas when importing a theme.

{
"identifier": "prevent-style",
"type": "file",
"description": "styles_group_guide",
"label": "custom_guide_prevent"
},

The message '#/settings/3/variables/0' indicates a problem with the variable with index 0 inside the setting with index 3.

The identifier property is limited to 30 characters and consist of only alphanumeric characters and _ (underscore) characters. To fix the issue, use an identifier with an _ (underscore) instead of a - (dash). If you change prevent-style to prevent_style in the variable above, this will remove the error.

Remove capital letters

The variable below returns the error The property '#/settings/10/variables/1' of type object did not match any of the required schemas when importing the help center theme.

{
"identifier": "country_fieldId",
"type": "text",
"description": "country_fieldId_description",
"label": "country_fieldId_label",
"value": "360033214456"
}

This error appears because an identifier cannot have capital letters. To remove the error, change the identifier and remove the capital letter character in country_fieldId_label.

Less than 30 characters

The variable below returns the error The property '#/settings/1/variables/5' of type object did not match any of the required schemas when importing the help center theme.

{
"identifier": "community_new_post_button_color",
"type": "color",
"description": "colors_community_new_post_button_description",
"label": "colors_community_new_post_button_label",
"value": "#C7742C"
},

The error appears because the identifier contains more than 30 characters. Change the identifier to a name that contains less than 30 characters to remove the error.

For more information on importing help center themes, see the article: Customizing the settings panel.

Powered by Zendesk