Validation error when using “next” keyword in the AJO personalization editor

In Adobe Journey Optimizer (AJO), scripting expressions that include the keyword next trigger a validation error in the personalization editor. This happens because next is treated as a reserved keyword in the underlying scripting language. To resolve the issue, wrap next in backticks in your expression.

Description description

Environment

Adobe Journey Optimizer (AJO)

Issue/Symptoms

  • Validation error occurs when using the keyword next  as part of a field path.
  • The following expression triggers the error: {% let temp = profile._company.membership.next.name %}
  • The keyword next  is treated as a reserved keyword in AJO scripting.

Resolution resolution

To resolve the issue, follow these steps:

  1. Open the personalization editor in Adobe Journey Optimizer.

  2. Locate the expression that includes the next keyword.

  3. Wrap the next keyword in backticks to treat it as a literal field name. For example:

    code language-none
    {% let temp = profile._company.membership.`next`.name %}
    

For further assistance, contact Adobe Support.

Add personalization in the Journey Optimizer guide

recommendation-more-help
3d58f420-19b5-47a0-a122-5c9dab55ec7f