Sharepoint 将用户配置文件排入队列时发生数据库错误
我正在尝试使用以下脚本枚举SharePoint环境中的用户配置文件:Sharepoint 将用户配置文件排入队列时发生数据库错误,sharepoint,powershell,sharepoint-2010,user-profile,Sharepoint,Powershell,Sharepoint 2010,User Profile,我正在尝试使用以下脚本枚举SharePoint环境中的用户配置文件: $sc = [microsoft.sharepoint.spservicecontext]::getcontext((get-spsite $url)) $upm = new-object microsoft.office.server.userprofiles.userprofilemanager($sc) $upm.getenumerator() 但在执行该操作时,我得到以下错误: An error occurred w
$sc = [microsoft.sharepoint.spservicecontext]::getcontext((get-spsite $url))
$upm = new-object microsoft.office.server.userprofiles.userprofilemanager($sc)
$upm.getenumerator()
但在执行该操作时,我得到以下错误:
An error occurred while enumerating through a collection: Database error while queueing user profiles..
其他一些有用的信息:
$upm.count = 0
$sc.sitesubscriptionid = all zeroes
用户配置文件枚举器应返回数百个用户配置文件。
是的,我是用户配置文件服务的管理员,是的,我在网站集上有网站集管理员,用于获取服务上下文
这个错误消息在internet上的其他地方都没有出现,因此我认为值得在这里询问,即使我解决它对我的解决方案并不重要。我也有同样的问题。这似乎是间歇性的,因为代码在日常作业中运行,并且有时会失败。