I am working on SharePoint server 2013 enterprise , and i run the Health Analyzer, but i got this error "Content databases contain orphans items" :-
Here is the full description of the problem when i click on the above error:-
Title Content databases contain orphaned items. Severity 1 - Error Category Availability Explanation In some situations, a content database that is used by Microsoft SharePoint Foundation may become corrupted. The corrupted database may contain orphaned items. For example, a document may not have a parent document library or a list may not have a parent Microsoft SharePoint Foundation Web site. Consequently, you may be unable to create new items with the same URL as the orphaned items, and space in the content database will be consumed unnecessarily. Remedy Enabling automatic repair for this rule will delete the orphaned items. For more information about this rule, see "http://go.microsoft.com/fwlink/?LinkID=142694". Failing Servers Failing Services SPTimerService (SPTimerV4)
so can anyone advice on how i can fix this error inside the Health Analyzer? Now from my own search on this problem i found that many links suggest to run the following command to check what are the orphans items inside the content database:-
(Get-SPContentDatabase <content database name>).Repair($false)
but not sure if running this command , have any risks ? or it will just display the orphans items without doing any modifications to the content database ?
EDIT based on the replies I received i run the following command :-
PS C:\Windows\system32> (Get-SPContentDatabaseWSS_Content_*******).Repair($false)
and i get the following result
<OrphanedObjects Count="15"> <Orphan Type="RoleAssignments" Count="15" /> </OrphanedObjects>
so not sure what does RoleAssignments means ?