Personalization错误 personalization-errors

在此页面上:​查找在使用个性化表达式验证或发布内容或创建加密密钥时Adobe Journey Optimizer返回错误的原因和修复。

Personalization错误使用前缀​CJMTL(模板渲染)和​CJMRT(运行时),后跟错误号和HTTP状态。 有关其他错误代码前缀,请参阅错误代码引用。

如果在执行步骤后错误仍然存在,请记下错误代码、消息、请求ID以及相关的活动、历程或活动,并保留日志或屏幕截图。 然后,联系您的管理员以获取权限或访问错误,或者联系Adobe支持并提供这些详细信息。 有关所有支持选项,请参阅获取支持。

变量和路径 variables

当表达式引用无法解析或类型错误的字段、变量或命名空间时,会发生这些错误。

另请参阅验证机制和可用的命名空间。

错误代码
消息
如何修复
CJMTL-010001-422
未找到
在个性化编辑器中,检查变量的名称和路径,并将其替换为架构中定义的字段。 了解详情
CJMRT-010001-422
未找到路径
在个性化编辑器中,检查路径,并将其替换为架构中定义的字段。 了解详情
CJMRT-070003-422
在执行上下文中未找到变量{variable}。
在个性化编辑器中,检查变量的名称,并使用架构的字段。 了解详情
CJMRT-070008-422
不支持路径
在个性化编辑器中,检查路径,并使用架构的字段。 了解详情
CJMTL-010008-422
找不到{path}的命名空间
以可用的命名空间之一启动表达式:个人资料、受众、选件或上下文属性。 了解详情
CJMTL-010002-422
变量{variable}的类型不匹配。 类型应为{expectedType},但找到的是
使用消息中所示类型的变量,例如循环中的数组。 如果数值或布尔值存储为字符串,请将其转换为stringToNumber()或toBool()。 了解详情
CJMRT-010002-422
变量{variable}的类型不匹配。 应为: {expectedType}。 找到:
使用消息中所示类型的变量,例如循环中的数组。 如果数值或布尔值存储为字符串,请将其转换为stringToNumber()或toBool()。 了解详情
CJMRT-070007-422
变量{variable}应为{expected}。 找到{found}代替。
使用消息中所示类型的变量,或者将值转换为stringToNumber()或toBool()(如果存储为字符串)。 了解详情
CJMRT-070002-422
变量{variable}应为数组。
将变量替换为数组变量,或删除循环。 了解详情
CJMTL-010013-422
变量名{variableName}无效
重命名使用Let帮助程序定义的变量:名称以字母开头,仅使用字母和数字。 了解详情
CJMTL-010014-422
变量名{variableName}无效。 变量名称必须以字母开头,并且只包含字母数字字符。
重命名使用Let帮助程序定义的变量:名称以字母开头,仅使用字母和数字。 了解详情
CJMRT-070001-422
{start}超出范围。 变量{variable}大小为
使用小于消息中所示变量大小的起始位置。 了解详情
CJMRT-070005-422
表达式应为字符串值。 已找到:
输入由双引号括起来的字符串值,或将值转换为字符串。 了解详情

辅助程序 helpers

当帮助程序未知或使用缺少的参数调用时,会发生这些错误。

另请参阅辅助函数。

错误代码
消息
如何修复
CJMTL-010012-422
辅助函数无效
根据帮助程序列表检查帮助程序名称,并更正它。 了解详情
CJMTL-010003-422
没有为帮助程序{helper}定义输入参数
在消息中添加名为的帮助程序的输入参数。 了解详情
CJMTL-010009-422
辅助函数{helper}的参数不足。 未定义
将消息中名为的未定义参数添加到帮助程序。 了解详情
CJMRT-010003-422
没有为帮助程序定义参数:
在消息中添加名为的帮助程序的参数。 了解详情
CJMRT-070004-422
{helperName}的参数不足。 缺少参数
将消息中缺少的名为的参数添加到帮助程序。 了解详情

语法和内容验证 syntax

当您验证或发布包含带有语法错误的表达式的内容时,会发生这些错误。

另请参阅验证机制。

