Custom site design/site script doesn't always update the site header

%3CLINGO-SUB%20id%3D%22lingo-sub-1150557%22%20slang%3D%22en-US%22%3ECustom%20site%20design%2Fsite%20script%20doesn't%20always%20update%20the%20site%20header%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1150557%22%20slang%3D%22en-US%22%3E%3CP%3EI%20have%20a%20custom%20site%20design%2Fsite%20script%20to%20apply%20branding%20to%20SPO%20modern%20sites.%20I've%20also%20it%20to%20the%20default%20site%20design%20(Add-SPOSiteDesign%20-IsDefault).%20It's%20automatically%20applied%20to%20new%20sites.%20The%20site%20script%20changes%20the%20Header%20to%20compact%20layout%20and%20adds%20the%20gray%20background.%20It%20works%2080%25%20of%20the%20time.%20Every%20once%20in%20a%20while%2C%20the%20site%20will%20still%20have%20the%20Standard%20layout%20and%20the%20white%20background.%20I%20updated%20my%20provisioning%20scripts%20to%20explicitly%20run%20Invoke-SPOSiteDesign.%20I%20still%20see%20sites%20with%20the%20wrong%20header.%20If%20I%20check%20the%20Site%20Designs%20from%20the%20web%20UI%2C%20I%20see%20that%20it%20was%20applied%20twice.%20If%20I%20apply%20the%20same%20site%20design%20for%20the%203rd%20time%20using%20the%20web%20UI%2C%20then%20it%20finally%20changes%20the%20Header.%20It%20works%20fine%20the%20first%20time%20for%20most%20but%20there%20seems%20to%20be%20a%20glitch%20where%20it%20fails%20around%2020%25%20of%20the%20time.%20I'm%20on%20the%20Government%20cloud%20(GCC).%20Has%20anyone%20experienced%20a%20similar%20issue%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1150557%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3ESharePoint%20Online%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1150713%22%20slang%3D%22en-US%22%3ERe%3A%20Custom%20site%20design%2Fsite%20script%20doesn't%20always%20update%20the%20site%20header%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1150713%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F410476%22%20target%3D%22_blank%22%3E%40ErkanCh%3C%2FA%3E%26nbsp%3BI%20can%20confirm%20that%20I%20have%20also%20previously%20experienced%20this%20same%20ratio%20of%20inconsistency%20(failing%20or%20malforming%20around%2020%25%20of%20the%20time)%20using%20site%20designs%20and%20site%20scripts%2C%20on%20tenancies%20not%20associated%20with%20the%20GCC.%20When%20I%20did%20have%20errors%2C%20it%20seemed%20to%20disproportionately%20present%20errors%20relating%20to%20either%20the%20header%20or%20navigation.%20I've%20yet%20to%20find%20a%20reliable%20workaround%20other%20than%20moving%20over%20to%20PnPProvisioningTemplates%20instead!%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Occasional Contributor

I have a custom site design/site script to apply branding to SPO modern sites. I've also applied it to the default site design (Add-SPOSiteDesign -IsDefault). It's automatically applied to new sites. The site script changes the Header to compact layout and adds the gray background. It works 80% of the time. Every once in a while, the site will still have the Standard layout and the white background. I updated my provisioning scripts to explicitly run Invoke-SPOSiteDesign. I still see sites with the wrong header. If I check the Site Designs from the web UI, I see that it was applied twice. If I apply the same site design for the 3rd time using the web UI, then it finally changes the Header. It works fine the first time for most but there seems to be a glitch where it fails around 20% of the time. I'm on the Government cloud (GCC). Has anyone experienced a similar issue?

1 Reply
Highlighted

@ErkanCh I can confirm that I have also previously experienced this same ratio of inconsistency (failing or malforming around 20% of the time) using site designs and site scripts, on tenancies not associated with the GCC. When I did have errors, it seemed to disproportionately present errors relating to either the header or navigation. I've yet to find a reliable workaround other than moving over to PnPProvisioningTemplates instead!