Question

I am trying to get rid of the health error [MissingSetupFile].
I followed some guide to get (querying the contentDB) the Id of the file (and of the Site and Web).

The issue is that the file does not exist anymore on SharePoint but it is still referenced in the ContentDB (AllDocs table).

To get the file I used:

$file=web.GetFile([Guid]"itemid")

and to check if exists:

$file.Exists #return true!

I checked also in the document library (not programmatically) and it does not exist.

Can I simply delete the record from the table AllDocs in the contentDB?

Was it helpful?

Solution

I solved cleaning the recycle bin for the site collection. (the files are still stored in the contentDB until the recycle been is empty).

(Get-SPSite http://mySite).RecycleBin.DeleteAll()
Licensed under: CC-BY-SA with attribution
Not affiliated with sharepoint.stackexchange
scroll top