Try our conversational search powered by Generative AI!

Null exception on OrderGroup.AcceptChanges()

Vote:
 

When adding a single item to an empty orderform and running cart.AcceptChanges() we get the following exception. Everything is saved though, when choking the error in a try/catch everything works normal. This error only occurs on some of our test machines. We're using 7.5 without any updates.

 

 EPiServer.Global: 1.2.5 Unhandled exception in ASP.NET
System.NullReferenceException: Object reference not set to an instance of an object.
   at Mediachase.Data.Provider.TransactionScope.ThreadStaticTransactionScope.Dispose()
   at Mediachase.Data.Provider.TransactionScope.Dispose()
   at Mediachase.Commerce.Orders.OrderGroup.AcceptChanges()

#80688
Jan 29, 2014 21:28
Vote:
 

This was a custom metafield on LineItem that wasn't populated. Found the problem using SQL Server Profiler.

#80765
Jan 31, 2014 12:58
* 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.