错误代码
消息
如何修复
CJMTL-010004-422
无效语法
检查方括号、引号和帮助程序语法中消息原因指向的位置,然后在个性化编辑器中单击​验证。 了解详情
CJMTL-010011-422
无效语法
检查消息指向的括号、引号和帮助程序语法,然后在个性化编辑器中单击​验证。 了解详情
CJMTL-010015-422
赋值语法无效。 表达式{expression}无效。
检查消息中命名的任务表达式的语法,包括括号和引号,然后在个性化编辑器中单击​验证。 了解详情
CJMRT-010004-422
无效的Handlebars语法
检查方括号、引号和帮助程序语法中消息原因指向的位置,然后在个性化编辑器中单击​验证。 了解详情
CJMRT-071011-400
发现语法错误
在个性化编辑器中单击​ 验证 ​以查找语法错误,然后检查括号、引号和帮助程序语法。 了解详情
CJMRT-130001-400
{channel}变体的字段{fieldName}的格式不正确
在变体的内容中打开消息中名为的字段,并修复其表达式。 了解详情
CJMRT-130004-400
{channel}变量的{fieldName}字段的{variable}变量格式不正确:位置:
打开消息中名为的字段,并将变量固定到显示的位置。 了解详情
CJMRT-071012-404
未找到{segmentId}的区段定义
将表达式中的受众替换为当前沙盒中存在的受众。 了解详情
CJMRT-130003-422
配置文件架构不包含渠道{channel}的必需字段
将该字段添加到用户档案架构,或在渠道配置中选择另一个字段。 了解详情
CJMRT-000069-400
HTML内容无效:
在Email Designer中打开内容检查,并修复它们检测到的HTML问题。 了解详情
CJMTL-010019-422
超过了{limit}字节的模板渲染大小限制。 请更新并重试。
减少内容或由表达式插入的数据,直到渲染的消息低于消息中显示的限制为止。 了解详情

URL参数加密密钥 encryption

在创建或使用加密密钥加密URL参数时,会发生这些错误。

另请参阅跟踪链接中的加密URL参数。

错误代码
消息
如何修复
CJMRT-081601-400
密钥必须为32字节(256位),但提供了{actualBytes}字节。 请将密钥更新为正确的长度,然后重试。
生成32字节(256位)的密钥,在base64中进行编码,然后在​密钥注册表 (管理 > 配置 > 管理)中再次创建它。 了解详情
CJMRT-081602-400
密钥不是base64编码的。 请以base64格式编码键并重试。
在base64中编码密钥(256位,32字节),然后在​ 密钥注册表 ​中再次创建它。 了解详情
CJMRT-081603-400
密钥名称只能包含字母、数字和连字符。 请更新密钥名称并重试。
仅使用字母、数字和连字符重命名键。 了解详情
CJMRT-070011-422
无法解析加密/签名密钥
检查加密帮助程序使用的密钥是否存在,以及当前沙盒的​ 密钥注册表 ​中是否具有​ 活动 ​状态。 了解详情
AI Knowledge Reference

This section contains structured knowledge intended to support interpretation, retrieval, and question answering related to this topic.

For complete understanding, this information should be combined with the documentation on this page. Neither source is intended to stand alone; the page describes the feature, while this section provides additional context that helps disambiguate terminology, intent, applicability, and constraints.

  • TL;DR: The page gives the cause and the fix for the personalization errors that Adobe Journey Optimizer returns when you validate or publish content with personalization expressions, or when you create an encryption key, grouped into four families: variables and paths, helpers, syntax and content validation, and URL parameter encryption keys.

Intents:

  • Know what to note and whom to contact when an error persists after the listed steps.

  • Identify an error from its code: the prefix (CJMTL or CJMRT), the error number, and the HTTP status.

  • Find why a field, a variable, a path, or a namespace in an expression is reported as not found, or as having the wrong type.

  • Fix an error on a helper that is not valid or that is called without enough parameters.

  • Fix a syntax error, a malformed field of a message variant, or an HTML content error found when you validate or publish content.

  • Fix an error returned when you create or use an encryption key to encrypt URL parameters.

Glossary:

  • CJMTL (product-specific): error code prefix for template rendering errors.
  • CJMRT (product-specific): error code prefix for runtime errors.
  • Error code: a prefix, followed by an error number and an HTTP status, for example CJMTL-010001-422.
  • Helper: named in an expression and called with parameters. The Let helper is used to define a variable.
  • Namespace: the page lists profile, audience, offers, and the contextual attributes as the available namespaces.

