Partager via


Microsoft Entra Management Agent se bloque pendant l’importation complète ou l’importation delta avec une erreur : System.Collections.Generic.KeyNotFoundException

Cet article fournit une résolution d’un problème dans lequel Microsoft Entra Management Agent cesse de répondre avec l’erreur System.Collections.Generic.KeyNotFoundException.

Version du produit d’origine : Active Directory
Numéro de base de connaissances d’origine : 3096482

Symptômes

Lorsque vous exécutez une importation complète ou une importation delta sur le connecteur Microsoft Entra, l’une des actions suivantes se produit :

  • L’erreur suivante est consignée dans le journal des applications :

    FIMSynchronizationService Event 6801
    The extensible extension returned an unsupported error.
    The stack trace is:
    "System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
    at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
    at System.Collections.ObjectModel.KeyedCollection`2.get_Item(TKey key)
    at Microsoft.Azure.ActiveDirectory.Connector.Connector.GetConnectorSpaceEntryChange(SyncObject syncObject)
    at System.Linq.Enumerable.WhereSelectListIterator`2.MoveNext()
    at System.Collections.Generic.List`1.InsertRange(Int32 index, IEnumerable`1 collection)
    at Microsoft.Azure.ActiveDirectory.Connector.Connector.GetImportEntriesCore()
    at Microsoft.Azure.ActiveDirectory.Connector.Connector.GetImportEntries(GetImportEntriesRunStep getImportEntriesRunStep)
    
  • Vous recevez le message d’erreur suivant :

    DirectorySynchronization Event 109:
    Failure while importing entries from Windows Azure Active Directory. Exception: System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
    at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
    at System.Collections.ObjectModel.KeyedCollection`2.get_Item(TKey key)
    at Microsoft.Azure.ActiveDirectory.Connector.Connector.GetConnectorSpaceEntryChange(SyncObject syncObject)
    at System.Linq.Enumerable.WhereSelectListIterator`2.MoveNext()
    at System.Collections.Generic.List`1.InsertRange(Int32 index, IEnumerable`1 collection)
    at Microsoft.Azure.ActiveDirectory.Connector.Connector.GetImportEntriesCore()
    at Microsoft.Azure.ActiveDirectory.Connector.Connector.GetImportEntries(GetImportEntriesRunStep getImportEntriesRunStep).
    

Résolution

Pour résoudre ce problème, sélectionnez le type d’objet manquant (appareil). Pour ce faire, procédez comme suit :

  1. Ouvrez l’agent de gestion pour le répertoire Microsoft Entra dans la console de synchronisation Forefront Identity Manager (FIM).

  2. Cliquez sur Connecteurs, puis sur Microsoft Entra ID.

  3. Dans le volet Actions , cliquez sur Propriétés.

    Note

    La fenêtre Propriétés apparaît.

  4. Sous Conception du connecteur, cliquez sur Sélectionner des types d’objets.

  5. Dans le volet Sélectionner les types d’objets, recherchez, puis activez la case à cocher de l’appareil.

  6. Cliquez sur OK à trois reprises.

État

Microsoft a confirmé l’existence de ce problème dans les produits Microsoft répertoriés dans la section « Produits concernés ».