Choose your path Increase your proficiency with the Dynamics 365 applications that you already use and learn more about the apps that interest you. Up your game with a learning path tailored to today's Dynamics 365 masterminds and designed to prepare you for industry-recognized Microsoft certifications.
Visit Microsoft Learn
2020 release wave 1Discover the latest updates and new features to Dynamics 365 planned through September 2020
Release overview guides and videos Release Plan | Preview 2020 Release Wave 1 TimelineWatch the 2020 Release Wave 1 virtual launch event
Ace your Dynamics 365 deployment with packaged services delivered by expert consultants. | Explore service offerings
Connect with the ISV success team on the latest roadmap, developer tool for AppSource certification, and ISV community engagements | ISV self-service portal
The FastTrack program is designed to help you accelerate your Dynamics 365 deployment with confidence.
FastTrack Program | Finance TechTalks | Customer Engagement TechTalks | Upcoming TechTalks
I have been facing this issue "Argument Exception - An item with the same key has already been added" during integration process in management reporter CU16 version from AX 2012 R3. I have mentioned the detailed log file below:
VERBOSE TID:TP-10 [2019-07-01T16:15:13.2540305+04:00]: [AX 2012 Dimension Combinations to Dimension Combination] with MapId [1e81959a-e167-490a-9b43-d0ded3d5a4b4] is searching for READ keys using 07/01/2019 12:14:00 as last change.VERBOSE TID:TP-5 [2019-07-01T16:15:13.4415035+04:00]: [AX 2012 Accounts to Account] with MapId [acc589bf-6978-4451-b476-1c428473d860] is searching for DELETE keys using 01/01/1900 00:00:00 as last change.VERBOSE TID:TP-5 [2019-07-01T16:15:13.4415035+04:00]: [AX 2012 Accounts to Account] DELETE returned no records to process.VERBOSE TID:TP-5 [2019-07-01T16:15:13.4415035+04:00]: [AX 2012 Accounts to Account] with MapId [acc589bf-6978-4451-b476-1c428473d860] is searching for READ keys using 01/01/1900 00:00:00 as last change.ERROR TID:TP-5 [2019-07-01T16:15:13.6133716+04:00]: An item with the same key has already been added. --- Exception Dump --- Caught Exception: [System.ArgumentException] An item with the same key has already been added. Stack trace: at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource) at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add) at Microsoft.Dynamics.Integration.Adapters.AX2012GL.AccountObjectProvider.CreateWorkerDictionary(AX2012GLAdapter adapter) at Microsoft.Dynamics.Integration.Adapters.AX2012GL.AccountObjectProvider.ReadObjectKeys(DateTime modifiedDate) at Microsoft.Dynamics.Integration.AdapterAbstractionLayer.ReaderObjectProviderProxy.ReadObjectKeys(DateTime modifiedDate) at Microsoft.Dynamics.Integration.Service.Tasks.MapWork.ReadObjectKeyList(String mapName, DbMap map, DateTime queryDate, Nullable`1& count, EventHandler onDone) at Microsoft.Dynamics.Integration.Service.Tasks.MapWork.GetObjectKeys(String mapName, DbMap map, OperationType operationType, DateTime queryDate, Nullable`1& count, EventHandler onDone) at Microsoft.Dynamics.Integration.Service.Tasks.MapWork.ProcessRecordsImplementation(OperationType operationType)
07/01/2019 12:15:13: task acc589bf-6978-4451-b476-1c428473d860 is Faulted07/01/2019 12:15:13: task 1e81959a-e167-490a-9b43-d0ded3d5a4b4 is RanToCompletionVERBOSE TID:TP-10 [2019-07-01T16:15:13.9258888+04:00]: Completed: 0 recor04:29 PM 01/07/2019d(s) have been written. 0 record(s) have been deleted. 0 record(s) have failed. 0 record(s) were filtered. Total runtime was 11 seconds.VERBOSE TID:TP-11 [2019-07-01T16:15:14.7696496+04:00]: [AX 2012 Dimension Values to Dimension Value] with MapId [6e1e0edb-6728-4d2c-b837-bb0007cd6ec0] is searching for DELETE keys using 07/01/2019 12:10:01 as last change.VERBOSE TID:TP-11 [2019-07-01T16:15:14.7852736+04:00]: [AX 2012 Dimension Values to Dimension Value] DELETE returned no records to process.
I would appreciate your thoughts to help me rectify this issue.
Have you already tried resetting the data mart?
Yes I have tried resetting, rebuilding data mart and created new MR finally , but the error still exists.
In this case try to reach out to the MS support for some additional help.
Thank you for your reply. I will try to reach out to MS support. But just to give you some more insight on this issue. I am not facing this issue in my sand box environment, but only in production. The difference between these two environments are that the sand box has old data copy and not in sync with production. Could you be able to guide me is this related to any data issue, as in the data mart integration I see this error for Accounts to account -> An item with same key has already been added.
I have seen issues when somebody created an account and renamed it. Then there might be issues with the MR. You can also have a look at LCS for hotfixes. Yet, since you run the latest version, I would expect that those issues are fixed but please double check on LCS.
I finally managed to resolve this issue. I would like to post the resolution here as it would be helpful for others or for future reference. We used SQL Server profiler to identify the transactions executing during integration process. We found some details during integration were fetched using "HcmWorkerDetailsView" in AX 2012, which had a duplicate record for an employee(worker). We removed the duplicate record and the issue got resolved.
Business Applications communities