Skip to main content

NAV 2013 & Later - An item with the same key has already been added.

Dear All,

During a upgrade process to NAV 2013 R2 from NAV 2009 SP1, i faced an issue which took a lot of time to resolve.

So i thought sharing the same with you all.

When i tired to run a page it crash the NAV 2013 Windows Client exe, I thought that page might have issues but when i run table from developer environment everything same.

The ERROR that i was getting - "An item with the same key has already been added"

Below is the Some part of Error in event viewer -

System.ArgumentException was unhandled
  HResult=-2147024809
  Message=An item with the same key has already been added.
  Source=mscorlib


Findings -
I started finding it on Google and found one of the two relevant article -

Article 1 - From Microsoft Blog specifying that the issue was resolved in NAV 2009 R2 with a Exe Fix.

Article 2 - From Microsoft Dynamics AX Blogger who specified that they have same error when they Run a Report in AX. The Reason they specified that in Report there are two fields in Report with same Name.

Analysis -

I started finding same field name in tables with same name or caption. "NOTHING Found"

Result -
Finally i found that there are multiple keys with same fields.

So if you face any issues look for duplicate keys...

Enjoy...

Regards,
Saurav Dhyani

Comments

Popular posts from this blog

VIEW SERVER STATE permission on SQL Server?

Hi all, Sometime While trying to Login into a database we face an error message as shown below. --------------------------- Microsoft Dynamics NAV Classic --------------------------- You cannot start Microsoft Dynamics NAV Classic because you do not have the VIEW SERVER STATE permission on SQL Server. Contact your system administrator. --------------------------- OK    ---------------------------

NAV 2013 R2 - Cumulative update 12 Released.

Hi all, Please find below the details of  Cumulative Update 12 released for Microsoft Dynamics NAV 2013 R2. Title - Cumulative Update 12 for Microsoft Dynamics NAV 2013 R2 Build No. - 38053 Release Date - October, 2014 Local Version Included - AU, AT, BE, CH, DE, DK, ES, FI, FR, IS, IT, NA, NL, NO, NZ, SE, UK, RU Download Link Note: Implementing this cumulative update will require a database conversion unless you have already implemented update rollup 5.

NAV 2013 Upgrade Part III - Data Upgrading.

Hi all, As per agenda we need to discuss the data upgrade in NAV 2013. The process is similar to what used to be till NAV 2009 R2 but with some changes. Let's start the process. Remember -  1) You can only upgrade a database to NAV 2013 from NAV 2009 SP1 / R2 SQL Only. 2) The Synchronization of users with SQL Server is no more required.