Strange errors since moving to 7.0.5

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

Strange errors since moving to 7.0.5

Post by compunerdy » Thu Nov 04, 2010 11:24 pm

Anyone know the cause of these or where to look?

Error adjusting inventory levels for order number 24483 An item with the same key has already been added.

An error has occured at http://www.thecustomsabershop.com/Basket.aspx Exception of type 'System.Web.HttpUnhandledException' was thrown.; Attempted to divide by zero.

User avatar
triplw
Commander (CMDR)
Commander (CMDR)
Posts: 144
Joined: Sat Jan 12, 2008 5:34 pm
Contact:

Re: Strange errors since moving to 7.0.5

Post by triplw » Mon Dec 13, 2010 2:03 pm

I am getting an occasional "An item with the same key has already been added." since upgrading to 7.0.5 also. I think it may have to do with kitted products that I have copied to make another product but haven't really spent time testing.

mmcnatt
Ensign (ENS)
Ensign (ENS)
Posts: 12
Joined: Sun Jan 24, 2010 5:57 pm

Re: Strange errors since moving to 7.0.5

Post by mmcnatt » Wed Jan 26, 2011 3:06 pm

We just updated to version 7.06 from 7.04 and we are seeing these same errors:

1/26/2011 10:04:43 AM Error Error adjusting inventory levels for order number xxxx An item with the same key has already been added.

has anybody figured this out?

Thanks

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

Re: Strange errors since moving to 7.0.5

Post by compunerdy » Wed Jan 26, 2011 5:27 pm

I never got it resolved. I tried to file a report on it but you cannot do that anymore without paying for support it seems.

User avatar
deverill
Lieutenant (LT)
Lieutenant (LT)
Posts: 64
Joined: Tue Jan 06, 2009 11:58 am
Location: Key West, FL
Contact:

Re: Strange errors since moving to 7.0.5

Post by deverill » Wed Jul 13, 2011 8:12 am

It's not just Kits. We don't use them and are getting several entries of this error a day.
7/11/2011 10:14:26 AM Error An error has occured at [various pages] An item with the same key has already been added.

User avatar
vsammons
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 33
Joined: Mon May 10, 2010 7:10 am

Re: Strange errors since moving to 7.0.5

Post by vsammons » Thu Aug 04, 2011 10:06 am

Anybody ever get this resolved? It seems we all keep dealing with the issues, but someone that is TRYING to order is having issues. THis is costing us money... and possibly a new customer!

azar
Ensign (ENS)
Ensign (ENS)
Posts: 15
Joined: Sat Nov 27, 2010 11:43 am

Re: Strange errors since moving to 7.0.5

Post by azar » Thu Aug 04, 2011 12:12 pm

Are you making a lot of code changes? This error usually happens after you make code changes. It is an error within asp.net application pool and usually gets resolved quickly after all the new code files are re-compiled. The solution is to recycle the application pool after each code change.

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

Re: Strange errors since moving to 7.0.5

Post by compunerdy » Tue Aug 09, 2011 6:07 pm

Still get these...

Error Error adjusting inventory levels for order number xxxx An item with the same key has already been added.

Anyone looking into it?

eileen
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 41
Joined: Sun Feb 11, 2007 10:59 pm
Location: Novato, CA
Contact:

Re: Strange errors since moving to 7.0.5

Post by eileen » Tue Sep 13, 2011 6:39 am

I am getting the same error. Plugables looked at my log file, and this is their take:
This seems like a bug in AbleCommerce URLRewriter. The error can not be reliably produced every time but the exception details show that the URL Rewriter module of AbleCommerce, which has been added in the latest versions, fails to maintain unique keys in one of its internal collections. You should contact AbleCommerce with these error details.

ERROR 2011-09-11 16:59:03,621 406ms Object a - An error has occured at http://www.backdesigns.com/Why-you-dont ... t-W14.aspx
System.ArgumentException: An item with the same key has already been added.
at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
at System.Collections.ObjectModel.KeyedCollection`2.AddKey(TKey key, TItem item)
at System.Collections.ObjectModel.KeyedCollection`2.InsertItem(Int32 index, TItem item)
at CommerceBuilder.Catalog.DefaultUrlRewriter.InitializeCache()
at CommerceBuilder.Catalog.DefaultUrlRewriter.a(String A_0)
at CommerceBuilder.Catalog.DefaultUrlRewriter.RewriteUrl(String sourceUrl)
at CommerceBuilder.Services.c.c(Object A_0, EventArgs A_1)
at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
ERROR 2011-09-11 16:59:03,637 421ms Object a - An error has occured at http://www.backdesigns.com/Salli-Saddle ... -C156.aspx
System.ArgumentException: An item with the same key has already been added.
at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
at System.Collections.ObjectModel.KeyedCollection`2.AddKey(TKey key, TItem item)
at System.Collections.ObjectModel.KeyedCollection`2.InsertItem(Int32 index, TItem item)
at CommerceBuilder.Catalog.DefaultUrlRewriter.InitializeCache()
at CommerceBuilder.Catalog.DefaultUrlRewriter.a(String A_0)
at CommerceBuilder.Catalog.DefaultUrlRewriter.RewriteUrl(String sourceUrl)
at CommerceBuilder.Services.c.c(Object A_0, EventArgs A_1)
at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

moustafa
Lieutenant (LT)
Lieutenant (LT)
Posts: 54
Joined: Wed Oct 19, 2011 9:54 pm

Re: Strange errors since moving to 7.0.5

Post by moustafa » Mon Oct 22, 2012 4:39 pm

Has anyone found a resolution?

For one of my stores, I'm getting this error a lot. Here's my stack trace:

Code: Select all

ERROR 2012-10-17 09:42:15,956 1772501ms Object                 a                  - Error adjusting inventory levels for order number 96
System.ArgumentException: An item with the same key has already been added.
   at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
   at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
   at CommerceBuilder.Orders.OrderDataSource.UpdateOrderStatus(Order order, OrderStatus newStatus)

ableExpert
Ensign (ENS)
Ensign (ENS)
Posts: 15
Joined: Mon Oct 22, 2012 4:25 pm

Re: Strange errors since moving to 7.0.5

Post by ableExpert » Mon Oct 22, 2012 4:47 pm

Hi moustafa,
It seems your are trying to update the inventory level are you sure there are enough items for the product, you are updating?

moustafa
Lieutenant (LT)
Lieutenant (LT)
Posts: 54
Joined: Wed Oct 19, 2011 9:54 pm

Re: Strange errors since moving to 7.0.5

Post by moustafa » Mon Oct 22, 2012 4:49 pm

Yes, I'm sure. I'm running four AC stores and I'm quite familiar with how inventory management should work.

ableExpert
Ensign (ENS)
Ensign (ENS)
Posts: 15
Joined: Mon Oct 22, 2012 4:25 pm

Re: Strange errors since moving to 7.0.5

Post by ableExpert » Mon Oct 22, 2012 5:02 pm

I think exact reason which trigger this issue can be identify by running the application in the same scenario on debug mode.You may also see this link may be this will be helpful for you
http://forums.asp.net/t/1730201.aspx/1

Post Reply