Forum Discussion
Error when provisioning a site
Hi!
I have been following this introduction to provisioning using PnP.
https://channel9.msdn.com/blogs/officedevpnp/getting-started-with-pnp-provisioning-engine
I installed the new recommended Nuget package SharePointPnPCoreOnline 2.9.1610.1.
I have a simple site as template and the extract works just fine. But when I try to Provision it to another site I get the following error.
I haven't done anything with fields in the "template". What could be wrong?
Best regards, Åse
PnpProvisionAteaMiniIntranat.vshost.exe Information: 0 : 2016-10-20 13:05:40.8716 [Fields] [10] [Debug] Updating field {4b8ae630-ed31-4e4f-a201-ca92dafca588} in site 18341ms 0ff1b5ea-9ff1-4faa-ad7b-03b8ece5cb78
PnpProvisionAteaMiniIntranat.vshost.exe Error: 0 : 2016-10-20 13:05:41.7016 [Fields] [10] [Error] The field was found invalid: {{listid:TaxonomyHiddenList} {sitecollectiontermstoreid} 19170ms 0ff1b5ea-9ff1-4faa-ad7b-03b8ece5cb78
PnpProvisionAteaMiniIntranat.vshost.exe Error: 0 : 2016-10-20 13:05:41.7136 [Fields] [10] [Error] Updating field {4b8ae630-ed31-4e4f-a201-ca92dafca588} failed: The field was found invalid: {{listid:TaxonomyHiddenList} {sitecollectiontermstoreid} : at OfficeDevPnP.Core.Framework.Provisioning.ObjectHandlers.ObjectField.UpdateField(Web web, String fieldId, XElement templateFieldElement, PnPMonitoredScope scope, TokenParser parser, String originalFieldXml)
at OfficeDevPnP.Core.Framework.Provisioning.ObjectHandlers.ObjectField.ProvisionObjects(Web web, ProvisioningTemplate template, TokenParser parser, ProvisioningTemplateApplyingInformation applyingInformation) 19183ms 0ff1b5ea-9ff1-4faa-ad7b-03b8ece5cb78
Exception thrown: 'System.Exception' in OfficeDevPnP.Core.dll
PnpProvisionAteaMiniIntranat.vshost.exe Information: 0 : 2016-10-20 13:05:41.7583 [Fields] [10] [Debug] Code execution scope ended 19228ms 0ff1b5ea-9ff1-4faa-ad7b-03b8ece5cb78
PnpProvisionAteaMiniIntranat.vshost.exe Information: 0 : 2016-10-20 13:05:41.7601 [Provisioning] [10] [Debug] Code execution scope ended 27822ms 0ff1b5ea-9ff1-4faa-ad7b-03b8ece5cb78
The thread 0x2b90 has exited with code 0 (0x0).
The thread 0x22b4 has exited with code 0 (0x0).
The program '[15424] PnpProvisionAteaMiniIntranat.vshost.exe: Program Trace' has exited with code 0 (0x0).
The program '[15424] PnpProvisionAteaMiniIntranat.vshost.exe' has exited with code 0 (0x0).
- Deleted
Hi Ase,
it looks like you want to update a existing termstore. If items already exist it is not possible to update them. So please check if they already exist.
kr,
Paul
- Ivan VaguninBrass Contributor
Hi Åse,
Error means that some tokens ({listid:TaxonomyHiddenList} {sitecollectiontermstoreid}) are not resolved, so field cannot be provisioned. Not sure what would be a reason for that, but you may try to update template to avoid using those tokens.
__
Br, Ivan
- Frank ChenBrass Contributor
agree with what they talked about. If you have Taxonomy field needed to be provisioning by Office PnP, you need to make sure those terms exist in TermStore before you apply your template. PnP doesn't provision the term in TermStore.
- pedromonteCopper ContributorYou can also collect the taxonomy hidden list to the template using -IncludeHiddenLists