Hi,
I've ran into an issue regarding orphaned items in one of our SharePoint content databases. Health Analyzer reports there are orphaned items in a database called 'WSS_Content_Publiek'.
Executing the following PowerShell command shows the orphaned items:
(Get-SPContentDatabase WSS_Content_Publiek).Repair($false)
Result is 4 orphaned objects of type SecurityScope.
When trying to repair the items with the command below the following error occurs:
(Get-SPContentDatabase WSS_Content_Publiek).Repair($true)
Exception calling "Repair" with "1" argument(s): "Violation of PRIMARY KEY constraint 'Perms_PK'. Cannot insert duplicate key in object 'dbo.Perms'. The duplicate key vals (e54a230c-cb56-4b6e-8c2a-58af8a91ed08, 0x, actueel/nieuwsberichten/Paginas/20120223
- Titel.aspx).
Are there any other ways of removing the orphaned itemd? stsadm -o databaserepair does the same, and results in the same error message.
Regards,
Michel Smit