The given guid does not exist in the term store


Term store is my favorite topic in SharePoint and always love to talk about and inform folks its the most enterprise ready component added from SharePoint 2010 and enhanced in SharePoint 2013 with some of its limitations fixed.

 

Since you will be using term store and managed meta data column and would like to update the meta data column with a term store value from a termset through object model code , if you ever get this error below add this piece of code on your taxanomy field object before the item update

 

taxField.SspId = taxonomyStore.Id;
taxField.PushChangesToLists = true;
taxField.Update();

The given guid does not exist in the term store

 

at Microsoft.SharePoint.Taxonomy.TaxonomyField.ValidateTaxonomyFieldValue(TaxonomyFieldValue taxFieldValue) at Microsoft.SharePoint.Taxonomy.TaxonomyField.ValidTaxonomyFieldValue(TaxonomyFieldValue taxFieldValue) at Microsoft.SharePoint.Taxonomy.TaxonomyField.GetValidatedString(Object value) at Microsoft.SharePoint.SPListItem.SetValue(String strName, Object value, SPField field, Boolean protectFields, Boolean skipValidation) at Microsoft.SharePoint.SPListItem.SetValue(String strName, Object value, SPField field, Boolean protectFields) at Microsoft.SharePoint.SPListItem.SetValue(String strName, Object value, Boolean protectFields)

Advertisements

No comments yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: