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.
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
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 –
- Right-Click the ‘SharePoint 2013 Management Shell’.
- Select ‘Run as administrator’.
- Enter the ‘Update-SPProfilePhotoStore’ command which should now complete successfully.
If not logged on as the Farm Account –
- Hold ‘shift’ on your keyboard and right-click the SharePoint Management Shell.
- Select ‘Run as different user’ in the options menu.
- In the popup enter the Farm Accounts credentials and click OK.
- Once the SharePoint Management Shell open run the ‘Update-SPProfilePhotoStore’ command to update the SharePoint profile photo’s.
2 thoughts on “SharePoint – Update-SPProfilePhotoStore UserProfileApplicationNotAvailableException Error”
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.
Hi Firdouz, sorry but I can’t say it’s something I’m come across before