Developer forum

Forum » Ecommerce - Standard features » Editing ledgers in the backend

Editing ledgers in the backend

Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

Hi there,

Using the data integration framework we imported ledgers into the EcomOrders table. Now when editing and saving a ledger in the backend, we get the attached "SqlDateTime Overflow" exception.

After some debugging and data manipulation, it turns out the issue is with the column OrderPriceCalculation . In the database this column is nullable and we didn't supply a value for it during import. However, when this value remains null, saving a ledger causes the code to crash. We can work around it by assigning a value to that column on all ledgers in the backend.

Did this change recently? We never had to do this in the past. I can see some recent changes in the code from a DateTime to a Date that may be related? Maybe it now no longer  sends DBNull.Value but DateTime.MinValue or so instead?

Since OrderPriceCalculation doesn't make sense for a ledger item, I would like this field to remain nullable. Can you look into this please?

Thanks!

Imar

b8964d0cd0622c4c01babc51edf17963.jpg

Replies

 
Alexander Gubenko
Reply

Hi Imar

I've created the bug TFS#41134, made a fix that will be available with the next update of Dynamicweb.Ecommerce package for 9.3+

-Alexander

 
Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

Thanks!

 

You must be logged in to post in the forum