Developer forum

Forum » Ecommerce - Standard features » Variants wrongly deleted when "Default (primary) variant for main product" selected

Variants wrongly deleted when "Default (primary) variant for main product" selected

Grant Menzies
Reply

Hi there!

Here comes my first post on the forum. Hopefully someone out there can help me with this problem:

We are running 8.3.1.1.

  • Product created.
  • Product variants for Size and Colour created.
  • Products activated
  • Product > Variants > "Default (primary) variant for main product" Selected
  • Save.

After the Save this is where the problem occurs. In Chrome the green loading bar just continues endlessly. In IE I get the following output (see below). On navigating back to the product, all my variants have been deleted. 

A translation of the InvalidOperationException is "Collection was modified; enumeration operation may not execute."

 

 

Serverfel i tillämpningsprogrammet /.


Mängden har ändrats. Det går inte att köra uppräkningsåtgärden.

Beskrivning: Ett undantag som inte kunde hanteras uppstod när den aktuella webbegäran kördes. Mer information om felet och var i koden det uppstod finns i stackspårningen. 

Undantagsinformation: System.InvalidOperationException: Mängden har ändrats. Det går inte att köra uppräkningsåtgärden.

Källfel: 

Ett undantag som inte hanteras genererades vid körningen av den aktuella webbegäran. Information om undantagets ursprung och plats kan identifieras med undantagsstackspårningen nedan.


Stackspårning: 

 

[InvalidOperationException: Mängden har ändrats. Det går inte att köra uppräkningsåtgärden.]

   System.Collections.HashtableEnumerator.MoveNext() +9643249

   Dynamicweb.eCommerce.Frontend.Frontend.DeleteGroupDisplayCache() +324

   Dynamicweb.eCommerce.Products.Product.DeleteVariants(String productID, String variantID) +274

   Dynamicweb.Admin.eComBackend.ProductEdit.AddVariantOptions(Product prd) +666

   Dynamicweb.Admin.eComBackend.ProductEdit.SaveProduct(Product prod, String prodId, String groupId, String variantId, Boolean VariantProduct, Boolean WizardProduct, String redirUrl, Boolean closeAfterSave) +4085

   Dynamicweb.Admin.eComBackend.ProductEdit.SaveProduct_Click(Object sender, EventArgs e) +55

   Dynamicweb.Controls.RibbonBarButton.RaisePostBackEvent(String eventArgument) +33

   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13

   System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +176

   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5563

 


 

 

 


Replies

 
Nicolai Høeg Pedersen
Reply

Wil have QA take a look at this.

And we do not understand Swedish stack traces :-).

 

BR Nicolai

 
Merethe Nielsen
Reply

Hi

I´m sorry, but I have not been able to reproduce it. I have tested on the latest version.
You can see my test here: http://screencast.com/t/tMS3uc6G.

If you have further steps to reproduce this, then please write them here, and I´ll try again.

If the steps are like in my video but it fails, then it seems to be a issue on your specific solution and we need to investigate it further. Please create a case to our Service desk and give them a copy of the solution (files and database - and application, if it´s a custom solution). Then we are able to set it up and investigate it here.

Kind regards,
Merethe Vrå Andersen

 

 

 
Grant Menzies
Reply

Ok, thanks for taking the time to check this out Merethe!

Where do I find the Service desk? :)

//Grant

 

 

 
Nicolai Høeg Pedersen
Reply

Hi Grant

 

you can find it at engage.dynamicweb.dk or send an email to servicedesk(at)dynamicweb.dk

 

Nicolai

 
Grant Menzies
Reply

Ok, thanks!

I'll create a case as soon as possible ...

//Grant

 

 

 

 

You must be logged in to post in the forum