Developer forum

Forum » Ecommerce - Standard features » Recurring Order Error

Recurring Order Error

Shiwanka Chathuranga
Reply

   Error at Recurring order creation when use RecurringOrdersScheduledTaskAddIn

at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)
   at Dynamicweb.Ecommerce.Orders.Order.get_Ip() in D:\Primero\Source\Diameco\Custom\Dynamicweb.Ecommerce\Orders\Order.cs:line 456
   at Dynamicweb.Ecommerce.Orders.OrderRepository.Save(Order order) in D:\Primero\Source\Diameco\Custom\Dynamicweb.Ecommerce\Orders\OrderRepository.cs:line 835
   at Dynamicweb.Ecommerce.Orders.OrderService.Save(Order order, Boolean saveOldVersion) in D:\Primero\Source\Diameco\Custom\Dynamicweb.Ecommerce\Orders\OrderService.cs:line 844
   at Dynamicweb.Ecommerce.Orders.OrderService.Save(Order order) in D:\Primero\Source\Diameco\Custom\Dynamicweb.Ecommerce\Orders\OrderService.cs:line 812
   at Dynamicweb.Ecommerce.Orders.RecurringOrder.MakeRecurringCopy(Order order) in D:\Primero\Source\Diameco\Custom\Dynamicweb.Ecommerce\Orders\RecurringOrder.cs:line 685
   at Dynamicweb.Ecommerce.Orders.RecurringOrder.GetRecurringCopy(Order order) in D:\Primero\Source\Diameco\Custom\Dynamicweb.Ecommerce\Orders\RecurringOrder.cs:line 574
   at Dynamicweb.Ecommerce.Orders.Gateways.OrderManager.CreateRecurringOrder(Order order) in D:\Primero\Source\Diameco\Custom\Dynamicweb.Ecommerce\Orders\Gateways\OrderManager.cs:line 301
   at Dynamicweb.Ecommerce.Orders.Gateways.OrderManager.Recurring() in D:\Primero\Source\Diameco\Custom\Dynamicweb.Ecommerce\Orders\Gateways\OrderManager.cs:line 291
   at Dynamicweb.Scheduling.Providers.RecurringOrdersScheduledTaskAddIn.RecurringOrdersScheduledTaskAddIn.Run() in D:\Primero\Source\Diameco\Custom\Dynamicweb.Scheduling.Providers.RecurringOrdersScheduledTaskAddIn\RecurringOrdersScheduledTaskAddIn.cs:line 151

 

seems error from here as MakeRecurringCopy(Order order)  does not get previos ip and try to get from request


Replies

 
Rasmus Sanggaard Dynamicweb Employee
Rasmus Sanggaard
Reply

Hi,

 

I have created a bug for it #19363.

 

BR Rasmus Sanggaard

 

You must be logged in to post in the forum