Page 1 of 1

We've received the following error message

Posted: Tue Aug 27, 2013 1:37 pm
by ghansard
Thanks for any assistance, Greg

Error generating email messages for template 'Shop Order Notification' having subject 'Order Number $order.OrderNumber'.
Exception: Foreach directives must be the only items on the line (comments or contents are not allowed) Stack Trace: at NVelocity.App.VelocityEngine.Evaluate(IContext context, TextWriter writer, String logTag, TextReader reader) at CommerceBuilder.Messaging.NVelocityEngine.Process(Hashtable parameters, String template) at CommerceBuilder.Messaging.EmailTemplate.GenerateMailMessages() at CommerceBuilder.Messaging.EmailTemplate.Send(Boolean async) Inner Exception: Foreach directives must be the only items on the line (comments or contents are not allowed) Inner Exception Stack Trace: at NVelocity.Runtime.Parser.Parser.Parse(TextReader reader, String templateName) at NVelocity.Runtime.RuntimeInstance.Parse(TextReader reader, String templateName, Boolean dumpNamespace) at NVelocity.App.VelocityEngine.Evaluate(IContext context, TextWriter writer, String logTag, TextReader reader)

Re: We've received the following error message

Posted: Wed Aug 28, 2013 4:55 am
by jmestep
It sounds like you might have something else on the line where the #foreach is?
Or you might have opened this up in the WYSIWYG editor and the nVelocity script was corrupted?