Open sanjay-senict opened 6 years ago
Like issue #1127 , this issue seems to fall into the darkness of PnP reviews ?
I have the same problem with a Taxonomy Note field. My template worked yesterday...
I will come back here if i found a beginning of solution ;)
Oh. Ok. I found it.
In your template, you MUST put the Note field BEFORE the Taxonomy Field. Not necessarly just before but before... It's probably because, like me you would use :
<Customization>
<ArrayOfProperty>
<Property><Name>SspId</Name>
<Value xmlns:q1="http://www.w3.org/2001/XMLSchema" p4:type="q1:string" xmlns:p4="http://www.w3.org/2001/XMLSchema-instance">{sitecollectiontermstoreid}</Value>
</Property>
<Property><Name>TermSetId</Name>
<Value xmlns:q2="http://www.w3.org/2001/XMLSchema" p4:type="q2:string" xmlns:p4="http://www.w3.org/2001/XMLSchema-instance">{termsetid:my-termset-id}</Value>
</Property>
<Property><Name>TextField</Name>
<Value xmlns:q6="http://www.w3.org/2001/XMLSchema" p4:type="q6:string" xmlns:p4="http://www.w3.org/2001/XMLSchema-instance">{c32b6952-8850-4030-b5fe-03ee5988f4bd}</Value>
</Property>
</ArrayOfProperty>
</Customization>
(See the GUID into "TextField" Property ? It's the GUID's Note field.)
So the GUID seems to need to be define before that the Taxonomy Field and this TextField GUID appear.
If it can help, I faced the same error message.
I finaly found I had two fields in my template with the same ID (copy/paste failš¤£)
Thank you for reporting an issue or suggesting an enhancement. We appreciate your feedback - to help the team to understand your needs, please complete the below template to ensure we have the necessary details to assist you. If you have a actual question, we would ask you to use SharePoint Developer Group at Microsoft Tech Community. Thanks!
Which PnP repository should you use to report the issue?
Please navigate to the appropriate repository by clicking on the link below and create your issue there. You can delete this section after you have navigated to the correct repository.
Category
[x] Bug [ ] Enhancement
Environment
[ ] Office 365 / SharePoint Online [x] SharePoint 2016 [ ] SharePoint 2013
If SharePoint on-premises, what's exact CU version:
Expected or Desired Behavior
No Errors when applying a template
Observed Behavior
powershell_ise.exe Information: 0 : 2018-06-21 10:39:45.0334 [Fields] [15] [Debug] Adding field {66257ee8-bab0-4150-9c3a-7bd0dd47e651} to site 359ms 09c1f0b4-fadd-49bf-b359-46a16f15bd8c powershell_ise.exe Error: 0 : 2018-06-21 10:39:45.2053 [Fields] [15] [Error] Adding field {66257ee8-bab0-4150-9c3a-7bd0dd47e651} failed: The local device name is already in use. (Exception fr om HRESULT: 0x80070055) : bij Microsoft.SharePoint.Client.ClientRequest.ProcessResponseStream(Stream responseStream) bij Microsoft.SharePoint.Client.ClientRequest.ProcessResponse() bij Microsoft.SharePoint.Client.ClientContextExtensions.ExecuteQueryImplementation(ClientRuntimeContext clientContext, Int32 retryCount, Int32 delay, String userAgent) bij OfficeDevPnP.Core.Framework.Provisioning.ObjectHandlers.ObjectField.CreateField(Web web, XElement templateFieldElement, PnPMonitoredScope scope, TokenParser parser, String originalFiel dXml) bij OfficeDevPnP.Core.Framework.Provisioning.ObjectHandlers.ObjectField.ProvisionObjects(Web web, ProvisioningTemplate template, TokenParser parser, ProvisioningTemplateApplyingInformation applyingInformation) 528ms 09c1f0b4-fadd-49bf-b359-46a16f15bd8c powershell_ise.exe Information: 0 : 2018-06-21 10:39:45.2053 [Fields] [15] [Debug] Code execution scope ended 529ms 09c1f0b4-fadd-49bf-b359-46a16f15bd8c powershell_ise.exe Information: 0 : 2018-06-21 10:39:45.2053 [Provisioning] [15] [Debug] Code execution scope ended 6121ms 09c1f0b4-fadd-49bf-b359-46a16f15bd8c Apply-PnPProvisioningTemplate : The local device name is already in use. (Exception from HRESULT: 0x80070055) At U:\Mijn Documenten\Scripts\WBGRSiteAanvraagV2.ps1:160 char:25
Steps to Reproduce
Having troubled added fields, the field definition is exported from a live site from the same farm and webapplication.
Thanks for your contribution! Sharing is caring.