I try to set a default value for a taxonomy field on a SharePoint document library by using a PowerShell script. The GUID is the guide to a term copied from the term store.
Set-PnPDefaultColumnValues -List "Documents" -Field "CustomTest" -value "00000000-0000-0000-0000-000000000000"
The error I receive is
Set-PnPDefaultColumnValues: Error Applying Default Column Values
The rest of the error simply states that there was an exception. I have the same error with that
Set-PnPDefaultColumnValues -List "Documents" -Field "CustomTest" -Value "TermGroup|TermSet|TermName"
I have also tried the following. There is no error but the field does not update
$field = Get-PnPField "CustomTest" -List "Documents" $field.DefaultValue = "00000000-0000-0000-0000-000000000000" $field.Update()
I have looked at the documentation and the first seems correct. The column is there and functional. CustomTest is the internal name and the full name.
Has anyone ever seen this problem?