Copied to clipboard

Flag this post as spam?

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


  • Bill Smith 52 posts 222 karma points
    Apr 18, 2013 @ 16:46
    Bill Smith
    0

    Contour error - An item with the same key has already been added.

    When assigning a document type in worflow, this error occurs. This had worked fine before.

    Any solutions?

    Anyone?

  • Comment author was deleted

    Apr 22, 2013 @ 09:47

    Any more details you can share, strack trace of the error... if possible

  • Bill Smith 52 posts 222 karma points
    Apr 22, 2013 @ 15:08
    Bill Smith
    0

    Thanks Tim,

    It worked fine until I amende the doctype to allow a choice of templates which didn't work, so I chabged the template to the original and then I got the error and now it wont let me change the template at all. The error message is:

    An item with the same key has already been added.

    and the stack trace is:


    [ArgumentException: An item with the same key has already been added.]
       System.ThrowHelper.ThrowArgumentException(ExceptionResource resource) +52
       System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add) +9378779
       Umbraco.Forms.Core.Controls.DocumentMapperControl.ƒ() +1013
       Umbraco.Forms.Core.Controls.DocumentMapperControl.‚(Object , EventArgs ) +4
       System.Web.UI.WebControls.ListControl.OnSelectedIndexChanged(EventArgs e) +118
       System.Web.UI.WebControls.DropDownList.RaisePostDataChangedEvent() +143
       System.Web.UI.WebControls.DropDownList.System.Web.UI.IPostBackDataHandler.RaisePostDataChangedEvent() +10
       System.Web.UI.Page.RaiseChangedEvents() +134
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5201

    hope you can help as I am stuck with a totally inappropriate template.

    Bill



  • Comment author was deleted

    Apr 22, 2013 @ 16:12

    So this is happening when you are using the save as umbraco document workflow type, right?

    Is this happening for every document type you choice or only a specific one?

     

  • Bill Smith 52 posts 222 karma points
    Apr 22, 2013 @ 16:40
    Bill Smith
    0

    Yes, exactly that.

    Yes, now it wont let me change document type, it happens with all document types. I am stuck with the site document type.

  • Comment author was deleted

    Apr 23, 2013 @ 09:03

    Hey Bill,

    Could you try removing the workflow and adding it again, does that work?

  • Bill Smith 52 posts 222 karma points
    Apr 23, 2013 @ 20:34
    Bill Smith
    0

    Will do, I'll get back to you with the results.

    Bill

  • Bill Smith 52 posts 222 karma points
    Apr 26, 2013 @ 20:46
    Bill Smith
    0

    Ok Tim, deleting and recreating done the trick, don't know why I didn't do that in the first place!!!

    Thanks for your support.

    Bill

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies