• Toll-free  888-665-8637
  • International  +1 717-220-0012
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

TKatch
#1 Posted : Thursday, July 6, 2023 3:43:51 PM(UTC)
TKatch

Rank: Member

Joined: 1/23/2013(UTC)
Posts: 267
Location: Joliet, IL

Thanks: 64 times
I've created a product recently (SKU: CLS1117) and trying to clone it. But I'm getting an error that I don't know how to fix:

Server Error in '/' Application.
Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
Source Error:
Line 41: If product IsNot Nothing Then
Line 42: If product.Bvin <> String.Empty Then
Line 43: Dim newProduct As Catalog.Product = product.Clone(ProductChoicesCheckBox.Checked, ImagesCheckBox.Checked)
Line 44: If InactiveCheckBox.Checked Then
Line 45: newProduct.Status = Catalog.ProductStatus.Disabled

Source File: C:\WEBS\Kataaro\WWW-2017\BVAdmin\Catalog\ProductClone.aspx.vb Line: 43
Stack Trace:
[ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index]
System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource) +77
System.Collections.Generic.List`1.get_Item(Int32 index) +14369976
BVSoftware.Bvc5.Core.Catalog.InternalProduct.Clone(Boolean cloneProductChoicesAndInputs, Boolean cloneProductImages) +728
BVAdmin_Catalog_ProductClone.Save() in C:\WEBS\Kataaro\WWW-2017\BVAdmin\Catalog\ProductClone.aspx.vb:43
BVAdmin_Catalog_ProductClone.CloneButton_Click(Object sender, ImageClickEventArgs e) in C:\WEBS\Kataaro\WWW-2017\BVAdmin\Catalog\ProductClone.aspx.vb:35
System.Web.UI.WebControls.ImageButton.OnClick(ImageClickEventArgs e) +143
System.Web.UI.WebControls.ImageButton.RaisePostBackEvent(String eventArgument) +188
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1890

Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.8.4494.0
Aaron
#2 Posted : Thursday, July 6, 2023 4:15:35 PM(UTC)
Aaron

Rank: Administration

Joined: 4/2/2004(UTC)
Posts: 2,393
United States
Location: Hummelstown, PA

Thanks: 6 times
Was thanked: 163 time(s) in 158 post(s)
Can you verify that there's nothing amiss with your product images and product options? I'm wondering if you have an empty image record or an empty/incomplete choice/modifier/input (or one of its options).
Aaron Sherrick
BV Commerce
Toll-free 888-665-8637 - Int'l +1 717-220-0012
 1 user thanked Aaron for this useful post.
TKatch
#3 Posted : Thursday, July 6, 2023 7:07:21 PM(UTC)
TKatch

Rank: Member

Joined: 1/23/2013(UTC)
Posts: 267
Location: Joliet, IL

Thanks: 64 times
That was it - one of the options was listed as null when it should not have been. - Thanks!
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

©2024 Develisys. All rights reserved.
  • Toll-free  888-665-8637
  • International  +1 717-220-0012