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

6 comments:

Anonymous said...

Hi ,

I am facing same issue ... I did iisreset and also restarted the server multiple times but i am still getting user partition error and both the services are running

Prasham Sabadra said...

Hello,

Could you please share your exception with detailed stack trace.

Thanks!

Br,
Prasham

Niyaz said...

Hello Prasham

Even I've reboot the machine, reset the timer server and IISreset but still I facing "something went wrong" error with below logs.

[Forced due to logging gap, cached @ 06/24/2015 06:08:48.66, Original Level: VerboseEx] SQL IO Statistics: Procedure {0}, {1} e676139d-ea06-70ab-5f7b-3acc873f4f1f
06/24/2015 06:08:48.68 w3wp.exe (0x277C) 0x1B8C SharePoint Foundation Database fdz2 High [Forced due to logging gap, Original Level: VerboseEx] SQL IO Statistics: Procedure {0}, {1} e676139d-ea06-70ab-5f7b-3acc873f4f1f


06/24/2015 06:08:49.90 w3wp.exe (0x277C) 0x1B8C SharePoint Portal Server User Profiles cm6y High 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 a240e8b5-a618-4a7b-b4a3-a47a1df4b10c 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)

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 a240e8b5-a618-4a7b-b4a3-a47a1df4b10c 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)
The Farm account user have replicating access as well.

Many thanks
Niyaz

Prasham Sabadra said...

Hi Niyaj,

In this case I would say try by deleting the service once and the recreate it. I hope this will help you.

Thanks!

lee woo said...

It is impossible to live without failing at something, unless you live so cautiously that you might as well not have lived at all, in which case you have failed by default. See the link below for more info.


#failed
www.ufgop.org

Used PC Exporter said...

Nice Blog Post !