站点同步期间的事件 ID 5553
症状
在 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.
原因
当 SharePoint 计时器作业“用户配置文件到 SharePoint 完全同步”失败时,会发生此事件。 默认情况下,“用户配置文件到 SharePoint 完全同步”作业每小时运行一次。 此作业失败的最常见原因是用户配置文件服务和内容数据库之间的用户配置文件数据不一致。 删除或错误移动内容数据库时,可能会出现这种不一致。
解决方案
可以使用 stsadm 命令列出有关尚未与用户配置文件服务同步的数据库的信息。
stsadm -o sync -listolddatabases n
stsadm -o sync -deleteolddatabases n
其中,“n”是数据库同步以来经过的天数。
“-listolddatabases”命令列出自“n”天以来未同步的内容数据库,而“deleteolddatabases”命令执行与 listolddatabases 参数相同的操作,只是删除与这些数据库相对应的旧记录。 此操作不会删除数据库本身。 删除同步引用并发生新的配置文件同步后,新引用将存储在数据库中。
必须运行 stsadm shell 作为服务器场帐户,以前的命令才能成功工作。
更多信息
仍然需要帮助? 请转到 SharePoint 社区。
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