Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Anil Kumar 41 posts 202 karma points
    May 07, 2018 @ 15:05
    Anil Kumar
    0

    An item with the same key has already been added.

    I have created an Umbraco Website of Version 7.10.1 . I am getting the following error on initial page load and works fine on refresh .

    I have also tried to find if any duplicate alias is causing the problem.I was able to run the following query also but it returns null as no duplicates. Please suggest.

    SQL Query

    SELECT cct.[alias], [contentTypeId], cpt.[alias], count(cpt.[Alias]) FROM [cmsPropertyType] cpt JOIN [cmsContentType] cct on cpt.contentTypeId = cct.nodeId GROUP BY cct.[alias], [contentTypeId], cpt.[alias] HAVING COUNT(cpt.[alias]) > 1

    Error Stack trace

    [ArgumentException: An item with the same key has already been added.] System.ThrowHelper.ThrowArgumentException(ExceptionResource resource) +52 System.Collections.Generic.Dictionary2.Insert(TKey key, TValue value, Boolean add) +183 Umbraco.Core.Services.IdkMap.Populate(IEnumerable1 pairs, UmbracoObjectTypes umbracoObjectType) +319 Umbraco.Web.PublishedCache.XmlPublishedCache.PublishedContentCache.EnsureIdkMap(UmbracoContext umbracoContext) +294 Umbraco.Web.PublishedCache.XmlPublishedCache.PublishedContentCache.GetById(UmbracoContext umbracoContext, Boolean preview, Guid nodeKey) +40 Umbraco.Web.PublishedCache.ContextualPublishedContentCache.GetById(Boolean preview, Guid contentKey) +71 Umbraco.Web.PublishedContentQuery.TypedContent(Guid id) +158 Umbraco.Web.PublishedContentQueryExtensions.TypedContent(ITypedPublishedContentQuery contentQuery, Udi id) +96 Umbraco.Web.PropertyEditors.ValueConverters.ContentPickerPropertyConverter.ConvertSourceToObject(PublishedPropertyType propertyType, Object source, Boolean preview) +260 Archetype.Models.ArchetypePropertyModel.TryConvertWithPropertyValueConverters(Object value, IEnumerable1 converters) +318 Archetype.Models.ArchetypePropertyModel.GetValue() +139 Archetype.Models.ArchetypeFieldsetModel.GetValue(String propertyAlias) +84 SoilHealthPartnership.ViewHelpers.NewsCard.Create(UmbracoHelper umbraco, ArchetypeFieldsetModel x) in C:\Projects\SoilHealthPartnership\SoilHealthPartnership\ViewHelpers\NewsCard.cs:29 ASP._Page_Views_Home_cshtml.<Execute>b__1(ArchetypeFieldsetModel x) in c:\Projects\SoilHealthPartnership\SoilHealthPartnership\Views\Home.cshtml:19 System.Linq.WhereSelectEnumerableIterator2.MoveNext() +164 System.Collections.Generic.List1.InsertRange(Int32 index, IEnumerable1 collection) +392 System.Collections.Generic.List1.AddRange(IEnumerable1 collection) +15 ASP.PageViewsHomecshtml.Execute() in c:\Projects\SoilHealthPartnership\SoilHealthPartnership\Views\Home.cshtml:19 System.Web.WebPages.WebPageBase.ExecutePageHierarchy() +197 System.Web.Mvc.WebViewPage.ExecutePageHierarchy() +105 System.Web.WebPages.StartPage.RunPage() +17 System.Web.WebPages.StartPage.ExecutePageHierarchy() +64 System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) +78 System.Web.Mvc.RazorView.RenderView(ViewContext viewContext, TextWriter writer, Object instance) +256 System.Web.Mvc.BuildManagerCompiledView.Render(ViewContext viewContext, TextWriter writer) +107 Umbraco.Core.Profiling.ProfilingView.Render(ViewContext viewContext, TextWriter writer) +113 System.Web.Mvc.ViewResultBase.ExecuteResult(ControllerContext context) +290 System.Web.Mvc.ControllerActionInvoker.InvokeActionResult(ControllerContext controllerContext, ActionResult actionResult) +13 System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult) +56 System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult) +420 System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult) +420 System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult) +420 System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters(ControllerContext controllerContext, IList1 filters, ActionResult actionResult) +52 System.Web.Mvc.Async.<>c__DisplayClass2b.<BeginInvokeAction>b__1c() +173 System.Web.Mvc.Async.<>c__DisplayClass21.<BeginInvokeAction>b__1e(IAsyncResult asyncResult) +100 System.Web.Mvc.Async.WrappedAsyncResult1.CallEndDelegate(IAsyncResult asyncResult) +10 System.Web.Mvc.Async.WrappedAsyncResultBase1.End() +49 System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeAction(IAsyncResult asyncResult) +27 System.Web.Mvc.Controller.<BeginExecuteCore>b__1d(IAsyncResult asyncResult, ExecuteCoreState innerState) +13 System.Web.Mvc.Async.WrappedAsyncVoid1.CallEndDelegate(IAsyncResult asyncResult) +29 System.Web.Mvc.Async.WrappedAsyncResultBase1.End() +49 System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult) +36 System.Web.Mvc.Controller.<BeginExecute>b__15(IAsyncResult asyncResult, Controller controller) +12 System.Web.Mvc.Async.WrappedAsyncVoid1.CallEndDelegate(IAsyncResult asyncResult) +22 System.Web.Mvc.Async.WrappedAsyncResultBase1.End() +49 System.Web.Mvc.Controller.EndExecute(IAsyncResult asyncResult) +26 System.Web.Mvc.Controller.System.Web.Mvc.Async.IAsyncController.EndExecute(IAsyncResult asyncResult) +10 System.Web.Mvc.MvcHandler.<BeginProcessRequest>b__5(IAsyncResult asyncResult, ProcessRequestState innerState) +21 System.Web.Mvc.Async.WrappedAsyncVoid1.CallEndDelegate(IAsyncResult asyncResult) +29 System.Web.Mvc.Async.WrappedAsyncResultBase`1.End() +49 System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult) +28 System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.EndProcessRequest(IAsyncResult result) +9 System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +9748665 System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +48 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +159

  • Kevin Jump 2342 posts 14889 karma points MVP 8x c-trib
    May 08, 2018 @ 08:36
    Kevin Jump
    100

    Hi there was an issue with an eailer umbraco 7.10. release -

    http://issues.umbraco.org/issue/U4-11208

    but this has been fixed in Umbraco 7.10.4 - so upgrading to the latest version might fix this .

    K

  • Anil Kumar 41 posts 202 karma points
    May 08, 2018 @ 15:48
    Anil Kumar
    0

    Thank you Kevin for quick response .

    I will try to update it and will check it resolves my issue.

  • Anil Kumar 41 posts 202 karma points
    May 08, 2018 @ 18:08
    Anil Kumar
    0

    Awesome ! It worked for me ...Thanks Kevin..

Please Sign in or register to post replies

Write your reply to:

Draft