Guardrails:

  • An encryption key for URL parameters must be 256 bits (32 bytes) long and encoded in base64.
  • The name of an encryption key can contain only letters, numbers, and hyphens.
  • The name of a variable defined with the Let helper must start with a letter and can contain only alphanumeric characters (letters and numbers).
  • Template rendering has a size limit: when the rendered message is larger than the limit, error CJMTL-010019-422 is returned, and the message shows the limit in bytes.

Terminology:

  • Canonical name: Personalization errors
  • Do not confuse: CJMTL (template rendering) ≠ CJMRT (runtime). The same kind of problem can return a code with either prefix, for example a variable that is not found returns CJMTL-010001-422 or CJMRT-010001-422.

FAQ:

  • Q: What do I do if the error persists after the listed steps? — Note the error code, the message, the request ID, and the campaign, journey, or activity concerned, and keep the logs or screenshots. For a permission or access error, contact your administrator; otherwise contact Adobe Support with these details. For all the support options, see the Getting support section of the error codes reference.

  • Q: What do the prefixes CJMTL and CJMRT mean? — CJMTL is for template rendering and CJMRT is for runtime. The prefix is followed by an error number and an HTTP status.

  • Q: Why do I get “Path {variable} not found” or “{variable} not found”? — For CJMTL-010001-422 (“{variable} not found”) and CJMRT-010001-422 (“Path {variable} not found”), the variable or path named in the message is not found. In the personalization editor, check the name and path of the variable, and replace it with a field defined in the schema. CJMRT-070003-422 (variable not found in the execution context) and CJMRT-070008-422 (path not supported) have their own causes, listed under Troubleshooting.

  • Q: Why do I get a type mismatch? — For CJMTL-010002-422 and CJMRT-010002-422, use a variable of the type shown in the message, for example an array in a loop. If a numeric or boolean value is stored as a string, convert it with stringToNumber() or toBool(). For CJMRT-070007-422, use a variable of the type shown in the message, or convert the value with stringToNumber() or toBool() if it is stored as a string. For CJMRT-070002-422, the variable is expected to be an array: replace it with an array variable, or remove the loop.

  • Q: Why is the name of my Let variable rejected (CJMTL-010013-422, CJMTL-010014-422)? — The name is not valid. Start the name with a letter and use only letters and numbers.

  • Q: What do I do when I get “Syntax errors found” or “Invalid syntax”? — For CJMTL-010004-422, CJMTL-010011-422, and CJMRT-010004-422 (handlebars syntax), check the brackets, the quotes, and the helper syntax where the reason or the message points, then click Validate in the personalization editor. For CJMTL-010015-422, check the syntax of the assignment expression named in the message, including the brackets and the quotes, then click Validate. For CJMRT-071011-400 (“Syntax errors found”), click Validate in the personalization editor to find the syntax errors, then check the brackets, the quotes, and the helper syntax.

  • Q: Why is my encryption key refused? — The key must be 256 bits (32 bytes) long and encoded in base64 (CJMRT-081601-400, CJMRT-081602-400): generate a key of 32 bytes, encode it in base64, and create it again in the Key registry (Administration > Configurations > Manage). The key name can contain only letters, numbers, and hyphens (CJMRT-081603-400): rename the key.

  • Q: What does “Encryption / Signing keys could not be resolved” mean (CJMRT-070011-422)? — The encryption or signing keys could not be resolved. Check that the key used by the encryption helper exists and has the Active status in the Key registry of the current sandbox.

