MIM Sync Issue with User Profile and AD

Sajith Gopalakrishnan Hema 1,056 Reputation points
2021-01-25T19:45:25.423+00:00

The user nalkoohiji is removed from the AD. But it still shows in the SharePoint User Profile . The MIM shows the below error.

Export retry FAILED for Entry[ObjectType: user, Anchor: DOMAINNAME_nalkoohiji__753af5b6-1064-4898-b204-50504be1c185]..
Error: System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> The MERGE statement conflicted with the FOREIGN KEY constraint "FK_ADImportFailedItems_DCId". The conflict occurred in database "Profile_DB", table "dbo.ADImportDCMapping", column 'DCId'.
The statement has been terminated.
at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
at Microsoft.IdentityManagement.Connector.Sharepoint.SharePointProfileImportExportService.ProfileImportExportService.UpdateWithProfileChangeData(Int64 importExportId, ProfileChangeData[] profileChangeData)
at Microsoft.IdentityManagement.Connector.Sharepoint.SharepointServiceProvider.UpdateWithProfileChangeData(Int64 importExportId, ProfileChangeData[] profileChangeData)
at Microsoft.IdentityManagement.Connector.Sharepoint.SharepointConnector.PutExportEntries(IList`1 csEntries)

60392-2.png

Microsoft 365 and Office SharePoint Server For business
{count} votes

1 answer

Sort by: Most helpful
  1. Chelsea Wu 6,341 Reputation points Moderator
    2021-01-26T01:29:36.797+00:00

    You can manually delete the user “nalkoohiji” from user profile service application under Manage User Profiles and then perform a full sync in MIM again.

    Here is a post with similar issue for your reference: MIM Server SPMA Agent Error.


    If an Answer is helpful, please click "Accept Answer" and upvote it.
    **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. **


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.