Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/powershell/11.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Sharepoint 将用户配置文件排入队列时发生数据库错误_Sharepoint_Powershell_Sharepoint 2010_User Profile - Fatal编程技术网

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

我正在尝试使用以下脚本枚举SharePoint环境中的用户配置文件:

$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上的其他地方都没有出现,因此我认为值得在这里询问,即使我解决它对我的解决方案并不重要。

我也有同样的问题。这似乎是间歇性的,因为代码在日常作业中运行,并且有时会失败。