SharePoint 2010 SP2 Farm 64 bit
Title People search relevance is not optimized when the Active Directory has errors in the manager reporting structure.
Severity 2 - Warning
Category Configuration
Remedy Specify the company leaders explicitly. Use the following PowerShell commands: $upap = Get-SPServiceApplicationPr
oxy [appid]; Add-SPProfileLeader $upap [Domain]\[UserName]. Run 'Get-SPProfileLeader $upap' to check whether the leader was successfully added. As a last step, run a full crawl on the content source containing the start address (URL) of the user profile application. For more information about this rule, see "
http://go.microsoft.com/fwlink/?LinkID=2401800".
Failing Servers
Failing Services UserProfileService
Rule Settings View
Found this
http://sharepoint.stackexchange.com/questions/19233/how-do-i-fix-people-search-relevance-is-not-optimized-when-the-active-directory
http://www.harbar.net/archive/2011/07/06/329.aspx
Ran this
PS C:\> Get-SPProfileLeader -ProfileServiceApplication
Pro
xy $upaProxy
Get-SPProfileLeader : Cannot validate argument on parameter 'ProfileServiceAppl
icationProxy'. The argument is null. Supply a non-null argument and try the com
mand again.
At line:1 char:52
+ Get-SPProfileLeader -ProfileServiceApplication
Proxy <<<< $upaProxy
+ CategoryInfo : InvalidData: (:) [Get-SPProfileLeader], Paramete
rBindingValidationExceptio
n
+ FullyQualifiedErrorId : ParameterArgumentValidatio
nError,Mic
rosoft.Off
ic
e.Server.UserProfiles.Powe
rShell.SPC
mdletGetLe
ader
PS C:\> Add-SPProfileLeader $upap mydom\spserv
Add-SPProfileLeader : Cannot validate argument on parameter 'ProfileServiceAppl
icationProxy'. The argument is null. Supply a non-null argument and try the com
mand again.
At line:1 char:20
+ Add-SPProfileLeader <<<< $upap mydom\spserv
+ CategoryInfo : InvalidData: (:) [Add-SPProfileLeader], Paramete
rBindingValidationExceptio
n
+ FullyQualifiedErrorId : ParameterArgumentValidatio
nError,Mic
rosoft.Off
ic
e.Server.UserProfiles.Powe
rShell.SPC
mdletAddLe
ader
PS C:\>
What am I missing?
Thanks
Tom
Please execute this way
Get-SPServiceApplicationPr
$upaProxy = Get-SPServiceApplicationPr
Get-SPProfileLeader -ProfileServiceApplication
Add-SPProfileLeader -ProfileServiceApplication
Replace the username with the one listed from Step 3. If there is more than 1 users repeat step 4.