locked
User cannot access MySite. Exception: An error was encountered while retrieving the user profile. RRS feed

  • Question

  • Hi

    One of the users of mysite edited his profile and removed an apostrophe from his name. The next time the user tried to log in was not able to access his personal site. Every time the user tried to log in the following error occurred:

    Exception: 

    Unhandled exception caught during execution of Microsoft.SharePoint.Portal.PageBase::ErrorHandler(). Exception information: Exception information: Microsoft.Office.Server.UserProfiles.UserNotFoundException: An error was encountered while retrieving the user profile.     at Microsoft.Office.Server.UserProfiles.UserProfileCache.GetUserData(UserProfileManager objManager, Nullable`1 recordId, Guid gAcct, String strAcct, Byte[] bSid, String strEmail, Boolean doNotResolveToMasterAccount)     at Microsoft.Office.Server.UserProfiles.UserProfile.RetrieveUser(String strAcct, Guid gAcct, Byte[] bSid, Nullable`1 recordId, Boolean doNotResolveToMasterAccount, Boolean loadFullProfile)     at Microsoft.Office.Server.UserProfiles.UserProfile..ctor(UserProfileManager objManager, String strAcct, Boolean doNotResolveToMasterAccount, Boolean forceUserIsSelf, Boolean loadFullProfile)     at Microsoft.Office.Server.UserProfiles.UserProfileManager.GetUserProfile(String strAccountName, Boolean doNotResolveToMasterAccount, Boolean loadFullProfile)     at Microsoft.Office.Server.UserProfiles.UserProfileManager.GetUserProfile(String strAccountName, Boolean doNotResolveToMasterAccount)     at Microsoft.Office.Server.UserProfiles.UserProfileManager.GetUserProfile(String strAccountName)     at TenetPortal.Modules.MySitesMasterPage.etenetmysite.IsUserLoggedInFirstTime()     at TenetPortal.Modules.MySitesMasterPage.etenetmysite.Page_Load(Object sender, EventArgs e)     at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e)     at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)     at System.Web.UI.Control.OnLoad(EventArgs e)     at System.Web.UI.Control.LoadRecursive()     at System.Web.UI.Control.LoadRecursive()     at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) Microsoft.Office.Server.UserProfiles.UserNotFoundException: An error was encountered while retrieving the user profile.     at Microsoft.Office.Server.UserProfiles.UserProfileCache.GetUserData(UserProfileManager objManager, Nullable`1 recordId, Guid gAcct, String strAcct, Byte[] bSid, String strEmail, Boolean doNotResolveToMasterAccount)     at Microsoft.Office.Server.UserProfiles.UserProfile.RetrieveUser(String strAcct, Guid gAcct, Byte[] bSid, Nullable`1 recordId, Boolean doNotResolveToMasterAccount, Boolean loadFullProfile)     at Microsoft.Office.Server.UserProfiles.UserProfile..ctor(UserProfileManager objManager, String strAcct, Boolean doNotResolveToMasterAccount, Boolean forceUserIsSelf, Boolean loadFullProfile)     at Microsoft.Office.Server.UserProfiles.UserProfileManager.GetUserProfile(String strAccountName, Boolean doNotResolveToMasterAccount, Boolean loadFullProfile)     at Microsoft.Office.Server.UserProfiles.UserProfileManager.GetUserProfile(String strAccountName, Boolean doNotResolveToMasterAccount)     at Microsoft.Office.Server.UserProfiles.UserProfileManager.GetUserProfile(String strAccountName)     at TenetPortal.Modules.MySitesMasterPage.etenetmysite.IsUserLoggedInFirstTime()     at TenetPortal.Modules.MySitesMasterPage.etenetmysite.Page_Load(Object sender, EventArgs e)     at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e)     at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)     at System.Web.UI.Control.OnLoad(EventArgs e)     at System.Web.UI.Control.LoadRecursive()     at System.Web.UI.Control.LoadRecursive()     at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

    Also the site for the user at Central Admin -> Application Management -> view all site collection.

    The changes that the user made to his profile were not reflected back to the AD even though the User Profile Sync is active.

    When we checked the user profile on server we found that the personal site field for the user is empty though the user had a personal site.

    The personal site seems to have been deleted from the server. 

    Can someone help me on this issue.

    Thanks

    NK

    Thursday, April 11, 2013 10:33 AM

Answers

All replies

  • $wa = Get-SPSite http://mysite.contoso.com
    $wa.Sites | format-table -autosize

    Is it listed here? Can you restore from backup (Unattached content db restore)


    Hope This Helps!

    Thursday, April 11, 2013 10:56 AM
  • $wa = Get-SPSite http://mysite.contoso.com
    $wa.Sites | format-table -autosize

    Is it listed here? Can you restore from backup (Unattached content db restore)


    Hope This Helps!

    Hi

    Thanks for the quick reply.

    I tried your command but the personal site for the user in not listed.

    Is there any other way to recover the site ?

    If there is no other solution then what should I do to clear all the reference for the old site so that the user can create a new personal site.

    Also I was wrong in the 1st post. Actually the user made a change in the AD and then was not able to access his mysite. Any idea why this is the case even though the Sync is active.

    Thanks

    NK

    Thursday, April 11, 2013 12:25 PM