Raghu's SharePoint Column : SharePoint - My Lifeline!!

Raghu's SharePoint Column

Dependency Feature Ratings error while creating or provisioning Community Site in a Team Site Collection

While trying to answer one of the forum queries here I found an interesting feature dependency with Community Site definition in SharePoint 2013 so thought why not write a post on it. Given below is error and scenario of the query.

Scenario: Created a root site collection using team site template and then create a sub site using Community Site. Was expecting an error has mention in the forum query above but it worked perfectly fine (I mean no errors).

Error: 0x8107058aDependency feature ‘Ratings’ (id: 915c240e-a6cc-49b8-8b2c-0bff8b553ed3) for feature ‘CommunitySite’ (id: 961d6a9c-4388-4cf2-9733-38ee8c89afd4) is not activated at this scope. e030f99b-16c3-6081-3cf2-f8c5f541a495

Now the challenge was how to reproduce the above error in my development environment, so started digging the Community Site definition and Rating Feature. While doing this activity I came across Rating Feature which is hidden by default and the scope is Site as shown below in the snapshot.

Rating Feature

Rating Feature Definition

So the next step I took was to delete the site created using Community site template and validated the Rating feature at the root site, it still exist and I was still able to create a new community site. The next step I took was to disable Rating feature using power shell given below and tried creating the community site and here is when i was able to reproduce the above error.

Disable-SPFeature –Identity Ratings –url http://sp2013/sites/CS –Confirm:$false

So to fix this just enable the Rating feature using PowerShell at the root site and you should be able to create community site without any issues

Enable-SPFeature –Identity Ratings –url http://sp2013/sites/CS.

If you want to get the list of features activated on root site use the below snippet

Add-PSSnapin Microsoft.SharePoint.Powershell
Get-SPFeature -Site http://sp2013/sites/CS | Sort DisplayName | FT DisplayName,Id

Note: Please do not perform such operation on your SharePoint machines unless you want to perform an RnD.

 
Comments

No comments yet.

Leave a Reply
*

Protected by WP Anti Spam