Page 1 of 1
Getting this error randomly since moving to gold.
Posted: Wed Oct 21, 2015 6:32 pm
by compunerdy
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.
Re: Getting this error randomly since moving to gold.
Posted: Thu Oct 22, 2015 12:40 am
by jmestep
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.
Re: Getting this error randomly since moving to gold.
Posted: Thu Oct 22, 2015 3:57 am
by mazhar
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.
Re: Getting this error randomly since moving to gold.
Posted: Thu Oct 22, 2015 5:37 am
by compunerdy
So this must be people moving wishlist items or something? I cannot get the error to trip myself.
Re: Getting this error randomly since moving to gold.
Posted: Mon Nov 02, 2015 10:20 am
by compunerdy
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.
Re: Getting this error randomly since moving to gold.
Posted: Mon Nov 02, 2015 10:46 am
by mazhar
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?"
Re: Getting this error randomly since moving to gold.
Posted: Mon Nov 02, 2015 11:06 am
by compunerdy
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?
Re: Getting this error randomly since moving to gold.
Posted: Mon Nov 02, 2015 11:38 am
by compunerdy
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...
Re: Getting this error randomly since moving to gold.
Posted: Thu Nov 05, 2015 4:12 am
by nadeem
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?
Re: Getting this error randomly since moving to gold.
Posted: Thu Nov 05, 2015 6:21 am
by compunerdy
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.