Troubleshooting:

  • Variables and paths: an expression refers to a field, a variable, or a namespace that cannot be resolved, or has the wrong type.

    • “{variable} not found” (CJMTL-010001-422) and “Path {variable} not found” (CJMRT-010001-422): the variable or path is not found. In the personalization editor, check the name and path of the variable, and replace it with a field defined in the schema.
    • “Variable {variable} not found in the execution context.” (CJMRT-070003-422): the variable is not found in the execution context. In the personalization editor, check the name of the variable, and use a field of the schema.
    • “Path {path} is not supported” (CJMRT-070008-422): the path is not supported. Check the path in the personalization editor, and use a field of the schema.
    • “Namespace not found for {path}” (CJMTL-010008-422): the namespace is not found. Start the expression with one of the available namespaces: profile, audience, offers, or the contextual attributes.
    • Type mismatch (CJMTL-010002-422, CJMRT-010002-422, CJMRT-070007-422): use a variable of the type shown in the message, for example an array in a loop. If a numeric or boolean value is stored as a string, convert it with stringToNumber() or toBool().
    • “Variable {variable} is expected to be an array.” (CJMRT-070002-422): the variable is expected to be an array. Replace it with an array variable, or remove the loop.
    • Invalid variable name (CJMTL-010013-422, CJMTL-010014-422): see the guardrail on Let variable names.
    • “{start} is out of bounds. Variable {variable} size is {length}” (CJMRT-070001-422): the start position is out of bounds. Use a start position smaller than the size of the variable shown in the message.
    • “The expression should be a String value. Found : {expression}” (CJMRT-070005-422): the expression must be a string value. Enter a string value surrounded by double quotes, or convert the value to a string.
  • Helpers: a helper is not known or is called with missing parameters.

    • “Invalid helper {command}” (CJMTL-010012-422): the helper is not valid. Check its name in the list of helpers.
    • “Input parameters not defined for helper {helper}” (CJMTL-010003-422) and “Params not defined for helper: {helper}” (CJMRT-010003-422): the helper is called without its parameters. Add the parameters of the helper.
    • “Insufficient parameters for helper {helper}. Undefined {param}” (CJMTL-010009-422): the helper has too few parameters. Add the undefined parameter named in the message.
    • “Insufficient arguments for {helperName}. Missing argument {missingArgument}” (CJMRT-070004-422): the helper has too few arguments. Add the missing argument named in the message.
  • Syntax and content validation: errors when you validate or publish content that has an expression with a syntax error.

    • Syntax error (CJMTL-010004-422, CJMTL-010011-422, CJMTL-010015-422, CJMRT-010004-422, CJMRT-071011-400): check the brackets, the quotes, and the helper syntax, then click Validate in the personalization editor (see the FAQ for the per-code fix).
    • “The field {fieldName} of {channel} variant is malformed” (CJMRT-130001-400): a field of the message variant is malformed. Open the field named in the message and fix its expression.
    • “The {variable} variable of the field {fieldName} of {channel} variant is malformed: Position: {position}” (CJMRT-130004-400): a variable of a field of the message variant is malformed. Open the field named in the message and fix the variable at the position shown.
    • “No segment definition found for {segmentId}” (CJMRT-071012-404): the audience (segment definition) used in the expression cannot be found. Replace the audience in the expression with one that exists in the current sandbox.
    • “Profile schema does not contain the required field: {fieldName} for channel: {channel}” (CJMRT-130003-422): the profile schema does not contain the field that the channel configuration needs. Add the field to the schema, or select another field in the channel configuration.
    • “The HTML content is not valid: {errorMessage}” (CJMRT-000069-400): open the content checks in the Email Designer, and fix the HTML issues they detect.
    • “The template rendering size limit of {limit} bytes is exceeded. Please update and try again.” (CJMTL-010019-422): the rendered message is larger than the size limit shown in the message. Reduce the content, or the data inserted by the expressions, until the rendered message is under the limit shown in the message.
  • URL parameter encryption keys: errors when you create or use an encryption key to encrypt URL parameters (CJMRT-081601-400, CJMRT-081602-400, CJMRT-081603-400, CJMRT-070011-422): see the guardrails and the FAQ.

Related pages:

  • Validation mechanisms for expressions: Validation mechanisms (personalization/personalization-build-expressions.md)
  • Available namespaces: Available namespaces (personalization/personalization-syntax.md)
  • Helper functions: Helper functions (personalization/functions/helpers.md)
  • Creating and managing encryption keys: Encrypt URL parameters in tracking links (personalization/url-parameter-encryption.md)
  • Other error code prefixes: Error codes reference (building-journeys/error-codes-reference.md)
  • Support options when an error persists: Getting support (building-journeys/error-codes-reference.md)
  • Contacting Adobe Support: Support ticket guidelines (start/user-interface.md)
recommendation-more-help
journey-optimizer-help