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
    Jan 12, 2015 @ 05:48
    zell
    0

    An item with the same key has already been added.

    hey,

    i'm not sure what has happened during the last couple of hours but suddenly my home node and its level below have become corrupt - when i click on them in the CMS i get the following:

    - Home (error)
    -- Landing Page (error)

    --- Generic Page (working)
    -- Second Landing Page (error)
    --- Generic Page (working)
    -- Generic Page (error)

    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. 
    Stack Trace: 
    at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
       at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
       at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable`1 source, Func`2 keySelector, Func`2 elementSelector, IEqualityComparer`1 comparer)
       at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable`1 source, Func`2 keySelector, Func`2 elementSelector)
       at Umbraco.Core.Persistence.Repositories.VersionableRepositoryBase`2.GetPropertyCollection(Int32 id, Guid versionId, IContentTypeComposition contentType, DateTime createDate, DateTime updateDate)
       at Umbraco.Core.Persistence.Repositories.ContentRepository.CreateContentFromDto(DocumentDto dto, Guid versionId)
       at Umbraco.Core.Persistence.Repositories.ContentRepository.PerformGet(Int32 id)
       at Umbraco.Core.Persistence.Repositories.RepositoryBase`2.Get(TId id)
       at Umbraco.Core.Services.ContentService.GetById(Int32 id)
       at Umbraco.Web.Editors.ContentController.CheckPermissions(IDictionary`2 storage, IUser user, IUserService userService, IContentService contentService, Int32 nodeId, Char[] permissionsToCheck, IContent contentItem)
       at Umbraco.Web.WebApi.Filters.EnsureUserPermissionForContentAttribute.OnActionExecuting(HttpActionContext actionContext)
       at System.Web.Http.Filters.ActionFilterAttribute.System.Web.Http.Filters.IActionFilter.ExecuteActionFilterAsync(HttpActionContext actionContext, CancellationToken cancellationToken, Func`1 continuation)

    any ideas?
    this has happened before and i just deleted everything but now.. its abit late to delete all my tree structure.

    there is no consistency between document type and then error. its more down to the doc level.

    thanks!

    umbraco 7.1.8

     

  • Jan Skovgaard 11280 posts 23678 karma points MVP 10x admin c-trib
    Jan 12, 2015 @ 06:07
    Jan Skovgaard
    0

    Hi Zell

    What changes was made when this started to happen? Have you added new properties to the landingpage documents for instance? And do one of these contain duplicate alias names?

    /Jan

  • zell 37 posts 90 karma points
    Jan 12, 2015 @ 06:11
    zell
    0

    nope - i have the same document types 1 level lower and they work.
    so generic page and landing page both work 1 level deeper than my diagram. 
    i just realised i installed CMSimport - possibly corrupted those nodes?

  • Jan Skovgaard 11280 posts 23678 karma points MVP 10x admin c-trib
    Jan 12, 2015 @ 08:29
    Jan Skovgaard
    0

    Hi Zell

    Hmm, it would be weird if installing CMSimport would corrupt the nodes...but it might be worth trying to uninstall it and see if that makes those nodes work again?

    /Jan

  • zell 37 posts 90 karma points
    Jan 13, 2015 @ 02:17
    zell
    0

    @jan - tried. no joy.  :(

Please Sign in or register to post replies

Write your reply to:

Draft