SharePoint – Update-SPProfilePhotoStore UserProfileApplicationNotAvailableException Error

SharePoint’s method for updating user profile pictures can’t exactly be classed as the most straightforward process and I’ve seen a few issues with it over time.

In this article, I will cover the UserProfileApplicationNotAvailableException error and how to resolve it.

The Error

UserProfileApplicationNotAvailable1

When running the “Update-SPProfilePhotoStore” command you encounter the following error –

Update-SPProfilePhotoStore : UserProfileApplicationNotAvailableException_Logging :: UserProfileApplicationProxy.ApplicationProperties ProfilePropertyCache does not have 
At line:1 char:1
+ Update-SPProfilePhotoStore -CreateThumbnailsForImportedPhotos 1 -MySiteHostLocat ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 + CategoryInfo : InvalidData: (Microsoft.Offic...ofilePhotoStore:SPCmdletUserProfilePhotoStore) [Update-SPProfilePhotoStore], UserProfileApplicationNotAvailableException
 + FullyQualifiedErrorId : Microsoft.Office.Server.UserProfiles.PowerShell.SPCmdletUserProfilePhotoStore

 

The Fix

On the SharePoint server ensure you are either –

  • Logged in as the SharePoint Farm Account.
  • Have access to the SharePoint Farm Account.

If you’re logged on as the Farm Account –

  1. Right-Click the ‘SharePoint 2013 Management Shell’.
  2. Select ‘Run as administrator’.
  3. Enter the ‘Update-SPProfilePhotoStore’ command which should now complete successfully.

If not logged on as the Farm Account –

  1. Hold ‘shift’ on your keyboard and right-click the SharePoint Management Shell.
  2. Select ‘Run as different user’ in the options menu.
  3. In the popup enter the Farm Accounts credentials and click OK.
  4. Once the SharePoint Management Shell open run the ‘Update-SPProfilePhotoStore’ command to update the SharePoint profile photo’s.
Advertisement

2 thoughts on “SharePoint – Update-SPProfilePhotoStore UserProfileApplicationNotAvailableException Error

  1. Hi,

    We have two AD connections in userprofile,when i sync the data its populating the data and creating picture entries in My site with GUID.When i run the Updatespsprofilestore command to generate the thumbailphotos its creating the photos but the problem is we have same users with same name in different ADs.For exmple domain1\user1 and domain2\user1.Powershell command not able to recognise which user its updating so its creating one instance of pictures in my site.Any idea about this issue.

    Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.