Question

I have created a new Term store tree, and inside my Category column for my Wiki Pages , i link the Column to my metadata navigation. but now when i want to assign a new value for my Category column and select a new term , i was not able to access the term store and the Category colum was disabled as follow:- enter image description here

when i access the Metadata navigation service, i could not find the old term store any more also? enter image description here

Can any one advice what might be causing this stange behavioure ? Thanks

Was it helpful?

Solution

The link between your field and the termstore is probably not correctly set.

In order to display the correct values, a termstore field (TaxonomyField) contains the id's of your termstore and termset you want to display. However this ID is different on every server. You need to make sure when using a TaxonomyField the field is configured with the correct id's on that server.

Here is some c# on how to do it. You can find the id's on the bottom of the property page of your termstore manager in SharePoint.

private void LinkMmdField(TaxonomyField field, LinkMmd linkinfo, TaxonomySession session)
{     
    TermStore termStore = session.TermStores[linkinfo.TermStoreName];
    Group group = termStore.Groups[linkinfo.TermGroupName];
    TermSet  termset = group.TermSets[linkinfo.TermSetName];

    if (termset != null)
    {
        field.SspId = termStore.Id;
        field.TermSetId = termset.Id;
        field.Update();
    }
}
Licensed under: CC-BY-SA with attribution
Not affiliated with sharepoint.stackexchange
scroll top