Forum Discussion
IT_Bee
Apr 10, 2026Copper Contributor
PnP Template Error: "Invalid field name {guid}
Hello,
I'm trying to apply a site template from one SharePoint Online site to another using PnP PowerShell. I have custom lists, some of them with a specific dependency chain:
List X has a lookup to List Y.
List Y has a lookup to List Z.
All libraries/lists have "Allow management of content types" enabled.
The cmdlets I run:
Export:
Get-PnPSiteTemplate -Out template.pnp -Handlers All -IncludeAllClientSidePages -PersistBrandingFiles
Import:
Invoke-PnPSiteTemplate -Path template.pnp
The Error:
During the Invoke process, I get:
Invoke-PnPSiteTemplate : Invalid field name {guid} targetsharepoint siteWhat I’ve tried:
- I attempted to manually remove the ID="{guid}" attributes from the XML inside the .pnp package, but that just makes the template schema invalid.
- Verified that I am connected to the target site with owner permissions.
How can this issue be fixed?
Any help would be greatly appreciated!
Thanks!
No RepliesBe the first to reply