An item with the same key has already been added Upgrade Error Umbraco 8 to Umbraco 9

Hi I need som help where I should starts looking
I’m trying to upgrade the Umbraco 8 to Umbraco 9.5.2 and I got this error when I’m trying to upgrade the DB
Can someone please advice me where to find this Item ***An item with the same key has already been added. ***
/Many Thanks Christina

System.ArgumentException: An item with the same key has already been added. Key: settings at System.Collections.Generic.Dictionary2.TryInsert(TKey key, TValue value, InsertionBehavior behavior) at System.Collections.ObjectModel.KeyedCollection2.AddKey(TKey key, TItem item) at System.Collections.ObjectModel.KeyedCollection2.InsertItem(Int32 index, TItem item) at Umbraco.Cms.Core.Models.PropertyGroupCollection.InsertItem(Int32 index, PropertyGroup item) at Umbraco.Cms.Core.Models.PropertyGroupCollection.Add(PropertyGroup item) at Umbraco.Cms.Infrastructure.Persistence.Repositories.Implement.ContentTypeCommonRepository.MapGroupsAndProperties(IDictionary2 contentTypes) at Umbraco.Cms.Infrastructure.Persistence.Repositories.Implement.ContentTypeCommonRepository.GetAllTypesInternal() at Umbraco.Extensions.AppCacheExtensions.<>c__DisplayClass0_0`1.b__0() at


This is a companion discussion topic for the original entry at https://our.umbraco.com/forum/109281-an-item-with-the-same-key-has-already-been-added-upgrade-error-umbraco-8-to-umbraco-9

Got a simular error on upgrade from Umbraco 17 to 17.2. Seems like a property with the same [id] and [languageId] for some reason is listed to times in [umbracoPropertyData] table. The fix was to find the duplicate like this: “SELECT * FROM umbracoPropertyData WHERE varcharValue LIKE ‘value from the error message’” And then just delete the duplicates :slight_smile: