For general questions and discussions specific to the AbleCommerce GOLD ASP.Net shopping cart software.
-
compunerdy
- Admiral (ADM)

- Posts: 1283
- Joined: Sun Nov 18, 2007 3:55 pm
Post
by compunerdy » Wed Oct 21, 2015 6:32 pm
Code: Select all
An error has occured at http://www.thecustomsabershop.com/category.aspx?categoryid=91
Exception: Exception of type 'System.Web.HttpUnhandledException' was thrown. Stack Trace: at System.Web.UI.Page.HandleError(Exception e) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest() at System.Web.UI.Page.ProcessRequest(HttpContext context) at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) Inner Exception: The product defines 1 options but 2 choices are provided. Parameter name: productId Inner Exception Stack Trace: at CommerceBuilder.Products.ProductVariantRepository.LoadForOptionList(Int32 productId, Int32[] optionChoices) at CommerceBuilder.Orders.BasketItem.get_ProductVariant() at CommerceBuilder.Services.Checkout.BasketService.Validate(Basket basket) at AbleCommerce.ConLib.MiniBasket.Page_PreRender(Object sender, EventArgs e) at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
Not sure where to look into this... The product defines 1 options but 2 choices are provided.
-
jmestep
- AbleCommerce Angel
- Posts: 8164
- Joined: Sun Feb 29, 2004 8:04 pm
- Location: Dayton, OH
-
Contact:
Post
by jmestep » Thu Oct 22, 2015 12:40 am
I have seen that error while coding in the past. For me it happened when I was trying to load a variant that had been in the basket or order, but some of the options had been deleted from the product in the meantime.
-
mazhar
- Master Yoda

- Posts: 5084
- Joined: Wed Jul 09, 2008 8:21 am
-
Contact:
Post
by mazhar » Thu Oct 22, 2015 3:57 am
Judy seems correct. You must have some basket item in your basket with option choices no longer available on product you added to basket. It maybe some old data upgraded to gold.
-
compunerdy
- Admiral (ADM)

- Posts: 1283
- Joined: Sun Nov 18, 2007 3:55 pm
Post
by compunerdy » Thu Oct 22, 2015 5:37 am
So this must be people moving wishlist items or something? I cannot get the error to trip myself.
-
mazhar
- Master Yoda

- Posts: 5084
- Joined: Wed Jul 09, 2008 8:21 am
-
Contact:
Post
by mazhar » Mon Nov 02, 2015 10:46 am
Well if you add above product to cart and then go to basket page. You will be able to see only two choices out of three you made while adding product. It seems like first choice is lost which leads to invalid basket while performing basket content validation. I wonder if you have customized your buy product user control or maybe there is some specific configuration on first option "Length?"
-
compunerdy
- Admiral (ADM)

- Posts: 1283
- Joined: Sun Nov 18, 2007 3:55 pm
Post
by compunerdy » Mon Nov 02, 2015 11:06 am
It is not lost.. it is in the name of the product..
LED "Corbin style" Show blade 1" OD (30 inches) •** Double Wrap
•** Standard
Also if it was a basket check then why would it only error when going to those two categories?
-
compunerdy
- Admiral (ADM)

- Posts: 1283
- Joined: Sun Nov 18, 2007 3:55 pm
Post
by compunerdy » Mon Nov 02, 2015 11:38 am
Through trial and error I narrowed this down to the # of wraps option.
This is the product the # of wraps option is selecting..
http://www.thecustomsabershop.com/Blade-film-P197.aspx
This product is also only listed in those 2 categories so some weird check is going on when you have the parent item in your cart and go to a category page with a child item that has 2 options or something along those lines...
-
nadeem
- Captain (CAPT)

- Posts: 258
- Joined: Tue Jul 31, 2012 7:23 pm
Post
by nadeem » Thu Nov 05, 2015 4:12 am
Can you please help me in reproducing this issue? I have setup the product like this:
1. Created a root category named 'Blade Supplies'
2. Created two subcategories '1" OD Thin Walled' and '1" OD Thick Walled' under 'Blade Supplies'
3. Created a product ''Blade film' with
option choices
Wraps? Single Wrap, Double Wrap, Quad Wrap
Blade diameter? 3/4" Thin Walled, 1" Thin Walled, 1" Thick Walled
This product is in both child categories.
4. Added this product to cart from store side and then navigated to the above child categories and it worked for me in all cases.
Have I setup this up correctly OR am I missing something?
-
compunerdy
- Admiral (ADM)

- Posts: 1283
- Joined: Sun Nov 18, 2007 3:55 pm
Post
by compunerdy » Thu Nov 05, 2015 6:21 am
I made copies of the product and was able to narrow it down to that one option but did not have time to try and create it from scratch to test but once I get some time I will.