Even a cursory google search will return more than a few frustrated admins who have dared to tangle with the User Profile Service within Sharepoint 2010. As luck would have it our instance of Sharepoint 2010 had not been configured quite right and as a result the User Profile Service which had once worked now no longer did.
The feature that we were looking to use was the Organization Browser in Mysites.
When we began looking in Central Admin on the surface everything appeared to be configured correctly. The UPS had been configured to use a service account that had replication rights in Active Directory. The credentials were correct.
However, when we initiated a sync the Forefront Identity Manager Synchronization Service would change it’s status to “starting” and would never start. The Forefront Identity Manager Service would never get started and would remain disabled.
After pouring over the event logs and testing numerous different configurations. We finally ended up calling Microsoft Product Support Services(WiPro). After several days of troubleshooting as a matter of last resort we decided to blow away the UPS databases in Sharepoint and recreate the service from scratch. The reason that this is a last resort is that deleting the databases clears all of the data that is contained in mysites. However, even after we tried this it still didn’t work.
I could go on for quite a bit about all the things we tried. At the end of the day it was about 30 hours of troubleshooting. However, I’ll cut straight to the chase and give you the solution that worked for us here at The RSC Group.
Solution:
1) Download and run Microsoft SharePoint Foundation 2010 (url:- http://support.microsoft.com/hotfix/KBHotfix.aspx?kbln=en-us&kbnum=2475880 )
2) After that Download and run Microsoft SharePoint Server 2010 (url:- http://support.microsoft.com/hotfix/KBHotfix.aspx?kbln=en-us&kbnum=2475878 )
3) After that only once run Products Configuration Wizard (Start -> All Programs -> Microsoft SharePoint 2010 products -> SharePoint 2010 Products Configuration Wizard)
4) restart the server.
5) Recreate the UPA.
6. Un-Provision the Sync service using power shell by following http://technet.microsoft.com/en-us/library/ff681014.aspx
7. then run the command Get-SPServiceInstance
8. copy the id for the User Profile Sync service.
9. then run the command Stop-SPServiceInstance -Id “Id for the User Profile Sync Service”
10. Go to start — run — MMC — file — add/ remove snappin — select certificate — add then select
11. Found My user account | Service Account | Computer Account
12. Except service account added the other two account
13. Clicked Ok.
14. Deleted all the certificated related to FIM from all the folders.
15. Opened regedit — Hkey Local Machine — System — Current Control Set — Services — Fim Service and changed the database name to point to the new sync database.
16. Went to regedit — Hkey Local Machine — System — Current Control Set — Services — and changed the database name to point to the new sync database.
17. Did an IISreset.
18. Stopped SharePoint timer and SharePoint admin service from services.msc
19. Cleared SharePoint Config cache.
20. Ran the below command
stsadm -o execadmsvcjobs
21. Started the SharePoint timer and SharePoint Admin service from services.msc
22. IIsreset
23. After that started the User Profile Synchronization service. (It actually started)
24. Created Synchronization connector.
25. Went in UPA service ->Configure Synchronization connections-> create new
26. After that Start Profile Synchronization -> select Start full Synchronization.