Using Apply-PnPProvisioningTemplate fails with Column '' does not exist

%3CLINGO-SUB%20id%3D%22lingo-sub-51555%22%20slang%3D%22en-US%22%3EUsing%20Apply-PnPProvisioningTemplate%20fails%20with%20Column%20''%20does%20not%20exist%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-51555%22%20slang%3D%22en-US%22%3E%3CP%3EHey%2C%20I%20am%20using%20SharePoint%20Online%2C%20simpoly%20using%20PnP-PowerShell%20to%20export%20the%20template%20from%20one%20site%20collection%20to%20another.%20No%20colums%20or%20content%20types%20are%20in%20the%20Content%20Type%20Hub%2C%20so%20synching%20them%20instead.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EEverything%20works%20fine%20at%20export%2C%20but%20then%20when%20I%20apply%20it%2C%20I%20get%20one%20specific%20field%20that%20says%20it%20does%20not%20exist%20or%20may%20have%20been%20deleted.%20Everything%20seems%20to%20go%20across%20but%20assume%20something%20is%20failing%20somewhere.%20Any%20tips%20on%20how%20to%20resolve%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-52866%22%20slang%3D%22en-US%22%3ERe%3A%20Using%20Apply-PnPProvisioningTemplate%20fails%20with%20Column%20''%20does%20not%20exist%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-52866%22%20slang%3D%22en-US%22%3EWith%20the%20set-pnptrace%20log%20cmd%20before%20the%20apply%20you%20will%20get%20some%20information%20about%20which%20column%20is%20missing.%20Can%20you%20copy%20the%20last%2010%20lines%20or%20so%20into%20this%20post%3F%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-52832%22%20slang%3D%22en-US%22%3ERe%3A%20Using%20Apply-PnPProvisioningTemplate%20fails%20with%20Column%20''%20does%20not%20exist%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-52832%22%20slang%3D%22en-US%22%3E%3CP%3ENot%20sure%20if%20it%20fails%20on%20the%20Lookups.%20It%20just%20fails%20right%20now%20with%20the%20single%20field.%20The%20site%20column%20gets%20created%20but%20the%20page%20layouts%20don't%20seem%20to%20be%20created.%20Liam%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-52831%22%20slang%3D%22en-US%22%3ERe%3A%20Using%20Apply-PnPProvisioningTemplate%20fails%20with%20Column%20''%20does%20not%20exist%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-52831%22%20slang%3D%22en-US%22%3E%3CP%3EI%20posted%20the%20XML%20over%20in%20the%20GitHub%20issues%20list.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2FSharePoint%2FPnP-Sites-Core%2Fissues%2F999%23issuecomment-285630630%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgithub.com%2FSharePoint%2FPnP-Sites-Core%2Fissues%2F999%23issuecomment-285630630%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-51762%22%20slang%3D%22en-US%22%3ERe%3A%20Using%20Apply-PnPProvisioningTemplate%20fails%20with%20Column%20''%20does%20not%20exist%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-51762%22%20slang%3D%22en-US%22%3EWhere%20do%20you%20get%20the%20error.%3CBR%20%2F%3E%3CBR%20%2F%3ECan%20you%20run%20set-pnptracelog%20-on%20-level%20debug%20before%20the%20apply%20cmdlet.%3CBR%20%2F%3E%3CBR%20%2F%3EIs%20it%20in%20the%20lookups.%20So%20a%20field%20in%20the%20lookup%20is%20used%20that%20isn't%20created%3F%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-51752%22%20slang%3D%22en-US%22%3ERe%3A%20Using%20Apply-PnPProvisioningTemplate%20fails%20with%20Column%20''%20does%20not%20exist%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-51752%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20Liam%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ecan%20you%20post%20your%20xml%20extract%3F%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
MVP

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 instead.

 

Everything works fine at export, but then when I apply it, I get one specific field that says it does not exist or may have been deleted. Everything seems to go across but assume something is failing somewhere. Any tips on how to resolve?

5 Replies
Highlighted

Hi Liam,

 

can you post your xml extract? 

Highlighted
Where do you get the error.

Can you run set-pnptracelog -on -level debug before the apply cmdlet.

Is it in the lookups. So a field in the lookup is used that isn't created?
Highlighted
Highlighted

Not sure if it fails on the Lookups. It just fails right now with the single field. The site column gets created but the page layouts don't seem to be created. Liam

Highlighted
With the set-pnptrace log cmd before the apply you will get some information about which column is missing. Can you copy the last 10 lines or so into this post?