SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm using PowerShell to add metadata to my termstore. When I go to the central administration, in metadata service application I can see that I have one termstore. But when I try to access it through :

$session = new-object Microsoft.SharePoint.Taxonomy.TaxonomySession($site)
$termstore = $session.TermStores[$]

I don't find anything, and if I take a look at the $session object I see everything empty except the "OfflineTermstoreNames",

Do you have any ideas how I could access to the metadata termstore ?

share|improve this question
I have the same problem. Term store exists. I'm administrator, on the service, group, and set and yet powershell says there are no term stores. DefaultKeywordsTermStore DefaultSiteCollectionTermStor OfflineTermStoreNames TermStores e ------------------------ ----------------------------- --------------------- ---------- {Managed Metadata Service} {} – Daniel Byrne Dec 19 '12 at 23:23
I have the same Problem. So when you say TurnOff the server do you really mean by server or MMS Service? Please help – user15403 Mar 7 '13 at 16:11


$session = Get-SPTaxonomySession -Site $site

$termStore = $session.TermStores[$]

Does it works?

share|improve this answer
No, still the same proble, I have one item in OfflineTermstoreNames, and nothing in termstore :s – Thoma Bigueres Jul 5 '12 at 14:26

Have you tried checking what termstores are available in $session.TermStores (by iterating on it)?

Are you having multiple Managed Metadata Services?

share|improve this answer
Yes, i've tried that, but there is no termstore "online" at all. When I look directly in my $session variable. I can only see one OfflineTermstoreName, all the other element are empty :s – Thoma Bigueres Jul 9 '12 at 6:24
up vote 0 down vote accepted

I've found what I was looking for :

Being Administrator on the group, on the termset, on the termstore and on the service.

Turn off the server and turn it on.

It was ok for me

share|improve this answer

Maybe some of your MetaData Service Instances are disabled. See:

share|improve this answer

I tried all of the above with no success, but managed to bring my MM term store back online with a stop and start of ALL running instances of the Managed Metadata Web Service from the Services on Server page

share|improve this answer

Had this problem. Creating a new web app, importing terms to term store and session is null. Solution was to open a new powershell session and ran my termstore related commands.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.