question

TehreemMujeeb-0675 avatar image
0 Votes"
TehreemMujeeb-0675 asked EmilyDu-MSFT commented

AD Synchronization issue in SharePoint 2013 Issue

We are Facing and AD synchronization issue, user profile are not get synced with AD.
When I trying to open User profile service Application following error occur " Sorry, Something went wrong error" has been occurred. (Snapshot1 is attached)

when i try to start and stop the User Profile services from "Manage services on SERVER", it is get hanged in stopping stage. (Snapshot2 is attached)
but in the manage services application it is showing started but when i try to open it gives error.

i also checked in the windows services and when ever i try to start forefront identity manager services' it is showing error (Snapshot3 is attached
190833-snapshot1.jpg190842-snapshot2.jpg190852-snapshot3.jpg


windows-active-directoryoffice-sharepoint-server-administration
snapshot1.jpg (23.4 KiB)
snapshot2.jpg (19.5 KiB)
snapshot3.jpg (80.9 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

EmilyDu-MSFT avatar image
0 Votes"
EmilyDu-MSFT answered EmilyDu-MSFT commented

@TehreemMujeeb-0675

Please use following steps to stop the User Profile Sync Service.

1.Run below PowerShell in the SharePoint Online Management Shell.

 Get-SPServiceInstance | where {$_.typename -eq "User Profile Synchronization Service"} | select Server, Status, ID | FL​

2.From the output, find out the server with Status as "Unprovisioning". This is the server where the User Profile Sync service is stuck in Stopping stage.​

3.Run below PowerShell in the SharePoint Management Shell to stop the User Profile Sync service.​

 Stop-spserviceinstance -id <GUID for the Synch service>​

4.Wait for few minutes and check the status of the User Profile Sync service again.


If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@TehreemMujeeb-0675

I’m checking how the things are going on about this issue. Whether the answer helps you?

If there is any problem with this issue, feel free to let me know.

0 Votes 0 ·
TehreemMujeeb-0675 avatar image
0 Votes"
TehreemMujeeb-0675 answered EmilyDu-MSFT commented

Hi Concerns,

I was trying to execute the above commands below are the outputs.


==========================================================================
PS C:\Users\spfarm> Get-SPServiceInstance | where {$_.typename -eq "User Profile Synchronization Service"} | select Server, Status, ID | FL


Server : SPServer Name=##########
Status : Provisioning
Id : ca496801-51ab-4f2c-b012-0bd9aca825ef



PS C:\Users\sp####> Stop-spserviceinstance -id ca496801-51ab-4f2c-b012-0bd9aca825ef

Confirm
Are you sure you want to perform this action?
Performing the operation "Stop-SPServiceInstance" on target "ProfileSynchronizationServiceInstance".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"): Y
Stop-spserviceinstance : An object of the type Microsoft.SharePoint.Administration.SPServiceInstanceJobDefinition named "job-service-instance-ca496801-51ab-4f2c-b012-0bd9aca825ef" already exists under the parent Microsoft.SharePoint.Administration.SPTimerService named "SPTimerV4". Rename your object or delete the existing object.
At line:1 char:1
+ Stop-spserviceinstance -id ca496801-51ab-4f2c-b012-0bd9aca825ef
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidData: (Microsoft.Share...ServiceInstance:SPCmdletStopServiceInstance) [Stop-SPServiceInstance], SPDuplicateObjectException
+ FullyQualifiedErrorId : Microsoft.SharePoint.PowerShell.SPCmdletStopServiceInstance

PS C:\Users\spfarm> $Timer = Get-SPTimerJob -Identity "job-service-instance-ca496801-51ab-4f2c-b012-0bd9aca825ef"
PS C:\Users\spfarm> $Timer.Delete()
PS C:\Users\spfarm> Stop-spserviceinstance -id ca496801-51ab-4f2c-b012-0bd9aca825ef

Confirm
Are you sure you want to perform this action?
Performing the operation "Stop-SPServiceInstance" on target "ProfileSynchronizationServiceInstance".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"): Y

TypeName Status Id


User Profile Synchronization ... Unpro... ca496801-51ab-4f2c-b012-0bd9aca825ef


PS C:\Users\spfarm>







· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@TehreemMujeeb-0675

Please run following PowerShell.

 service = Get-SPServiceInstance | where {_.typename -eq "User Profile Synchronization Service"}​
 $service.Unprovision()​
0 Votes 0 ·

@TehreemMujeeb-0675

I am looking forward to your feedback if there is any update.

Please remember to update this thread if you have any progress.

Thank you for your understanding.

0 Votes 0 ·
sadomovalex avatar image
0 Votes"
sadomovalex answered

did you check Sharepoint logs (ULS) and Windows Event log like it suggests? It may contain more details of the error.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.