Tuesday, 30 July 2013

Common exceptions while configuring the User Profile Service Application in SharePoint 2013

Hello All,

Small sharing regarding exceptions which got while configuring the User Profile Service Application for SharePoint 2013


I was preparing the SP 2013 environment. I am done with installation and central administration configuration. Next I started with the User Profile Service Application; I have created new User Profile Service Application.  When I am going to access the User Profile getting a following exception:

User Profile Application Proxy failed to retrieve partitions from User Profile Application: Microsoft.Office.Server.UserProfiles.UserProfileApplicationNotAvailableException: UserProfileApplicationNotAvailableException_Logging :: UserProfileApplicationProxy.ApplicationProperties ProfilePropertyCache does not have bfc81ba0-789c-4972-bed6-cd7a3e60457b     at Microsoft.Office.Server.Administration.UserProfileApplicationProxy.get_ApplicationProperties()     at Microsoft.Office.Server.Administration.UserProfileApplicationProxy.get_PartitionIDs()     at Microsoft.Office.Server.Administration.UserProfileApplicationProxy.IsAvailable(SPServiceContext serviceContext)

After doing some research I found that following services are stopped (_admin/Server.aspx).

User Profile Service
User Profile Synchronization Service

So I started these services and tried to access User Profile Service Application again but no luck. But then I did IISRESET and access the User Profile Service Application and it worked like a charm J

But then next I noticed that User Profile Synchronization Service is in “Starting” mode for some time and then stopped. I went through the SP logs and found following exceptions

OWSTIMER.EXE (0x25CC)                       0x004C          SharePoint Foundation                Topology                                  8xqz   Medium        Updating SPPersistedObject UserProfileApplication Name=User Profile Service Application. Version: 13333 Ensure: False, HashCode: 5871419, Id: 1969f112-342f-4845-bacd-1c5b7be0913e, Stack:    at Microsoft.Office.Server.Administration.UserProfileApplication.Update()     at Microsoft.Office.Server.Administration.UserProfileApplication.ResetILMFlags()     at Microsoft.Office.Server.Administration.ProfileSynchronizationSetupJob.Execute(SPJobState state)     at Microsoft.SharePoint.Administration.SPTimerJobInvokeInternal.Invoke(SPJobDefinition jd, Guid targetInstanceId, Boolean isTimerService, Int32& result)     at Microsoft.SharePoint.Administration.SPTimerJobInvoke.Invoke(TimerJobExecuteData& data, Int32& result)    
   
OWSTIMER.EXE (0x25CC)                       0x004C          SharePoint Foundation                Topology                                  75bd  High               UpdatedConcurrencyException: The object UserProfileApplication Name=User Profile Service Application was updated by another user.  Determine if these changes will conflict, resolve any differences, and reapply the second change.  This error may also indicate a programming error caused by obtaining two copies of the same object in a single thread. Previous update information: User: <User Name> Process:OWSTIMER (9676) Machine:<Machine Name>  Current update information: User: <User Name> Process:OWSTIMER (9676) Machine:<Machine Name>
OWSTIMER.EXE (0x25CC)                       0x004C          SharePoint Foundation                Topology                                  8xqz   Medium        Updating SPPersistedObject UserProfileApplication Name=User Profile Service Application. Version: 13343 Ensure: False, HashCode: 63289421, Id: 1969f112-342f-4845-bacd-1c5b7be0913e, Stack:    at Microsoft.Office.Server.Administration.UserProfileApplication.Update()     at Microsoft.Office.Server.Administration.UserProfileApplication.ResetILMFlags()     at Microsoft.Office.Server.Administration.ProfileSynchronizationSetupJob.Execute(SPJobState state)     at Microsoft.SharePoint.Administration.SPTimerJobInvokeInternal.Invoke(SPJobDefinition jd, Guid targetInstanceId, Boolean isTimerService, Int32& result)     at Microsoft.SharePoint.Administration.SPTimerJobInvoke.Invoke(TimerJobExecuteData& data, Int32& result)         3bca319c-c15d-f09a-9557-4865fa31fa48

OWSTIMER.EXE (0x25CC)                       0x004C          SharePoint Foundation              Topology                              8xqz   Medium        Updating SPPersistedObject ProfileSynchronizationSetupJob Name=ProfileSynchronizationSetupJob. Version: 13329 Ensure: False, HashCode: 13815511, Id: c7317b26-6311-46fa-97f2-50e3c2a376a1, Stack:    at Microsoft.SharePoint.Administration.SPJobDefinition.Update()     at Microsoft.Office.Server.Administration.ProfileSynchronizationSetupJob.Execute(SPJobState state)     at Microsoft.SharePoint.Administration.SPTimerJobInvokeInternal.Invoke(SPJobDefinition jd, Guid targetInstanceId, Boolean isTimerService, Int32& result)     at Microsoft.SharePoint.Administration.SPTimerJobInvoke.Invoke(TimerJobExecuteData& data, Int32& result)         3bca319c-c15d-f09a-9557-4865fa31fa48

For the above exception we need to reset the timer service. So I reset the timer service and User Profile Synchronization Service started

So here my intention is just to share the kind of exception could come if those services are stopped and then IISRESET is must.

Thanks!

Enjoy reading J

Feel free to comment / feedback if any or if you have any query J