November Happy Hour will be moved to Thursday December 5th.

Sequence contains more than one matching element.

Vote:
 

I use CartHelper for manage cart. Our system is just haft e-commerce , just can pick products to the cart and send order list by e-mail. It was work fine but today i got an error "Sequence contains more than one matching element"  when i try to add product to the cart and retrieve cart. why? How to fix this?

#91186
Sep 29, 2014 12:14
Vote:
 

I think you're having same problem with this thread: http://world.episerver.com/Forum/Developer-forum/EPiServer-Commerce/Thread-Container/2014/2/Sequence-contains-more-than-one-matching-element-at-MediachaseCommerceOrdersOrderContextGetCartString-name-Guid-customerId-MarketId-marketId/

I would recommend to update to latest nuget to find out which code unintentionally adds the item to the cart.

Regards.

/Q

#91188
Sep 29, 2014 12:28
Vote:
 

Thanks Quan, it's fixed!!!

#91198
Sep 29, 2014 15:16
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.