AD Synchronization issue in SharePoint 2013 Issue

Tehreem Mujeeb 1 Reputation point
2022-04-07T06:13:51.81+00:00

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

Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
6,075 questions
SharePoint Server Management
SharePoint Server Management
SharePoint Server: A family of Microsoft on-premises document management and storage systems.Management: The act or process of organizing, handling, directing or controlling something.
2,864 questions
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Emily Du-MSFT 43,176 Reputation points Microsoft Vendor
    2022-04-07T09:21:18.747+00:00

    @Tehreem Mujeeb

    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.


  2. Tehreem Mujeeb 1 Reputation point
    2022-04-11T10:12:51.227+00:00

    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>


  3. sadomovalex 3,626 Reputation points
    2022-04-11T14:27:17.707+00:00

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

    0 comments No comments