Copied to clipboard

Flag this post as spam?

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


  • zell 37 posts 90 karma points
    Dec 05, 2014 @ 01:34
    zell
    0

    Sorting a Parent Throws - An item with the same key has already been added

    i know the bug was resolved in umbraco 7.  but i'm using umbraco 7.1.8 and some parents in my umbraco tree are throwing the error when right clicking - Sort

    • i've deleted my temp directory and let it rebuild
    • restarted the app pool
    • touched web.config
    but still can't get around it.  any ideas?
    update: i've noticed it's when attempting to sort a parent with child documents that also display this error...
    its not document type related because other child pages of the same doc type are fine.
    i'm also unable to delete these nodes.. so anyone know of a script to nuke this?

     

    An item with the same key has already been added.

    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

    Exception Details: System.ArgumentException: An item with the same key has already been added.

    Source Error: 

    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.


    Stack Trace: 

    [ArgumentException: An item with the same key has already been added.]
       System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add) +1096
       System.Linq.Enumerable.ToDictionary(IEnumerable`1 source, Func`2 keySelector, Func`2 elementSelector, IEqualityComparer`1 comparer) +264
       System.Linq.Enumerable.ToDictionary(IEnumerable`1 source, Func`2 keySelector, Func`2 elementSelector) +90
       Umbraco.Core.Persistence.Repositories.VersionableRepositoryBase`2.GetPropertyCollection(Int32 id, Guid versionId, IContentTypeComposition contentType, DateTime createDate, DateTime updateDate) +4008
       Umbraco.Core.Persistence.Repositories.ContentRepository.CreateContentFromDto(DocumentDto dto, Guid versionId) +494
       Umbraco.Core.Persistence.Repositories.ContentRepository.PerformGet(Int32 id) +736
       Umbraco.Core.Persistence.Repositories.RepositoryBase`2.Get(TId id) +123
       Umbraco.Core.Persistence.Repositories.d__5a.MoveNext() +1164
       System.Linq.WhereEnumerableIterator`1.MoveNext() +148
       System.Linq.Buffer`1..ctor(IEnumerable`1 source) +488
       System.Linq.d__0.MoveNext() +145
       umbraco.cms.presentation.sort.OnPreRender(EventArgs e) +3501
       System.Web.UI.Control.PreRenderRecursiveInternal() +171
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4048
Please Sign in or register to post replies

Write your reply to:

Draft