SAP Knowledge Base Article - Public

3647044 - Attribute value code not returned in custom dictionary

Symptom

  • When a custom dictionary is used, the attribute value code for user custom fields returns empty.
  • This issue does not occur when the value code matches the value.

Environment

SAP CPQ 

Reproducing the Issue

  1. To reproduce this issue, it is important to have a user custom field sourcing an attribute. The attribute value should be different then the attribute value code.
  2. Maintain a translation for the attribute value code in any dictionary
  3. Set user dictionary as a custom dictionary (inheriting the same dictionary as mentioned in step 2)
  4. Running the below code returns no value:
  5. `value = TagParserQuote.ParseString("<*CTX ( Visitor.CustomField("CustomFieldName").AttrValueCode )*>")`

Cause

When an attribute value is translated in the system dictionary (from which the custom dictionary inherits), and the translated display value does not match the original display value, the attribute value code is lost.

Resolution

Maintain translations for the attribute values in the system dictionary inherited by the custom dictionary. Ensure that translations are identical to the original display values.

Keywords

Attribute Value Code, Custom Dictionary, Attribute Translation, User Custom Field, CPQ , KBA , CEC-SAL-CPQ , Sales Cloud CPQ , Known Error

Product

SAP CPQ all versions