Physical Address

304 North Cardinal St.
Dorchester Center, MA 02124

Invalid field name “TaxCatchAll” on Invoke-PnPSiteTemplate

As many companies you would like to build some provisioning solution where you would like to provision a new SharePoint site. Maybe a group-based SharePoint site with an MS Teams environment. It could be possible you will receive random the error “Invalid field name TaxCatchAll or some guid”.

This problem occurs when there is some performance issue from Microsoft. The pnp provisioning expect there are some columns available, but they are not yet provisioned because the site is just created or because some feature is just activated.

In your PowerShell script activate the feature below which creates the column “TaxCatchAll”

Enable-PnPFeature -Identity "73ef14b1-13a9-416b-a9b5-ececa2b0604c" -Scope Site

After this check if the column “TaxCatchAll” is availble. Wait till it is found. After it is found you can run

$taxCatchAllField = $null
while($null -eq $taxCatchAllField){
  $taxCatchAllField =  Get-PnPField -Identity "f3b0adf9-c1a2-4b02-920d-943fba4b3611" -ErrorAction SilentlyContinue
  Start-Sleep -Seconds 5
}

Invoke-PnPSiteTemplate -Path "C:\myPnPTemplate.xml"

Leave a Reply

Your email address will not be published. Required fields are marked *