The code breaks on the line:
$MMSField.SetFieldValue($spItem,$Term)
below
The error is
multiple ambuiguos overloads found for SetFieldValue and the argument count:2
Any idea what is wrong? This is supposed to be the standard code.
(This is not a multivalued Taxonomy field)
#Cast to SPListItem to avoid ambiguous overload error
$spItem = [Microsoft.SharePoint.SPListItem]$listItem;
$MMSField = [Microsoft.SharePoint.Taxonomy.TaxonomyField]$spItem.Fields[$FieldName]
$MMSField.SetFieldValue($spItem,$Term)
faye fouladi