@IamCGK
Error in parsing PQL expression "context.journey.actions.3826ab4b-218b-476a-829b-fc07fc7790d3-1753790791486-1"...
is caused by the fact that contextual attributes with hyphens and numbers in their keys (like 3826ab4b-218b-476a-829b-fc07fc7790d3-1753790791486-1
) cannot be referenced directly in PQL expressions or variable definitions using the dot .
notation. This limitation is due to PQL’s identifier syntax—it expects keys not to start with a number or contain hyphens unless bracket notation is used.
Correct way to reference such keys
To access values for keys containing hyphens, you must use bracket notation. Try referencing your contextual attribute like this: {% let contextVar = context.journey.actions["3826ab4b-218b-476a-829b-fc07fc7790d3-1753790791486-1"] %}
For nested attributes, continue with bracket notation:
{% let products = context.journey.actions["3826ab4b-218b-476a-829b-fc07fc7790d3-1753790791486-1"].data.products.products %}
Contextual attributes cannot always be stored as variables if their key naming violates identifier rules .