question

ArkadiuszNowak-0798 avatar image
0 Votes"
ArkadiuszNowak-0798 asked KoenVorsselmans-0117 answered

Missing server side dependencies - not missing?

Hi,
On SharePoint 2013 Health Analyzer I'm getting missing server side dependencies.
[MissingFeature] Database [WSS_Content_XXX] has reference(s) to a missing feature: Name = [XXX.WebParts], Id = [XXX], Description = [], Install Location = [XXXWebParts]. Feature (Name = [XXX.WebParts], Id = [XXX], Description = [], Install Location = [XXX WebParts]) is referenced in database [WSS_Content_XXX], but isn't installed on the current farm. The missing feature might cause upgrade to fail. If necessary, please install any solution that contains the feature and restart upgrade.

[MissingSetupFile] File [Features\XXX WebParts\Banners\Banners.webpart] is referenced [1] times in the database [WSS_Content_XXX], but is not installed on the current farm. Please install any feature/solution which contains this file. One or more setup files are referenced in the database [WSS_Content_XXX], but are not installed on the current farm. Please install any feature or solution which contains these files.

Features and setup files are strange because files are there (like weparts) also features are activated and all working fine.

What could be a reason for that false positive in my opinion?

office-sharepoint-server-administration
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

AllenXu-MSFT avatar image
0 Votes"
AllenXu-MSFT answered

Hi @ArkadiuszNowak-0798 ,

Did you install any CU on your SharePoint farm or migrate between content databases recently? In some case, you may get “Missing Server Side Dependencies” error because there are some features still had refrences in the migrated content database but these references are not activated or installed in the current farm. To solve this kind of errors, you can easily use SharePoint Feature Administration and Clean Up Tool to remove all features reference that was not installed in the current farm by following the mentioned steps below:

  • Download SharePoint Feature Administration and Clean Up Tool.

  • Open this tool and reload the web apps > Click on Find Faulty Feature in farm.

  • The following message box informs that the feature with the same id has been found and should be removed from the farm.
    118947-image.png

  • Click Yes, till remove all faulty featuresin the farm.

  • In case of removing all faulty features in the farm, you should get this message.
    118971-image.png

  • Go back to health analyzer > click on Missing server side dependencies > from the ribbon click on Reanalyze now. Wait for moment then refresh the page, the [MissingFeature] error should be now disappeared.

============================================================================================================

To "Missing Setup File Server Side Dependencies" error, you have to remove its references from the database. Here are the steps:

  • Open SQL Server Management Studio.

  • By using the content database run this query.

     USE [your content database]
     SELECT id,SiteId,WebId FROM AllDocs
     WHERE SetupPath LIKE '%solution name%'
    

![118917-image.png][5]

  • Run SharePoint Management shell as administrator.

  • Use (ID, SiteID,WebID) from previous query to run the following cmdlet one by one.

     $site = Get-SPSite -Limit all | where { $_.Id -eq "Your Site ID" }
     $web = $site | Get-SPWeb -Limit all | where { $_.Id -eq "Your Web ID" }
     $file = $web.GetFile([Guid]"Your File ID")
     $file.Delete()
    

118840-image.png

  • Again Go back to health analyzer > click on Missing server side dependencies > from the ribbon click on Reanalyze now. Wait for a while and refresh the page, the [MissingSetupFile] error should be now disappeared.


If an Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


image.png (12.8 KiB)
image.png (3.1 KiB)
image.png (14.0 KiB)
image.png (20.9 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

KoenVorsselmans-0117 avatar image
0 Votes"
KoenVorsselmans-0117 answered

Hello AllenXu,

As Arkadiusz has logged the problem for us I want to specify the problem more in detail. The problem is that health analyzer in central admin gives us some false alarms. there are al lot of false missing side dependencies. The solution that contains the feature is installed in the current farm. The feature is active in the site collection and webpartw that are part of the feature is active on pages in the site collection. There is no need to remove the reference from the database. So why is health analyzer giving this false missing side dependencies and who can we get rid off them?

I hope the problem is a bit more clear with my explanation.

Kind Regards
Koen Vorsselmans

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.