Office 365 – Apply-PnPProvisioningTemplate not updating pages.

Today I ran the latest version of the PnP PowerShell commands to apply some templates.

I noticed the folloiwng 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 are these pages skipped?

 

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;
}

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

scripting

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

https://veenstra.me.uk/2016/04/22/office-365-sharepoint-set-sposite-property-set-method-not-found/

Advertisements

Please leave a comment or feedback

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

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