Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Question
Tuesday, June 21, 2016 3:00 PM
My Sharepoint 2010 environment has several missing features. These are references to third party webparts we used to have in the previous environment
I've already tried the following solutions:
- Feature Admin tool - did not delete the feature ( I think it gave an error that the feature is not activated)
- stsadm -o uninstallfeature -id <Feature ID> - this did not work either. It said that the operation completed successfully but the missing feature reference was still there.
Is there anything else I can try?
thanks,
All replies (6)
Thursday, June 23, 2016 1:52 AM ✅Answered
Hi bbatl,
If SP manger cannot work for you, here is another script to use the DisplayName to get the spfeature (actually SPFeatureDefinition) and then delete it.
This will give you a complete list of orphaned features.
Get-SPFeature | ? { $_.Scope -eq $null }
Now you have to find your feature and delete it. You cannot use Id for getting your feature, neither use Unistall-SPFeature cmdlet with Id.
$feature = Get-SPFeature | ? { $_.DisplayName -eq "My_Orphane_Feature" }
$feature.Delete()
You can even use this code to clean all the orphaned features:
Get-SPFeature | ? { !$_.Scope } | % { $_.Delete() }
Best Regards,
CY
TechNet Community Support
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected].
Tuesday, June 21, 2016 3:53 PM
SharePoint Feature Admin toolkit is well-known and the best for this. It allows you to find faulty FeatureDefinitions and cleanly uninstalls them and yet supports SP 2007, 2010 and 2013.
you can download it from codeplex - https://featureadmin.codeplex.com/
Tuesday, June 21, 2016 5:07 PM
Hi,
Check the similar thread.
http://get-spscripts.com/2011/06/removing-features-from-content-database.html
KRISHANA KUMAR
SharePoint Architect
Please click "Mark As Answer" if this post solves your problem or "Vote As Helpful" if it was useful
Wednesday, June 22, 2016 8:35 AM
Hello bbatl,
According to your description, you want to remove the missing features.
If above ways cannot work for you, please try the SharePoint manager. A useful tool.
Please download 2010 version:
Here is a link which summarizes the most ways:
http://www.sharepointdiary.com/2011/08/fix-features-missing-issue-in-migration.html
Best Regards,
CY
TechNet Community Support
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected].
Wednesday, June 22, 2016 3:12 PM
I wrote in my original post that the Feature Admin tool did NOT delete the feature.
Wednesday, June 22, 2016 3:41 PM
CY,
I can see this feature with the exclamation mark in Sharepoint Manager 2010 but the "Delete" is grayed out even though I'm logged in with farm administrator permissions.