Opomba
Dostop do te strani zahteva pooblastilo. Poskusite se vpisati alispremeniti imenike.
Dostop do te strani zahteva pooblastilo. Poskusite lahko spremeniti imenike.
Symptoms
You notice the following event in the Application event log on SharePoint Server:
Log Name: Application
Source: Microsoft-SharePoint Products-SharePoint Portal Server
Date: <Todays Date>
Event ID: 5553
Task Category: User Profiles
Level: Error
Keywords:
User: <User>
Computer: <SharePoint Server Name>
Description:
failure trying to synch site <Site GUID> for ContentDB <Content Database GUID> WebApp <Web Application GUID>. Exception message was Cannot insert duplicate key row in object 'dbo.UserMemberships' with unique index 'CX_UserMemberships_RecordId_MemberGroupId_SID'.
The statement has been terminated.
Cause
This event occurs when the SharePoint Timer Job "User Profile to SharePoint Full Synchronization" fails. The "User Profile to SharePoint Full Synchronization" job runs every hour by default. The most common reason for this job to fail is inconsistent user profile data between the user profile service, and the content database. This inconsistency can occur when content databases are deleted or incorrectly moved.
Resolution
You can use stsadm command to list information about the databases that aren't synchronized with the user profile service.
stsadm -o sync -listolddatabases n
stsadm -o sync -deleteolddatabases n
Here 'n' is the number of days that have passed since the databases have been synchronized.
The -listolddatabases
command lists the content databases that weren't synchronized since 'n' days while the 'deleteolddatabases' command performs the same operation as the listolddatabases parameter, except it deletes old records corresponding to these databases. It doesn't delete the databases themselves. Once the synchronization references are deleted and a new profile synchronization occurs, new references are stored in the database.
You must run the stsadm shell as the farm account for the previous commands to work successfully.
More Information
Still need help? Go to SharePoint Community.