0

Hi,

I decided to move our existing mysites host to a separate web application but I can’t get the profile photos to show.

To start with, I started by following the steps in this linkĀ Here

1) I created a new webapplication with new contentDB “MySite_DB” and created a top level site http://mysite and also amended the ā€œUser Profile Service Application>my site settingsā€ to point to http://mysite:80 and location to personal.

2) I removed the contentDB “MySite_DB” from the new webapp and attached to the old webapp

3) Using stsadm, I exported a list of all my sites to an XML file and then using ā€œā€stsadm -o mergecontentdbs -url http://sharepoint -sourcedatabasename wss_content -destinationdatabasename MySite_DB –filename C:MySites.xml -operation 3ā€ā€ Ā moved all the sites to the new contentDB “MySite_DB”.

Original url for mysites was http://sharepoint/my/personal/user_profile and new url is http://mysite/personal/user_profile

4) I removed the contentDB “MySite_DB” from the old webapp and attached to the new webapp again. The problem here was that the new url was http://mysite/MY/personal/user_profile and it should have been http://mysite/personal/user_profile.

5) I then used backup and restore powershell cmdlets to amend the paths.

Backup-SPSite http://mysite/my/personal/user_profile -Path C:\Temp\mysites\user_profile.bak

Restore-SPSite http://mysite/personal/user_profile -Path C:\Temp\mysites\user_profile.bak

Remove-SPSite -Identity “http://mysite/my/personal/user_profile

Ā I have tried the following options so far and still can’t get the photos to show.

  • Reboot the server,
  • run full profile sync several times.
  • Reset the index and run a full crawl.

$webApp = Get-SpWebApplication http://mysite
$webapp.GrantAccessToProcessIdentity(“User_account”)

  • Update-SPProfilePhotoStore –MySiteHostLocation ā€œhttp://mysite/ā€ -OldBaseUri “http://sharepoint/my/User Photos/Profile Pictures/” -NewBaseUri “http://mysite/User Photos/Profile Pictures/” (error message output below)Update-SPProfilePhotoStore : Error processing the photo URL http://mysite:80/User Photos/Profile Pictures/cam_MThumb.jpg for user ADDER\Cam: The file http://mysite:80/User Photos/Profile
    Pictures/cam_MThumb.jpg does not exist.
    At line:1 char:1
    + Update-SPProfilePhotoStore –MySiteHostLocation ā€œhttp://mysite/ā€ -OldBaseUri “htt …
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : WriteError: (:) [Update-SPProfilePhotoStore], FileNotFoundException
    + FullyQualifiedErrorId : Microsoft.Office.Server.UserProfiles.PowerShell.SPCmdletUserProfilePhotoStore
  • Update-SPProfilePhotoStore -CreateThumbnailsForImportedPhotos 1 -MySiteHostLocation http://mysite

I now get an x instead of the photo as shown on the image attached.

(Visited 148 times, 1 visits today)
Add a Comment