Cannot find template for e-mail type OrderConfirmation
Hi!
I'm trying to get the last step of the order flow working in uCommerce, and I get this error:
Cannot find template for e-mail type OrderConfirmation and culture sv-SE. Make sure that a template is configured for e-mail type OrderConfirmation on profile Default. System.String Send(UCommerce.EntitiesV2.EmailProfile, System.String, System.Net.Mail.MailAddress, System.Collections.Generic.IDictionary`2[System.String,System.String]) at UCommerce.Transactions.EmailService.Send(EmailProfile profile, String emailTypeName, MailAddress to, IDictionary`2 templateParameters) at UCommerce.Transactions.EmailService.Send(EmailProfile profile, String emailTypeName, MailAddress to, String orderNumber) at UCommerce.Pipelines.Common.SendEmailTask.Execute(PurchaseOrder purchaseOrder) at UCommerce.Pipelines.Pipeline`1.Execute(T subject)
The site has 2 languages, English (Master), and Swedish.
I think it might be related to the fact that uCommerce does a case sensitive string comparison when looking up the content for the e-mail, i.e. looking se-SV but database holds se-sv.
Could you let me know what the culturecode in the table uCommerce_EmailContent says? Does it contain at least a row with se-SV on it?
I took a look at your site and much forehead slapping ensued! The answer was right there I just couldn't see it :)
The reason for the missing confirmation e-mail is that the checkout pipeline is configured to look for an e-mail type called 'OrderConfirmation'. I noticed that you changed the name of the type in the backend, which is fine, you just need to let the pipeline know as well otherwise it will still look for the 'OrderConfirmation' e-mail type, which doesn't exist.
You can either change the checkout pipeline to match or rename the e-mail type back to 'OrderConfirmation'.
I've added a new error message to the code base to make the configuration mismatch more obvious in the future, "Could not find an e-mail type named 'OrderConfirmation'. Please make sure that Settings -> E-mails -> Types contains a type called 'OrderConfirmation'.".
Cannot find template for e-mail type OrderConfirmation
Hi!
I'm trying to get the last step of the order flow working in uCommerce, and I get this error:
Cannot find template for e-mail type OrderConfirmation and culture sv-SE. Make sure that a template is configured for e-mail type OrderConfirmation on profile Default. System.String Send(UCommerce.EntitiesV2.EmailProfile, System.String, System.Net.Mail.MailAddress, System.Collections.Generic.IDictionary`2[System.String,System.String]) at UCommerce.Transactions.EmailService.Send(EmailProfile profile, String emailTypeName, MailAddress to, IDictionary`2 templateParameters) at UCommerce.Transactions.EmailService.Send(EmailProfile profile, String emailTypeName, MailAddress to, String orderNumber) at UCommerce.Pipelines.Common.SendEmailTask.Execute(PurchaseOrder purchaseOrder) at UCommerce.Pipelines.Pipeline`1.Execute(T subject)
The site has 2 languages, English (Master), and Swedish.
/Jonas
Hi Jonas,
I think it might be related to the fact that uCommerce does a case sensitive string comparison when looking up the content for the e-mail, i.e. looking se-SV but database holds se-sv.
Could you let me know what the culturecode in the table uCommerce_EmailContent says? Does it contain at least a row with se-SV on it?
Hi!
The table contains a row with an sv-SE entry, with correct case.
Hi Jonas,
I took a look at your site and much forehead slapping ensued! The answer was right there I just couldn't see it :)
The reason for the missing confirmation e-mail is that the checkout pipeline is configured to look for an e-mail type called 'OrderConfirmation'. I noticed that you changed the name of the type in the backend, which is fine, you just need to let the pipeline know as well otherwise it will still look for the 'OrderConfirmation' e-mail type, which doesn't exist.
You can either change the checkout pipeline to match or rename the e-mail type back to 'OrderConfirmation'.
I've added a new error message to the code base to make the configuration mismatch more obvious in the future, "Could not find an e-mail type named 'OrderConfirmation'. Please make sure that Settings -> E-mails -> Types contains a type called 'OrderConfirmation'.".
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.