Today I ran the latest version of the PnP PowerShell Apply-PnPProvisioningTemplate Cmdlet to apply some templates and I noticed that pages weren’t updated.

Updating pages skipped

Table of Contents

I noticed the following warning after I enabled debug

PowerShell_ISE.exe Warning: 0 : 2017-01-25 10:50:55.3041 [Files] [12] [Information] Skipping upload of file ‘Pages\default.aspx’ to ‘Pages’. 1497ms 7b0362d0-b49b-4d71-
9251-a5c060fac6fe

Why is updating these pages not happening?

Looking at the code responsible for the warning

bool isNoScriptSite = web.IsNoScriptSite();

if (SkipFile(isNoScriptSite, file.Src, folderName))
{
// add log message
scope.LogWarning(CoreResources.Provisioning_ObjectHandlers_Files_SkipFileUpload, file.Src, folderName);
continue;
}

Scripting

I just created a new tenant and I hadn’t enabled scripting yet.

enable scripting to support updating pages

If you don’t want to wait 24 hours then  you can always attempt:

Avatar for Pieter Veenstra

By Pieter Veenstra

Business Applications Microsoft MVP working as the Head of Power Platform at Vantage 365. You can contact me using contact@sharepains.com

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Discover more from SharePains by Microsoft MVP Pieter Veenstra

Subscribe now to keep reading and get access to the full archive.

Continue reading