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.
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
Any more details you can share, strack trace of the error... if possible
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:
hope you can help as I am stuck with a totally inappropriate template.
Bill
Comment author was deleted
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?
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
Hey Bill,
Could you try removing the workflow and adding it again, does that work?
Will do, I'll get back to you with the results.
Bill
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
is working on a reply...