Developer forum

Forum » Development » Order confirmation fails in 9.7

Order confirmation fails in 9.7

Anders Ebdrup
Anders Ebdrup
Reply

Dear Dynamicweb,

 

After upgrading to 9.7 the order confirmation fails - please see this log entry from the order log:

Order Unable to send order and receipt mails for order ORDER1411 System.FormatException: Input string was not in a correct format. at System.Text.StringBuilder.FormatError() at System.Text.StringBuilder.AppendFormatHelper(IFormatProvider provider, String format, ParamsArray args) at System.String.FormatHelper(IFormatProvider provider, String format, ParamsArray args) at System.String.Format(String format, Object[] args) at Dynamicweb.Ecommerce.Cart.Frontend.LogEvent(Order order, String message, Object[] params) at Dynamicweb.Ecommerce.Cart.Frontend.SendMails(Order order, ModuleSettings settings, Int32 pageID) at Dynamicweb.Ecommerce.Cart.Frontend.CheckoutDone(Order order, Int32 pageID)

The problem is this line:

                LogEvent(order, $"Notification mail, To: '{receiverString}', Subject: '{mailInfo.Subject}', From: '<{mailInfo.SenderMail}> {mailInfo.SenderName}'")


As this is our subject: "Your order ({OrderID})", and String.Format cannot handle the curly brackets.

Can you please replace the order id {OrderID} before logging the event or just fix the code? :-)

 

Best regards, Anders


Replies

 
Nicolai Pedersen
Reply

Good catch. TFS#72662, fixed and ready for test - and later release on the Ecommerce package.

BR Nicolai

 
Kristian Kirkholt Dynamicweb Employee
Kristian Kirkholt
Reply
This post has been marked as an answer

Hi Anders

The problem #72662 are fixed in version 9.7.4

Kind Regards
Dynamicweb Support
Kristian Kirkholt

Votes for this answer: 1

 

You must be logged in to post in the forum