ILM: Microsoft.MetadirectoryServices.ObjectAlreadyExistsException: An object with DN already exists in management agent. ERROR.


  • Hi Gents,

    I have an issue trying to synchronize a user form A active directory to B active directory. User is never synchronized and ILM returns with the following error message:

    Microsoft.MetadirectoryServices.ObjectAlreadyExistsException: An object with DN "CN=User One,OU=users,DC=xyz,DC=net" already exists in management agent "adma_ADB_domain".
       at Microsoft.MetadirectoryServices.Impl.CSEntryImpl.CommitNewConnector()
       at Mms_Metaverse.MVExtensionObject.Provision(MVEntry mventry)

    error type: extension-dll-exception.

    It looks like something is stack in there and the agent will not import user account. Has someone come accross this before? How to resolve?

    Wednesday, February 08, 2012 4:12 PM

All replies

  • This would be thrown in your provisioning code.  Post it if you'd like those of us in the forum to help find the problem.

    Make sure that you are handling the case that there already is a connector, especially since the way ILM operates you have to be ready for the instance where the provisioning code is called multiple times within the same synchronization.  Typically what is done is a Select Case on the number of connectors.  Case 0 you commit a new connector, Case 1 you handle any renaming (moving) of the AD object, and Case Else might throw an error if multiple connectors for one MV object to the same MA is invalid in your design.


    Wednesday, February 08, 2012 7:29 PM