Share via


SharePoint 2013: User profile service unexpected error after restore.

Issue: We had recently restored a SharePoint 2010 farm to a SharePoint 2013 Farm and User profile services gives error while starting it.

Error:  “Error: An unexpected error has occurred.”

https://images-blogger-opensocial.googleusercontent.com/gadgets/proxy?url=http%3A%2F%2F2.bp.blogspot.com%2F-r5hWYilaxfU%2FU-eRpbPKtvI%2FAAAAAAAAHVs%2FMSjxUZZuVOQ%2Fs1600%2FUntitled.png&container=blogger&gadget=a&rewriteMime=image%2F*

Troubleshooting:

Checked that all the user profile service accounts were in place and have correct level pf permissions.

Tried to run the "psconfig -cmd upgrade -inplace b2b -wait" and then checked product and patch installation status in Central Administration.

Tried running the service via PowerShell command line, but no go.

Get-SPServiceInstance
Stop-SPServiceInstance -Identity “service application GUID”

Tried the approach given in the TechNet blog here: 

http://blogs.technet.com/b/saantil/archive/2013/03/31/sp-2013-error-when-upgrading-the-user-profile-service-application.aspx, but no success.

Resolution:

MS has supported this behavior as Know issue and could be resolved by the steps given in the KB http://support.microsoft.com/kb/2752610.

It says that you need to create a new User Profile services and User profile service application proxy by deleting the old one.

It can be performed by the following PS Script:

·         $proxy = Get-SPServiceApplicationProxy | where {$_.typename -eq "User profile service application Proxy"}*

Remove-SPServiceApplicationProxy -Identity $proxy –confirmfalse
**
*This command deletes the current user profile service application proxy.

·         ***$upa = Get-SPServiceApplication | where {$_.name -eq ""}

New-SPProfileServiceApplicationProxy -Name  -Uri $upa.uri.absoluteURI***

This command creates a new user profile service application proxy.

Another article which supports the same behavior is here:

http://ventej.blogspot.co.uk/2012/05/quick-fix-user-profile-service.html

Read at my blog: http://mossnwss.blogspot.co.uk/2014/08/sharepoint-2013-user-profile-service.html

**Applies to:  **

·         SharePoint server 2010

·         SharePoint server 2013