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

%3CLINGO-SUB%20id%3D%22lingo-sub-3195655%22%20slang%3D%22en-US%22%3EUnable%20to%20apply%20SharePoint%20Template%20to%20New%20site%20using%20command%20Invoke-PPSiteTemplate%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3195655%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20Team%2C%3C%2FP%3E%3CP%3ECould%20you%20please%20assist.%3C%2FP%3E%3CP%3EI%20unable%20to%20apply%20existing%20site%20template%20to%20a%20new%20site.%3C%2FP%3E%3CP%3EI%20managed%20to%20get%20the%20site%20template%20both%20in%20PNP%20and%20XML%20format%20but%20when%20I%20apply%20the%20template%20to%20new%20site%20using%20Invoke-PnPSite%20command%20I%20am%20getting%20below%20error%20message.%3C%2FP%3E%3CP%3E%22Invoke-PnPSiteTemplate%20%3A%20The%20field%20was%20found%20invalid%3A%3CBR%20%2F%3EAt%20line%3A1%20char%3A1%3CBR%20%2F%3E%2B%20Invoke-PnPSiteTemplate%20-Path%20%22Security.xml%22%3CBR%20%2F%3E%2B%20~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~%3CBR%20%2F%3E%2B%20CategoryInfo%20%3A%20WriteError%3A%20(%3A)%20%5BInvoke-PnPSiteTemplate%5D%2C%20Exception%3CBR%20%2F%3E%2B%20FullyQualifiedErrorId%20%3A%20EXCEPTION%2CPnP.PowerShell.Commands.Provisioning.Site.InvokeSiteTemplate%22%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAny%20help%20is%20much%20appreciated.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EKind%20Regards%3C%2FP%3E%3CP%3ENaresh%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Visitor

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

Naresh

0 Replies