Developer forum

Forum » Ecommerce - Standard features » Error copying/modifying website

Error copying/modifying website

Espen Strømsnes
Reply

I am unable to create a new site by copying the standard site.

When I try to copy the Standard site the following error occurs: "Error happened while executing operation! Area was not copied".

 

As a side-note, I can create a new site, but when I try to change something and click "Save and close" the following error occurs: "An item with the same key has already been added".

The same exception occurs even if I try to edit the standard site.

 

Here's the stack trace:

[ArgumentException: An item with the same key has already been added.]
   System.ThrowHelper.ThrowArgumentException(ExceptionResource resource) +56
   System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add) +14287305
   Dynamicweb.Admin.Edit2.LoadItemLayoutsFromForm() +868
   Dynamicweb.Admin.Edit2.Page_Load(Object sender, EventArgs e) +1861
   System.Web.UI.Control.OnLoad(EventArgs e) +109
   System.Web.UI.Control.LoadRecursive() +68
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4498

 

Why is this failing?

DW version 8.9.1.4

dw.png dw2.png

Replies

 
Nicolai Pedersen
Reply

Hi Espen

Sounds bad. I'll have the service desk contact you!

BR Nicolai

 
Kristian Kirkholt Dynamicweb Employee
Kristian Kirkholt
Reply
This post has been marked as an answer

Hi Espen

Unfortunately this is a know problem. Probably cause is some missing Items relations #29159

We are planning a fix in version 9.1.5 and in version 8.9.1.5

Sorry for any inconvenience this has caused

Kind Regards
Dynamicweb Support
Kristian Kirkholt

Votes for this answer: 1
 
Morten Snedker Dynamicweb Employee
Morten Snedker
Reply

Hi Espen,

Kristians suggestion is a good suggestion since this has been an issue. However this not the problem in your case. Related to your support ticket: There seems to be a bug in the Database object that potentially leads to a SqlCommand Timeout. Our developer team is currently investigating. I will update here with a bug number when investigation concludes.

Though, with reference to your support ticket, the exception you get in your example is not the same.

 

/Morten

 
Jeppe Jakobsen
Reply

I just had a look in the admin panel for the site and found that the ArgumentException comes from a duplicate item (they had equal SystemName).

After i removed the duplicate item, it is now possible to save settings for the Areas, so the exception was solved, but when trying to copy the Standard Site, as Espen wanted, it just sais: "Error happened while executing operation! Area was not copied!". Is it possible to get more detailed information about this error? 

copyCapture.PNG
 
Kristian Kirkholt Dynamicweb Employee
Kristian Kirkholt
Reply

Hi Espen and Jeppe

Please try to update site to version 8.9.1.5
This should resolve the problem.

You are able to find this build in the download section:

http://doc.dynamicweb.com/releases-and-downloads/releases

Please contact Dynamicweb Support if you need any additional help regarding this.

Kind Regards
Dynamicweb Support
Kristian Kirkholt

 

You must be logged in to post in the forum