Developer forum

Forum » Dynamicweb 9.0 Upgrade issues » 9.3.3 => 9.3.6 Can't create new Order via the api

9.3.3 => 9.3.6 Can't create new Order via the api

Evaldas Raisutis
Evaldas Raisutis
Reply

new Order() { IsCart = true, LanguageId = Context.LanguageID, ShopId = "SHOP1", OrderContextId = contextId, Date = DateTime.Now, }.Save();

throws "Overløb i SqlDateTime. Værdien skal være mellem 01-01-1753 12:00:00 og 31-12-9999 23:59:59." 

I've changed AllowDifferentContextDates in GlobalSettings from False to True.

   ved System.Data.Common.DbDataAdapter.UpdatedRowStatusErrors(RowUpdatedEventArgs rowUpdatedEvent, BatchCommandInfo[] batchCommands, Int32 commandCount)
   ved System.Data.Common.DbDataAdapter.UpdatedRowStatus(RowUpdatedEventArgs rowUpdatedEvent, BatchCommandInfo[] batchCommands, Int32 commandCount)
   ved System.Data.Common.DbDataAdapter.Update(DataRow[] dataRows, DataTableMapping tableMapping)
   ved System.Data.Common.DbDataAdapter.UpdateFromDataTable(DataTable dataTable, DataTableMapping tableMapping)
   ved System.Data.Common.DbDataAdapter.Update(DataSet dataSet, String srcTable)
   ved Dynamicweb.Ecommerce.Orders.Order.SaveOrder(String orderId, Boolean saveOldVersion)
   ved Dynamicweb.Ecommerce.Orders.Order.Save(String orderId, Boolean saveOldVersion)
   ved Dynamicweb.Ecommerce.Orders.Order.Save()
   ved Hounisen.Website.NotificationSubscribers.OnExtranetLoginSubscriber.OnNotify(String notification, NotificationArgs args) i C:\inetpub\wwwroot\Hounisen\Hounisen.Website\NotificationSubscribers\UserLoggedIn.cs:linje 38
   ved Dynamicweb.Extensibility.Notifications.NotificationManager.Notify(String notification, NotificationArgs eventArgs)
   ved Dynamicweb.Frontend.LoginHandler.ExtranetLogin(String username, String password, Boolean onlyActive, Boolean impersonateUser, Int32 impersonateUserID, Boolean 

Replies

 
Vladimir Shushunov Dynamicweb Employee
Vladimir Shushunov
Reply
This post has been marked as an answer

Hi Evaldas,
We noticed this bug recently -  the fix will appear in next DW 9.3.9 release
Sorry for inconvenience!

Kind regards,
Vladimir

Votes for this answer: 1

 

You must be logged in to post in the forum