diff --git a/Start-SPMigration.ps1 b/Start-SPMigration.ps1 index 2a316a5..7895ab7 100644 --- a/Start-SPMigration.ps1 +++ b/Start-SPMigration.ps1 @@ -1942,11 +1942,8 @@ function Convert-ToTaxonomyTermEntries { $label = $matches[1] $termGuid = $matches[2] } - else { - $parsedGuid = [Guid]::Empty - if ([guid]::TryParse($rawTermString, [ref]$parsedGuid)) { - $termGuid = $rawTermString - } + elseif ([guid]::TryParse($rawTermString, [ref]([guid]::Empty))) { + $termGuid = $rawTermString } } @@ -2187,14 +2184,6 @@ function Set-SPItemFieldValue { try { switch ($field.TypeAsString) { - "TaxonomyFieldType" { - Set-SPTaxonomyFieldValue -Item $Item -Field $field -RawValue $RawValue -TextValue $TextValue - return - } - "TaxonomyFieldTypeMulti" { - Set-SPTaxonomyFieldValue -Item $Item -Field $field -RawValue $RawValue -TextValue $TextValue - return - } "Boolean" { $Item[$field.InternalName] = Convert-ToBoolean -RawValue $RawValue -TextValue $TextValue return