Developer forum

Forum » Development » Error after upgrade to 8.3.1.1

Error after upgrade to 8.3.1.1

Anders Ebdrup
Reply

Hi Dw,

 

I have an integrated AX-solution which is upgraded to v8.3.1.1, but now I am getting this error after adding items to cart:

[NullReferenceException: Object reference not set to an instance of an object.]
   Dynamicweb.eCommerce.Orders.OrderLine.get_UnitPrice() in E:\Program Files (x86)\Jenkins\jobs\Release DW831\workspace\Dynamicweb\eCommerce\Orders\OrderLine.vb:457
   Dynamicweb.eCommerce.Orders.OrderLine.Save(DataRow DataRow) in E:\Program Files (x86)\Jenkins\jobs\Release DW831\workspace\Dynamicweb\eCommerce\Orders\OrderLine.vb:945
   Dynamicweb.eCommerce.Orders.OrderLineCollection.Save(String OrderID) in E:\Program Files (x86)\Jenkins\jobs\Release DW831\workspace\Dynamicweb\eCommerce\Orders\OrderLineCollection.vb:508
   Dynamicweb.eCommerce.Orders.Order.SaveOrder(String IDStr, Boolean saveOldVersion) in E:\Program Files (x86)\Jenkins\jobs\Release DW831\workspace\Dynamicweb\eCommerce\Orders\Order.vb:3702
   Dynamicweb.eCommerce.Orders.Order.Save(String IDStr, Boolean saveOldVersion) in E:\Program Files (x86)\Jenkins\jobs\Release DW831\workspace\Dynamicweb\eCommerce\Orders\Order.vb:3465
   Dynamicweb.eCommerce.Frontend.Cart.CartPageTemplateExtender.ExtendTemplate(Template Template) in E:\Program Files (x86)\Jenkins\jobs\Release DW831\workspace\Dynamicweb\eCommerce\Frontend\Cart\CartPageTemplateExtender.vb:13
   Dynamicweb.Frontend.PageView.RenderPageTemplateExtenders(Template Template) in E:\Program Files (x86)\Jenkins\jobs\Release DW831\workspace\Dynamicweb\Frontend\PageView.vb:2315
   Dynamicweb.Frontend.PageView.SetPageTemplateValues() in E:\Program Files (x86)\Jenkins\jobs\Release DW831\workspace\Dynamicweb\Frontend\PageView.vb:2233
   Dynamicweb.Frontend.PageView.Output() in E:\Program Files (x86)\Jenkins\jobs\Release DW831\workspace\Dynamicweb\Frontend\PageView.vb:877
   Dynamicweb.Frontend.PageviewControl.ParseControls() in E:\Program Files (x86)\Jenkins\jobs\Release DW831\workspace\Dynamicweb\Frontend\PageviewControl.vb:156
   Dynamicweb.Frontend.PageviewControl.OnInit(EventArgs e) in E:\Program Files (x86)\Jenkins\jobs\Release DW831\workspace\Dynamicweb\Frontend\PageviewControl.vb:73

Can you tell me what is null??

 

Best regards, Anders


Replies

 
Morten Snedker
Reply

Hi Anders,

 

 

The line says

If _cachedUnitPrice IsNot Nothing AndAlso _cachedPrice.Currency.Code = Context.Currency.Code Then

 

You could try with your own OrderlineAdded notification (or a proper cart notification) to measure the values of the line.

Let me know if there is anything further we can help out with,

 

Regards /Snedker

 

 

 

 

 

 
Morten Snedker
Reply

Also: any errors written to log: \Files\System\Log ?

 

/Snedker

 

 

 
Anders Ebdrup
Reply
This post has been marked as an answer

Hi Morten,

 

I have added this line:

orderline.SetUnitPrice(orderline.Price.PriceWithoutVAT / orderline.Quantity);

In the AX-dll, and it is now working.

Best regards, Anders

 

Votes for this answer: 1

 

You must be logged in to post in the forum