Monday, October 15, 2007

Be careful with uninstalling (core) features

At a customer a requirement came not to enable wiki page libraries (yet) for WSS teamsites. So like I did with customizing the SiteSettings feature, I looked in the FEATURES folder to find where the wiki library was located and 'just' uninstalled the feature. For your information, the feature that covers the wiki library is called "WebPage Library (little odd though).. So I went in and uninstalled feature and voila the link to create a wiki library was gone! Yeah baby! :)

But then.... when I tried to create a site (didn't matter if it was a sitecollection or subsite) I was prompted with:

The template you have chosen is invalid or cannot be found.

Luckily a test user was testing the creation of mysites and he got the same error as I did. Then I did checked the event log of the server, the following error was given during the creation :

Event Type:    Error
Event Source:    Office SharePoint Server
Event Category:    User Profiles 
Event ID:    5187
Date:        10/15/2007
Time:        8:28:39 AM
User:        N/A
Computer:    FRONTENDSERVER
Description:
My Site creation failure for user 'Username' for site url 'http://portal/personal/username'. 
The exception was: Microsoft.Office.Server.UserProfiles.PersonalSiteCreateException:
A failure was encountered while attempting to create the site. --->
System.ArgumentException: Dependency feature with id 00bfea71-c796-4402-9f2f-0eb9a6e71b18 for feature 'TeamCollab'
(id: 00bfea71-4ea5-48d4-a4ad-7ea5c011abe5) is not installed.

Looking at the error, two things were blinking in my eye and those were "TeamCollab" and "Dependency feature". So.. because of my uninstallation of the Wiki Page Library, none of the sites could be created because the TeamCollab feature wants to fire the WebPage Library feature and fails doing so. And what amazes me the most that this error was given by the UserProfile service!

Once I installed the WebPage Library feature again, all the sites (mysites & teamsites) could be created.

So let that be a lesson to everyone ! ;)

 

Technorati tags: ,

4 comments:

Misterbeefy said...

Nice post. I've had this request a few times and had thought about doing that. Now I know better :)

Anonymous said...

Thanks for the heads up!

Anonymous said...

I am amazed you got a useful error message out of sharepoint!

Robin Meuré said...

As was I ;)