SOLVED

PnP templates lose colours

MVP

With the latest releases of PnP PowerShell I've tried exporting sites ( Get-PnPProvisioningTemplate) and then apply the template to another site Get-PnPProvisioningTemplate.  When I do this I noticed that the colours configured within "Site Settings - > Change the look" are being ignored.

 

I'm quite sure in the past the .spcolor files were exported with the templates.

 

When I look in the template file I see: 

 

<pnp:ComposedLook Name="" ColorFile="" FontFile="" BackgroundFile="" Version="0" />

It looks like the Composed Look is being ignored.

 

When I ran this through the debugger I found that the theme doesn't have a name

 

nonName.PNG

 

 The above happened in an SharePoint 2016 site.

 

Am I missing something?

 

I then tried using a Publishing site collection in Office 365 and the name of the Theme is now set:

Named.PNG

 

This looks like a bug to me where the name of the theme isn't always set. 

 

 

 

1 Reply
best response confirmed by Pieter Veenstra (MVP)
Solution

When I look at the composed looks in Office 365 the Current composed look seems to be linked to the selected composed look.

 

Current2016.PNG

 

Within SharePoint 2016 it looks like the Current composed look is a copy of the composed look with its own .spcolor file:

 

CurrentOnPremises.PNG

 This now means that the code in PnP cannot find what the source of the Current composed look is.

 

1 best response

Accepted Solutions
best response confirmed by Pieter Veenstra (MVP)
Solution

When I look at the composed looks in Office 365 the Current composed look seems to be linked to the selected composed look.

 

Current2016.PNG

 

Within SharePoint 2016 it looks like the Current composed look is a copy of the composed look with its own .spcolor file:

 

CurrentOnPremises.PNG

 This now means that the code in PnP cannot find what the source of the Current composed look is.

 

View solution in original post