Forum Discussion
helloitsliam
Mar 08, 2017MVP
Using Apply-PnPProvisioningTemplate fails with Column '' does not exist
Hey, I am using SharePoint Online, simpoly using PnP-PowerShell to export the template from one site collection to another. No colums or content types are in the Content Type Hub, so synching them in...
ahmadehsan
Sep 28, 2021Copper Contributor
Did you try to check the XML of your template file? I got the same error and I resolved it by removing the column from the view fields tag as shown below:
<ViewFields>
<FieldRef Name="Designation" />
</ViewFields>
Reason: The column shown in error (Designation in my case) was deleted from the list but it was present in view fields tag of XML.
<ViewFields>
<FieldRef Name="Designation" />
</ViewFields>
Reason: The column shown in error (Designation in my case) was deleted from the list but it was present in view fields tag of XML.