Site Design Template not Applying

Copper Contributor

Hello,

 

i have had an ongoing nightmare for too long now and its based around simply " i say simply" building a template for my default team sites.

 

So my steps have been as follows

 

i connected to my tenent using my SP admin account and shapepoint shell using the 

Connect-SPOService cmdlet

 

Then i used the Get-SPOSiteScriptFromWeb cmdlet to createa site script from a design i built within my tenent

 

from this i got my json 

 

#Define Sitescript JSON
$JSONScript = @"
{
"$schema": "https://developer.microsoft.com/json-schemas/sp/site-design-script-actions.schema.json",
"actions": [
{
"verb": "createSPList",
"listName": "Documents",
"templateType": 101,
"subactions": [
{
"verb": "addSPFieldXml",
"schemaXml": "<Field ID=\"{28cf69c5-fa48-462a-b5cd-27b6f9d2bd5f}\" ReadOnly=\"TRUE\" Type=\"DateTime\" Name=\"Modified\" DisplayName=\"Modified\" StorageTZ=\"TRUE\" SourceID=\"http://schemas.microsoft.com/sharepoint/v3\" StaticName=\"Modified\" FromBaseType=\"TRUE\" Indexed=\"TRUE\" />"
},
{
"verb": "addSPFieldXml",
"schemaXml": "<Field ID=\"{39360f11-34cf-4356-9945-25c44e68dade}\" ReadOnly=\"TRUE\" Hidden=\"TRUE\" Type=\"Text\" Name=\"File_x0020_Type\" DisplayName=\"File Type\" SourceID=\"http://schemas.microsoft.com/sharepoint/v3\" StaticName=\"File_x0020_Type\" FromBaseType=\"TRUE\" Indexed=\"TRUE\" />"
},
{
"verb": "addSPFieldXml",
"schemaXml": "<Field ID=\"{0c5e0085-eb30-494b-9cdd-ece1d3c649a2}\" ReadOnly=\"TRUE\" Hidden=\"TRUE\" Type=\"Text\" Name=\"HTML_x0020_File_x0020_Type\" DisplayName=\"HTML File Type\" SourceID=\"http://schemas.microsoft.com/sharepoint/v3\" StaticName=\"HTML_x0020_File_x0020_Type\" FromBaseType=\"TRUE\" Indexed=\"TRUE\" />"
},
{
"verb": "addSPFieldXml",
"schemaXml": "<Field ID=\"{08d89a66-4634-42b8-9d5a-0c27395a48b3}\" Type=\"Text\" Name=\"TriggerFlowInfo\" DisplayName=\"Trigger Flow Info\" DisplaceOnUpgrade=\"TRUE\" Hidden=\"TRUE\" ReadOnlyEnforced=\"FALSE\" ReadOnly=\"TRUE\" Required=\"FALSE\" SourceID=\"http://schemas.microsoft.com/sharepoint/v3\" StaticName=\"TriggerFlowInfo\" />"
},
{
"verb": "addContentType",
"name": "Folder",
"id": "0x0120"
},
{
"verb": "addSPView",
"name": "All Documents",
"viewFields": [
"DocIcon",
"LinkFilename",
"Modified",
"Editor"
],
"query": "<OrderBy><FieldRef Name=\"FileLeafRef\" /></OrderBy>",
"rowLimit": 30,
"isPaged": true,
"makeDefault": true,
"replaceViewFields": true
}
]
},
{
"verb": "setSiteBranding",
"navigationLayout": "Cascade",
"headerLayout": "Standard",
"headerBackground": "Soft",
"showFooter": false
},
{
"verb": "applyTheme",
"themeJson": {
"version": "2",
"isInverted": false,
"palette": {
"themePrimary": "#ff8764b8",
"themeLighterAlt": "#fff9f8fc",
"themeLighter": "#ffe9e2f4",
"themeLight": "#ffd7c9ea",
"themeTertiary": "#ffb29ad4",
"themeSecondary": "#ff9372c0",
"themeDarkAlt": "#ff7959a5",
"themeDark": "#ff664b8c",
"themeDarker": "#ff4b3867",
"accent": "#ff03787c",
"neutralDark": "#ff201f1e",
"neutralPrimary": "#ff323130",
"neutralPrimaryAlt": "#ff3b3a39",
"neutralSecondary": "#ff605e5c",
"neutralSecondaryAlt": "#ff8a8886",
"neutralTertiary": "#ffa19f9d",
"neutralTertiaryAlt": "#ffc8c6c4",
"neutralQuaternary": "#ffd2d0ce",
"neutralQuaternaryAlt": "#ffe1dfdd",
"neutralLight": "#ffedebe9",
"neutralLighter": "#fff3f2f1",
"neutralLighterAlt": "#fffaf9f8",
"black": "#ff000000",
"white": "#ffffffff",
"primaryBackground": "#ffffffff",
"primaryText": "#ff333333",
"HyperlinkActive": "#ff4b3867",
"CommandLinksPressed": "#ff4b3867",
"NavigationPressed": "#ff4b3867",
"EmphasisHoverBorder": "#ff4b3867",
"TopBarPressedText": "#ff4b3867",
"HeaderNavigationPressedText": "#ff4b3867",
"Hyperlinkfollowed": "#ff4b3867",
"EmphasisHoverBackground": "#ff664b8c",
"EmphasisBorder": "#ff664b8c",
"AccentText": "#ff8764b8",
"CommandLinksHover": "#ff8764b8",
"RowAccent": "#ff8764b8",
"NavigationAccent": "#ff8764b8",
"NavigationHover": "#ff8764b8",
"EmphasisBackground": "#ff8764b8",
"HeaderNavigationHoverText": "#ff8764b8",
"HeaderNavigationSelectedText": "#ff8764b8",
"SuiteBarBackground": "#ff8764b8",
"Hyperlink": "#ff8764b8",
"ContentAccent1": "#ff8764b8",
"AccentLines": "#ff9372c0",
"HeaderAccentLines": "#ff9372c0",
"ButtonPressedBorder": "#ff9372c0",
"SuiteBarHoverBackground": "#ffb29ad4",
"StrongLines": "#ffd7c9ea",
"HeaderStrongLines": "#ffd7c9ea",
"SuiteBarHoverText": "#ffd7c9ea",
"ButtonPressedBackground": "#ffd7c9ea",
"ButtonHoverBorder": "#ffd7c9ea",
"ButtonHoverBackground": "#ffe9e2f4",
"SelectionBackground": "#80d7c9ea",
"HoverBackground": "#80e9e2f4",
"NavigationHoverBackground": "#80e9e2f4",
"PageBackground": "#ffffffff",
"EmphasisText": "#ffffffff",
"SuiteBarText": "#ffffffff",
"TileText": "#ffffffff",
"BackgroundOverlay": "#d9ffffff",
"HeaderBackground": "#d9ffffff",
"FooterBackground": "#d9ffffff",
"DisabledBackground": "#fffaf9f8",
"HeaderDisabledBackground": "#fffaf9f8",
"ButtonBackground": "#fffaf9f8",
"ButtonDisabledBackground": "#fffaf9f8",
"SubtleEmphasisBackground": "#fff3f2f1",
"DialogBorder": "#fff3f2f1",
"NavigationSelectedBackground": "#c7edebe9",
"TopBarBackground": "#c7edebe9",
"DisabledLines": "#ffedebe9",
"HeaderDisabledLines": "#ffedebe9",
"ButtonDisabledBorder": "#ffedebe9",
"SuiteBarDisabledText": "#ffedebe9",
"SubtleLines": "#ffc8c6c4",
"HeaderSubtleLines": "#ffc8c6c4",
"ButtonGlyphDisabled": "#ffc8c6c4",
"DisabledText": "#ffa19f9d",
"CommandLinksDisabled": "#ffa19f9d",
"HeaderDisableText": "#ffa19f9d",
"ButtonDisabledText": "#ffa19f9d",
"Lines": "#ffa19f9d",
"HeaderLines": "#ffa19f9d",
"ButtonBorder": "#ffa19f9d",
"SubtleBodyText": "#ff8a8886",
"HeaderSubtleText": "#ff8a8886",
"CommandLinks": "#ff605e5c",
"Navigation": "#ff605e5c",
"SubtleEmphasisText": "#ff605e5c",
"TopBarText": "#ff605e5c",
"HeaderNavigationText": "#ff605e5c",
"ButtonGlyph": "#ff605e5c",
"BodyText": "#ff323130",
"WebPartHeading": "#ff323130",
"HeaderText": "#ff323130",
"ButtonText": "#ff323130",
"ButtonGlyphActive": "#ff323130",
"TopBarHoverText": "#ff323130",
"StrongBodyText": "#ff201f1e",
"SiteTitle": "#ff201f1e",
"CommandLinksSecondary": "#ff201f1e",
"SubtleEmphasisCommandLinks": "#ff201f1e",
"HeaderSiteTitle": "#ff201f1e",
"TileBackgroundOverlay": "#80000000",
"ContentAccent2": "#ff00485b",
"ContentAccent3": "#ff288054",
"ContentAccent4": "#ff767956",
"ContentAccent5": "#ffed0033",
"ContentAccent6": "#ff682a7a",
"backgroundOverlay": "#d9ffffff",
"whiteTranslucent40": "#66ffffff",
"themeAccent": "#ff8764b8",
"themeAccentTranslucent10": "#1a8764b8",
"suiteBarBackground": "#ff8764b8",
"suiteBarText": "#ffffffff",
"suiteBarDisabledText": "#ffedebe9",
"topBarBackground": "#c7edebe9",
"topBarText": "#ff605e5c",
"topBarHoverText": "#ff323130",
"dialogBorder": "#fff3f2f1"
}
}
},
{
"verb": "setSiteExternalSharingCapability",
"capability": "ExternalUserSharingOnly"
},
{
"verb": "setRegionalSettings",
"timeZone": 2,
"locale": 1033,
"sortOrder": 25,
"hourFormat": "12"
}
]
}
"@

 

i then add the site script usunf the Add-SPOSiteScript cmdlet

 

#Add Site Script
$SiteScript = $JSONScript | Add-SPOSiteScript -Title "Internal Template Site Script"

 

and finally add the site design  using Add-SPOSiteDesign

 

#Add Site Design
$WebTemplate = "64" #64 = Team Site, 68 = Communication Site, 1 = Team Site without Group
Add-SPOSiteDesign -Title "Internal Template" -WebTemplate $WebTemplate -SiteScripts $SiteScript.ID -Description "Internal Template 

 

Then it add it to the Tenent but when i attempt to change the look and feel template it doesn't change a thing it goes through the change process but when i says its completed nothing has changed

 

https://imgur.com/a/MeS3mvQ

 

https://imgur.com/a/T17Sqsd

 

Any help would be greatly appreciated as i feel this is going to give me a haemorrhage.

 

 

 

 

 

 

 

 

2 Replies
when you' ve got 39 views and no replies it doesn't look promising

Anyone

 

any idea as to how to debugg this issue?