Modern Site Pages migration with Get-PnPProvisioningTemplate #120
-
Acording to this article, I understand that pnp can now migrate pages. So I executed the below commands: But get error:
SharePointPnPPowerShellOnline 3.28.2012.0 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
By default when we extract a template for a site we include references for a file, but do not download the actual file. The error message you're seeing is that the engine wants to provision a file, but it cannot find it on the file system where the template resides. If you include the -PersistBrandingFiles parameter you will notice a SiteAssets folder being created at the current location where you execute the cmdlet with in there the files. The template will refer to those files and will be able to find them to upload them. |
Beta Was this translation helpful? Give feedback.
By default when we extract a template for a site we include references for a file, but do not download the actual file. The error message you're seeing is that the engine wants to provision a file, but it cannot find it on the file system where the template resides. If you include the -PersistBrandingFiles parameter you will notice a SiteAssets folder being created at the current location where you execute the cmdlet with in there the files. The template will refer to those files and will be able to find them to upload them.