本文提供一個解決Microsoft Entra Management Agent 停止回應錯誤 System.Collections.Generic.KeyNotFoundException 的問題。
原始產品版本: Active Directory
原始 KB 編號: 3096482
徵兆
當您在 Microsoft Entra Connector 上執行完整匯入或差異匯入時,會發生下列其中一個動作:
下列錯誤會記錄在應用程式記錄檔中:
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)您收到下列錯誤訊息:
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).
解決方法
若要解決此問題,請選取遺漏的物件類型(裝置)。 若要這樣做,請遵循下列步驟:
在 Forefront Identity Manager (FIM) 同步控制台中,開啟 Microsoft Entra 目錄的管理代理程式。
按兩下 [ 連接器],然後按兩下 [Microsoft Entra ID]。
按一下 [ 動作 ] 窗格中的 [ 內容]。
注意
[屬性] 視窗隨即開啟。
在 [連接器設計] 底下,按兩下 [選取物件類型]。
在 [ 選取物件類型 ] 窗格中,找出並選取 裝置 複選框。
按 [確定] 三次。
狀態
Microsoft 已確認<適用於>一節所列的 Microsoft 產品確實有上述問題。