Copied to clipboard

Flag this post as spam?

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

  • Brett Hadley 16 posts 36 karma points
    Jan 03, 2014 @ 12:37
    Brett Hadley

    [Error] An item with the same key has already been added. I'm not sure what's happened..

    Hello everyone,

    Just doing routine content updates and some macro started to error. I bring up ?umbDebugShowTrace=true and I'm getting this. (Full error in the link to pastebin)

    Error Loading Razor Script (file: Royal Slider) An item with the same key has already been added. 
    Server stack trace: 
      at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
      at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
      at System.Collections.Generic.Dictionary`2.Add(TKey key, TValue value)
      at Examine.LuceneEngine.SearchResults.CreateSearchResult(Document doc, Single score)
      at Examine.LuceneEngine.SearchResults.CreateFromDocumentItem(Int32 i)
      at Examine.LuceneEngine.SearchResults.<Skip>d__1.MoveNext()
      at System.Linq.Enumerable.Any[TSource](IEnumerable`1 source)
      at umbraco.MacroEngines.ExamineBackedMedia.GetChildrenMedia(Int32 parentId)
      at umbraco.MacroEngines.ExamineBackedMedia.<get_ChildrenAsList>b__8()
      at System.Lazy`1.CreateValue()

    I've never seen this before, any ideas on what's happened?

  • Brett Hadley 16 posts 36 karma points
    Jan 03, 2014 @ 12:45
    Brett Hadley

    Okay I've fixed it, panic over. I simply deleted the examine index temp files. Some how I guess a clash occured?

  • Bjørn Fridal 274 posts 784 karma points
    May 04, 2015 @ 10:37
    Bjørn Fridal


    Just had the same problem. Tried to show images from a media folder. After trying a lot of options, including deleting the Examine index, I finally tried to save the media folder again (not the files, but the folder I had uploaded them to). That fixed the problem.


Please Sign in or register to post replies

Write your reply to: