Developer forum

Forum » Ecommerce - Standard features » Error on order steps

Error on order steps

Shiwanka Chathuranga Dynamicweb Employee
Shiwanka Chathuranga
Reply

We are getting validation failed error on Order steps,

Log error is attached as image, any idea why it happens... this happens only on some orders.

 

after the error, it reders back to previous step 

 

error.png

Replies

 
Nicolai Pedersen
Reply

Version?

Custom priceprovider? My guess is that you need to upgrade and maybe have a look at your priceprovider.

 
Asdis Gudmundsdottir
Asdis Gudmundsdottir
Reply

We are having the same issue with our solution, DW version 9.8.1.

And the SMTP provider is throwing an error when trying to send that error email to you Nicolai at np@dynamicweb.dk

I would like to know why this error occurs and why the email is sent to you? How can we configure it?

 
Nicolai Pedersen
Reply

The error happens because something is wrong - the prices of the order in memory is not the same as in the database - and the sum of orderlines is not equal to the total of the order header.

This is usually happening when something is wrong in a custom priceprovider (usually when using live prices from an ERP system).

We did make some changes in 9.8.4 that could have an impact on this - could remove the error.

The code sends an email to us when this happnes (it should not!!) so we can take action. You cannot get rid of that - but the smtp exception should disappear if the solution can send emails (which it should do)

BR Nicolai

 
Asdis Gudmundsdottir
Asdis Gudmundsdottir
Reply

Ok thank you. We will take a look at our price provider why this error is happening. But our main issue is the SMTP error. The SMTP service is receiving error only when sending email to your address and our customers can't finish the purchase when this error occurs.
Is this an active email address?

„2020-04-15 11:51:14.282: Could not send email to np@dynamicweb.dk using XXXXXX.mail.protection.outlook.com. System.Net.Mail.SmtpException: Mailbox unavailable. The server response was: 5.7.64 Relay Access Denied ATTR36"

 

 
Nicolai Pedersen
Reply

Hi Asdis

You probably do not want an order to go through when there are price validation errors.

Anyways - the email is valid, but I guess our mail server will not accept your sending SMTP. I have to make a change to Dynamicweb.Ecommerce.dll to get rid of this exception. We will have a 9.8.5 release later this week that I think you should upgrade to.

It might fix your price validation issue for you (we made some internalt changes to try to fix the possible calculation errors) and if there is an error, the above exception should not be there any more.

BR Nicolai

 
Nicolai Pedersen
Reply

You might also be able to update the system email address in the Settings/System section: https://doc.dynamicweb.com/documentation-9/platform/advanced-settings/system#4446

The email address is used as the sender on these kind of emails, and if it is not a valid sender on the used SMTP, you can get exceptions.

 
Asdis Gudmundsdottir
Asdis Gudmundsdottir
Reply

Hi again, thank you so much. I will take a look at the settings.
We will try to upgrade to 9.8.5 when it is available. 

BR

 

You must be logged in to post in the forum