-
Notifications
You must be signed in to change notification settings - Fork 36
Open
Description
Error when migrating a document library to a separate site in the same tenant.
Error occurs when attempting to import the library to the destination:
Importing lists and libraries...
[Error] The field was found invalid:
Apply-PnPProvisioningTemplate : The field was found invalid:
At C:\Users\...\FlowPowerAppsMigrator\MISC\Move-Lists.ps1:213 char:9
+ Apply-PnPProvisioningTemplate -Path Lists.xml
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : WriteError: (:) [Apply-PnPProvisioningTemplate], Exception
+ FullyQualifiedErrorId : EXCEPTION,PnP.PowerShell.Commands.Provisioning.Site.ApplyProvisioningTemplate
The TraceOutput.txt:
PowerShell.exe Information: 0 : 2025-10-05 17:26:06.9312 [Fields] [14] [Debug] Adding field {4904cfd9-edd5-4393-979f-6bce2f0eda0b} to site 15089ms 9c6aa2ce-0918-4ac3-8091-da3491618f2f
PowerShell.exe Error: 0 : 2025-10-05 17:26:07.2029 [Fields] [14] [Error] The field was found invalid: 15367ms 9c6aa2ce-0918-4ac3-8091-da3491618f2f
PowerShell.exe Error: 0 : 2025-10-05 17:26:07.2029 [Fields] [14] [Error] Adding field {4904cfd9-edd5-4393-979f-6bce2f0eda0b} failed: The field was found invalid: : at OfficeDevPnP.Core.Framework.Provisioning.ObjectHandlers.ObjectField.CreateField(Web web, XElement templateFieldElement, PnPMonitoredScope scope, TokenParser parser, String originalFieldXml)
at OfficeDevPnP.Core.Framework.Provisioning.ObjectHandlers.ObjectField.ProvisionObjects(Web web, ProvisioningTemplate template, TokenParser parser, ProvisioningTemplateApplyingInformation applyingInformation) 15368ms 9c6aa2ce-0918-4ac3-8091-da3491618f2f
The Lists.xml defines the erroring field type as "TaxonomyFieldType".
Metadata
Metadata
Assignees
Labels
No labels