Issue with JSON Site Script for SharePoint Site Templates

Yanice KABEL 20 Reputation points
2024-08-06T08:13:25.3333333+00:00

Hello,

I would like to know if there is something wrong with JSON Site Script implementation ?

When I try to apply an existing customized theme from my JSON Site Script on my SharePoint Communication site, it doesn't work.

I have the message : The theme with the name "....." has not been founded.

I have typed the right name of the theme also.

The beginning of my script is the following :

{

  "$schema": "schema.json",

  "actions": [

    {

      "verb": "applyTheme",

      "themeName": "Theme"

    },

Thanks for your help.

SharePoint Development
SharePoint Development
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Development: The process of researching, productizing, and refining new or existing technologies.
2,987 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. RaytheonXie_MSFT 35,631 Reputation points Microsoft Vendor
    2024-08-07T02:01:18.6666667+00:00

    Hi @Yanice KABEL,

    There is no issue in your script. You could refer to the following script

    https://learn.microsoft.com/en-us/sharepoint/dev/declarative-customization/site-design-overview#anatomy-of-a-site-script

    As the message shows, please check if the theme you are using is available in your site or the user have permission to the theme.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


  2. Yanice KABEL 20 Reputation points
    2024-08-07T15:42:12.28+00:00

    My theme is available, I put the right name and I'm global administrator too.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.