Unable to apply SharePoint Template to New site using command Invoke-PPSiteTemplate

Copper Contributor

Hi Team,

Could you please assist.

I unable to apply existing site template to a new site.

I managed to get the site template both in PNP and XML format but when I apply the template to new site using Invoke-PnPSite command I am getting below error message.

"Invoke-PnPSiteTemplate : The field was found invalid:
At line:1 char:1
+ Invoke-PnPSiteTemplate -Path "Security.xml"
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : WriteError: (:) [Invoke-PnPSiteTemplate], Exception
+ FullyQualifiedErrorId : EXCEPTION,PnP.PowerShell.Commands.Provisioning.Site.InvokeSiteTemplate"


Any help is much appreciated.


Kind Regards


0 Replies