Invoke-PnPSiteTemplate - Error: The formula refers to a column that does not exist.

Copper Contributor

Hi everyone,

 

this is my first post here, so please have mercy with me in case I forgot to write down important information ;)

 

So my goal is to create a template from a SharePoint site and then apply it to a manually created SharePoint site.

 

This is the way I created the SharePoint template (the template was successfully created). I tried it once with more and once fewer parameters to see if it makes a difference while applying the template.

 

Get-PnPSiteTemplate -Out C:\SharePointTemplates\Germany-Urlaub.pnp

-IncludeAllTermGroups

-IncludeAllClientSidePages

-IncludeHiddenLists

-IncludeNativePublishingFiles

-IncludeSearchConfiguration

-IncludeSiteCollectionTermGroup

-IncludeSiteGroups

-IncludeTermGroupsSecurity

 

Get-PnPSiteTemplate -Out C:\SharePointTemplates\Germany-Urlaub.pnp

-IncludeAllTermGroups

-IncludeHiddenLists

-IncludeSiteCollectionTermGroup

-PersistBrandingFiles

 

Then I sued the following command to apply the template (obviously I switched to the manually created SharePoint site)

 

Invoke-PnPSiteTemplate -Path C:\SharePointTemplates\Germany-Urlaub.pnp

 

After I received the error I used "Get-PnPException" to get more details about the error. Prior to that, I tried to create a log file with the following command (for some kind of reason the log file is always empty):

 

Set-PnPTraceLog -On -LogFile C:\SharePointTemplates\log.txt

 

Anyways the extended error message with "Get-PnPException" is the following one. I do not understand which column is meant. How can I find out?

 

Tom_Falk_0-1620294910407.png

 



 

 

 

1 Reply

@Tom_Falk Were you ever able to solve your issue? Pulling my hair out here....