Items Shipped Email Not Sent Due to freemarker.core.InvalidReferenceException (Doc ID 2068562.1)

Last updated on MAY 26, 2017

Applies to:

Oracle Commerce Cloud Service - Version N/A and later
Information in this document applies to any platform.

Symptoms

You may see that the items shipped email is not sent. You may see the following error in the logs:

**** Error      Mon Oct 19 15:11:03 UTC 2015    1445267463431   /atg/cloud/notifications/email/SmtpNotificationService  
Error running Freemarker template.      freemarker.core.InvalidReferenceException: The following has evaluated to null or missing:
==> variant.optionValue  [in template "items_shipped_v1/html_body.ftl" at line 823, column 76]

**** Error      Mon Oct 19 15:11:03 UTC 2015    1445267463431   /atg/cloud/notifications/email/SmtpNotificationService
Tip: If the failing expression is known to be legally null/missing, either specify a default value with myOptionalVar!myDefault, or use <#if myOptionalVar??>when-present<#else>when-missing</#if>. (These only cover the last step of the expression; to cover the whole expression, use parenthessis: (myOptionVar.foo)!myDefault, (myOptionVar.foo)??

**** Error      Mon Oct 19 15:11:03 UTC 2015    1445267463431   /atg/cloud/notifications/email/SmtpNotificationService
The failing instruction:
==> ${variant.optionValue}  [in template "items_shipped_v1/html_body.ftl" at line 823, column 74]
        at freemarker.core.InvalidReferenceException.getInstance(InvalidReferenceException.java:98)
        at freemarker.core.EvalUtil.coerceModelToString(EvalUtil.java:382)
        at freemarker.core.Expression.evalAndCoerceToString(Expression.java:115)
        at freemarker.core.DollarVariable.accept(DollarVariable.java:76)
        at freemarker.core.Environment.visit(Environment.java:265)
        at freemarker.core.MixedContent.accept(MixedContent.java:93)

 

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms