Welcome!

Silverlight Authors: Tad Anderson, Bruce Armstrong, Maureen O'Gara, Aaron Godfrey, Udayan Banerjee

Related Topics: .NET, Silverlight

.NET: Blog Feed Post

An Easier Way to Enable Managed Metadata Site Columns

Using the Blank Site template

Whenever you use the Blank Site template for a site collection, a lot of supporting features that you may want are not activated.  One of these is the feature for Managed Metadata site columns.  When you pick one, you might see the following error.

The required feature is not enabled for this column type.

image

That’s nice, but why don’t you actually tell me the feature name that I need to activate?  I’ve seen a lot of posts on this, and they state to activate the required feature using PowerShell using the GUID of the feature.  Some even, dare I say it, recommend you use stsadm.  Tsk. Tsk.  I don’t know about you, but I can’t remember the GUID off the top of my head.  I got tired of having to look up a post every time I need to activate this feature on a new site collection so I decided to figure out what the name was.

If you’ve read my previous PowerShell posts, you know that we can figure this out with Get-SPFeature.  This told me that the feature name was actually TaxonomyFieldAdded.  Now all we have to do to activate is use the Enable-SPFeature command as you see below.  In my case, I am activating it at the site collection located at http://sp2010/sites/deployment.

Enable-SPFeature -Id TaxonomyFieldAdded –Url http://sp2010/sites/deployment

image

If all goes well, you’ll get a blank prompt back indicating success.  Now when you try to create your managed metadata site column, it should work successfully.

image

Even if you’re not great with PowerShell, I find that this command is pretty easy to remember.  Try it out.

Read the original blog entry...

More Stories By Corey Roth

Corey Roth is a consultant at Stonebridge specializing in SharePoint for clients in the energy sector. He has more than ten years of experience delivering solutions in the energy, travel, advertising and consumer electronics verticals.

Corey specializes in delivering ECM and search solutions to clients using SharePoint. Corey has always focused on rapid adoption of new Microsoft technologies including Visual Studio 2010, .NET Framework 4.0, and Silverlight.

He is a member of the .NET Mafia (www.dotnetmafia.com) where he blogs about the latest technology and SharePoint. He is dedicated to the community and speaks regularly at user groups and SharePoint Saturdays.