Updating SharePoint Managed Metadata Term hidden Value after Renaming Term in Managed Metadata


Prashob Jayapraksh

Background : If your SharePoint 2010 Server running  on June 2011 or Later version (14.0.6106.5002 of the cumulative update package) and the Taxonomy Update Scheduler is running fine and you face the below issue

Issue : Rename a Term in Managed Metadata  and New Term is not  reflecting on List views or Document Set  Landing Page(Only it get reflects if  you edit the Item)

Root Cause : Managed Metadata Term Hidden Value is not Updating

Workaround :

Save the below code lines as text files and save like Ex. UpdateTaxonomyHiddenList.ps1.

$Assem = (
“Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c” ,
“Microsoft.SharePoint.Taxonomy, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c”
)

$Source = @”

using Microsoft.SharePoint;

using Microsoft.SharePoint.Taxonomy;

using System;

namespace TaxonomyUpdater

{

    publicstaticclassTaxonomyHiddenList

    {

        publicstaticvoid Update(string SiteUrl)

        {

            SPSite Site2Update = new SPSite(SiteUrl);

            TaxonomySession.SyncHiddenList(Site2Update);

            Site2Update.Dispose();

        }

    }

}

“@

Add-Type -ReferencedAssemblies $Assem

View original post 62 more words