I had a malfunctioning MySite located at
http://mysite:8080, which I deleted. I created a new web app at
http://portal:8080 successfully, the MySiteHost Site Collection successfully, set up mysite in User Profile Service Application successfully, ran the three MySite timer jobs, and the Incremental Sync timer job as well.
With my admin account I managed to create a mysite and look at my properties. Updating properties in AD, running the increental sync timer job and see the change at my mysite.
I've set the SharePoint User property "Picture" to AD property "thumbnailPhoto" (import only) and uploaded an image to AD (using AD Photo Edit). Running the incremental timer job (again) gives no result in UPSA nor on the mysite. I try to run the following powershell command with user SP_Farm:
Update-SPProfilePhotoStore -MySiteHostLocation http://portal:8080/
which gives the following (odd) exception pointing to the old mysitehost:
Update-SPProfilePhotoStore : The Web application at http://mysite:8080/ could not be found. Verify that you have typed
the URL correctly. If the URL should be serving existing content, the system administrator may need to add a new reques
t URL mapping to the intended application.
At line:1 char:1
+ Update-SPProfilePhotoStore -MySiteHostLocation http://portal:8080/
+ CategoryInfo : InvalidData: (Microsoft.Offic...ofilePhotoStore:SPCmdletUserProfilePhotoStore) [Update-S
+ FullyQualifiedErrorId : Microsoft.Office.Server.UserProfiles.PowerShell.SPCmdletUserProfilePhotoStore
Why does that happen, and how can I reslove this?