version: 1.18.156-nightly
Description
Not exactly sure if this is a pnp issue or a SharePoint issue. Managed to reproduce it in 2 tenants
Anyways, I have a SharePoint site SITE-1 I created when going to the SP admin center > Active sites > Create > Browse more site (on the site template chooser step) > Team site. I extract a PNP provisioning template file from that site.
Then, I create a new site SITE-2 with the STS#3 template.
After that, I apply the PNP provisioning template from SITE-1 to the SITE-2.
All seems to complete without errors, but when I navigate to the site at its URL (https://domain.sharepoint.com/sites/site-2), I am redirected to the following URL: https://domain.sharepoint.com/sites/site-2/_layouts/15/error.aspx?ErrorText=Error%20getting%20value%20from%20%27headerOverlayColor%27%20on%20%27Microsoft%2ESharePoint%2EContext%2EContextInfo%27%2E&ErrorCorrelationId=7f98cfa1%2Db06c%2De000%2D23bf%2Df2e700ec5742
The error in the URL is: Error getting value from 'headerOverlayColor' on 'Microsoft.SharePoint.Context.ContextInfo'.
What I know for now
HeaderOverlayColor is one of the property bag entries that is copied from the source site. I can see the following in the XML file:
<pnp:PropertyBagEntries>
<pnp:PropertyBagEntry Key="FooterColorIndexInLightMode" Value="-1" Overwrite="false" />
<pnp:PropertyBagEntry Key="FooterColorIndexInDarkMode" Value="-1" Overwrite="false" />
<pnp:PropertyBagEntry Key="FooterAlignment" Value="0" Overwrite="false" />
<pnp:PropertyBagEntry Key="FooterOverlayOpacity" Value="0" Overwrite="false" />
<pnp:PropertyBagEntry Key="ThemeApplicationActionHistory" Value="{themecatalog}/Themed/222012B2"},{"themedCssFolderUrl":null}]" Overwrite="false" />
<pnp:PropertyBagEntry Key="FooterOverlayColor" Value="-1" Overwrite="false" />
<pnp:PropertyBagEntry Key="ThemePrimary" Value="#498205" Overwrite="false" Indexed="true" />
<pnp:PropertyBagEntry Key="HeaderOverlayOpacity" Value="0" Overwrite="false" />
<pnp:PropertyBagEntry Key="FooterOverlayGradientDirection" Value="0" Overwrite="false" />
<pnp:PropertyBagEntry Key="HeaderColorIndexInLightMode" Value="-1" Overwrite="false" />
<pnp:PropertyBagEntry Key="HeaderOverlayGradientDirection" Value="0" Overwrite="false" />
<pnp:PropertyBagEntry Key="HeaderColorIndexInDarkMode" Value="-1" Overwrite="false" />
<pnp:PropertyBagEntry Key="HeaderOverlayColor" Value="-1" Overwrite="false" />
</pnp:PropertyBagEntries>
I can also confirm that I see the same entries in the source site:
<m:properties>
<d:vti_x005f_categories>Travel Expense\ Report Business Competition Goals/Objectives Ideas Miscellaneous Waiting VIP In\ Process Planning Schedule</d:vti_x005f_categories>
<d:FooterColorIndexInLightMode m:type="Edm.Int32">-1</d:FooterColorIndexInLightMode>
<d:FooterColorIndexInDarkMode m:type="Edm.Int32">-1</d:FooterColorIndexInDarkMode>
<d:vti_x005f_associategroups>5;4;3</d:vti_x005f_associategroups>
<d:FooterAlignment m:type="Edm.Int32">0</d:FooterAlignment>
<d:FooterOverlayOpacity m:type="Edm.Int32">0</d:FooterOverlayOpacity>
<d:ThemeApplicationActionHistory>[{"themedCssFolderUrl":"/sites/FinanceTemplateTeamSIte/_catalogs/theme/Themed/A06F469B"},{"themedCssFolderUrl":"/sites/FinanceTemplateTeamSIte/_catalogs/theme/Themed/79E83CFB"},{"themedCssFolderUrl":"/sites/FinanceTemplateTeamSIte/_catalogs/theme/Themed/79E83CFB"},{"themedCssFolderUrl":"/sites/FinanceTemplateTeamSIte/_catalogs/theme/Themed/222012B2"},{"themedCssFolderUrl":null}]</d:ThemeApplicationActionHistory>
<d:vti_x005f_defaultlanguage>en-us</d:vti_x005f_defaultlanguage>
<d:vti_x005f_createdassociategroups>3;4;5</d:vti_x005f_createdassociategroups>
<d:profileschemaversion>1</d:profileschemaversion>
<d:enabledhelpcollections>VGSEndUser</d:enabledhelpcollections>
<d:vti_x005f_extenderversion>16.0.0.26524</d:vti_x005f_extenderversion>
<d:vti_x005f_approvallevels>Approved Rejected Pending\ Review</d:vti_x005f_approvallevels>
<d:FooterOverlayColor m:type="Edm.Int32">-1</d:FooterOverlayColor>
<d:ThemePrimary>#498205</d:ThemePrimary>
<d:SiteNotebookGuid>07f59b1b-2381-4243-89e6-c8d7126385df</d:SiteNotebookGuid>
<d:HeaderOverlayOpacity m:type="Edm.Int32">0</d:HeaderOverlayOpacity>
<d:FooterOverlayGradientDirection m:type="Edm.Int32">0</d:FooterOverlayGradientDirection>
<d:vti_x005f_associatevisitorgroup>4</d:vti_x005f_associatevisitorgroup>
<d:vti_x005f_associateownergroup>3</d:vti_x005f_associateownergroup>
<d:vti_x005f_sitemasterid>c304ce5b-3b11-40cc-bc31-02fb774b624d</d:vti_x005f_sitemasterid>
<d:HomepageProvisioned>1</d:HomepageProvisioned>
<d:contenttypesusagebackfillversion>3</d:contenttypesusagebackfillversion>
<d:FollowLinkEnabled>TRUE</d:FollowLinkEnabled>
<d:HeaderColorIndexInLightMode m:type="Edm.Int32">-1</d:HeaderColorIndexInLightMode>
<d:vti_x005f_associatemembergroup>5</d:vti_x005f_associatemembergroup>
<d:vti_x005f_indexedpropertykeys>VABoAGUAbQBlAFAAcgBpAG0AYQByAHkA|</d:vti_x005f_indexedpropertykeys>
<d:taxonomyhiddenlist>9cb25be9-d739-4389-aecd-880316a44c7d</d:taxonomyhiddenlist>
<d:UseFastCloneFromSiteMaster>FALSE</d:UseFastCloneFromSiteMaster>
<d:contenttypessynctimestampversion>1</d:contenttypessynctimestampversion>
<d:HeaderOverlayGradientDirection m:type="Edm.Int32">0</d:HeaderOverlayGradientDirection>
<d:HeaderColorIndexInDarkMode m:type="Edm.Int32">-1</d:HeaderColorIndexInDarkMode>
<d:disabledhelpcollections/>
<d:HeaderOverlayColor m:type="Edm.Int32">-1</d:HeaderOverlayColor>
</m:properties>
So, I am not sure why the same property bag values work on the source site, but do not work when transferred to the destination site.
I can fix the error by running a bunch of property bag removal commands like:
Remove-PnPPropertyBagValue -Key "HeaderOverlayColor"
Remove-PnPPropertyBagValue -Key "HeaderOverlayGradientDirection"
Remove-PnPPropertyBagValue -Key "HeaderOverlayOpacity"
Remove-PnPPropertyBagValue -Key "FooterOverlayColor"
Remove-PnPPropertyBagValue -Key "FooterOverlayGradientDirection"
Remove-PnPPropertyBagValue -Key "FooterOverlayOpacity"
Remove-PnPPropertyBagValue -Key "HeaderOverlayGradientDirection"
But this approach is a workaround, and I would rather understand what the underlying issue with these property bag entries is.
Any ideas?
Thanks in advance!
version: 1.18.156-nightly
Description
Not exactly sure if this is a pnp issue or a SharePoint issue. Managed to reproduce it in 2 tenants
Anyways, I have a SharePoint site SITE-1 I created when going to the SP admin center > Active sites > Create > Browse more site (on the site template chooser step) > Team site. I extract a PNP provisioning template file from that site.
Then, I create a new site SITE-2 with the STS#3 template.
After that, I apply the PNP provisioning template from SITE-1 to the SITE-2.
All seems to complete without errors, but when I navigate to the site at its URL (https://domain.sharepoint.com/sites/site-2), I am redirected to the following URL: https://domain.sharepoint.com/sites/site-2/_layouts/15/error.aspx?ErrorText=Error%20getting%20value%20from%20%27headerOverlayColor%27%20on%20%27Microsoft%2ESharePoint%2EContext%2EContextInfo%27%2E&ErrorCorrelationId=7f98cfa1%2Db06c%2De000%2D23bf%2Df2e700ec5742
The error in the URL is: Error getting value from 'headerOverlayColor' on 'Microsoft.SharePoint.Context.ContextInfo'.
What I know for now
HeaderOverlayColor is one of the property bag entries that is copied from the source site. I can see the following in the XML file:
I can also confirm that I see the same entries in the source site:
So, I am not sure why the same property bag values work on the source site, but do not work when transferred to the destination site.
I can fix the error by running a bunch of property bag removal commands like:
Remove-PnPPropertyBagValue -Key "HeaderOverlayColor"
Remove-PnPPropertyBagValue -Key "HeaderOverlayGradientDirection"
Remove-PnPPropertyBagValue -Key "HeaderOverlayOpacity"
Remove-PnPPropertyBagValue -Key "FooterOverlayColor"
Remove-PnPPropertyBagValue -Key "FooterOverlayGradientDirection"
Remove-PnPPropertyBagValue -Key "FooterOverlayOpacity"
Remove-PnPPropertyBagValue -Key "HeaderOverlayGradientDirection"
But this approach is a workaround, and I would rather understand what the underlying issue with these property bag entries is.
Any ideas?
Thanks in advance!