Developer forum

Forum » Dynamicweb 9.0 Upgrade issues » Server error when creating a user in the checkout

Server error when creating a user in the checkout

Ben Doorn
Reply

Hi,

After upgrading to v9.3.3 we ran into a server error when adding a user account within the checkout. This was caused by a custom DateTime field in the custom user fields. Although the data was supplied it tried to save a null value into a DataRow (which raises the error). 

System.ArgumentException: Cannot set Column 'AccessUser_DateOfBirth' to be null. Please use DBNull instead. at System.Data.DataRow.set_Item(DataColumn column, Object value) at Dynamicweb.Security.UserManagement.User.FillRow(DataRow row) at Dynamicweb.Data.DbObject.Save() at Dynamicweb.Security.UserManagement.User.Save() at Dynamicweb.Ecommerce.Cart.Frontend.UpdateUserFromOrder(User user, Order order) at Dynamicweb.Ecommerce.Cart.Frontend.CreateUserFromOrder(Order order) at Dynamicweb.Ecommerce.Cart.Frontend.GetContent()

We solved it by changing the custom field to a varchar field (and al the code that uses the field to do the proper conversions). The DateTime field was working property with the v9.2 version. I think the function Dynamicweb.Security.UserManagement.User.FillRow() needs some attention.

KInd regards,

Ben


Replies

 
Oleg Rodionov Dynamicweb Employee
Oleg Rodionov
Reply
This post has been marked as an answer

Hi,

New TFS 40039 has been created to fix the bug, will be provided with next hotfix/release.

BR, Oleg QA

Votes for this answer: 1
 
Kristian Kirkholt Dynamicweb Employee
Kristian Kirkholt
Reply

Hi Ben

This TFS 40039 Error exception on user was resolved in all 9.3.5+ and 9.4+ versions 

http://doc.dynamicweb.com/releases-and-downloads/releases

Let me know if you need any more help regarding this

Kind Regards
Dynamicweb Support
Kristian Kirkholt

 

You must be logged in to post in the forum