Getting this error randomly since moving to gold.

For general questions and discussions specific to the AbleCommerce GOLD ASP.Net shopping cart software.
Post Reply
User avatar
compunerdy
Admiral (ADM)
Admiral (ADM)
Posts: 1283
Joined: Sun Nov 18, 2007 3:55 pm

Getting this error randomly since moving to gold.

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.

User avatar
jmestep
AbleCommerce Angel
Posts: 8164
Joined: Sun Feb 29, 2004 8:04 pm
Location: Dayton, OH
Contact:

Re: Getting this error randomly since moving to gold.

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.
Judy Estep
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Getting this error randomly since moving to gold.

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.

User avatar
compunerdy
Admiral (ADM)
Admiral (ADM)
Posts: 1283
Joined: Sun Nov 18, 2007 3:55 pm

Re: Getting this error randomly since moving to gold.

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.

User avatar
compunerdy
Admiral (ADM)
Admiral (ADM)
Posts: 1283
Joined: Sun Nov 18, 2007 3:55 pm

Re: Getting this error randomly since moving to gold.

Post by compunerdy » Mon Nov 02, 2015 10:20 am

Ok this is really weird.. I finally was able to reproduce this error.

Add this item to your shopping cart... http://www.thecustomsabershop.com/LED-C ... -P227.aspx

Now go to either of these categories and it puts up a server error..

http://www.thecustomsabershop.com/1-OD- ... --C90.aspx
http://www.thecustomsabershop.com/1-OD- ... d-C91.aspx

If you go to any other categories it des not show a error. I think the issue is that some of the components in this kit are sold separately in these categories but why it is doing this I have no clue. It has to be some Gold code check that was not done before in 7.0.7 as these items and categories have been the same for years without this issue.

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Getting this error randomly since moving to gold.

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?"

User avatar
compunerdy
Admiral (ADM)
Admiral (ADM)
Posts: 1283
Joined: Sun Nov 18, 2007 3:55 pm

Re: Getting this error randomly since moving to gold.

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?

User avatar
compunerdy
Admiral (ADM)
Admiral (ADM)
Posts: 1283
Joined: Sun Nov 18, 2007 3:55 pm

Re: Getting this error randomly since moving to gold.

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)
Captain (CAPT)
Posts: 258
Joined: Tue Jul 31, 2012 7:23 pm

Re: Getting this error randomly since moving to gold.

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?

User avatar
compunerdy
Admiral (ADM)
Admiral (ADM)
Posts: 1283
Joined: Sun Nov 18, 2007 3:55 pm

Re: Getting this error randomly since moving to gold.

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.

Post Reply