Expand my Community achievements bar.

Get ready! An upgraded Experience League Community experience is coming in January.
Submissions are now open for the 2026 Adobe Experience Maker Awards

Mark Solution

This conversation has been locked due to inactivity. Please create a new post.

SOLVED

dynamic tokens in offer throwing an error

Avatar

Level 1

Hey guys,

 

I am trying to access the customer attributes directly into offer as referred in this Post.

Following is the code snippet that I have used.

var a = "${crs.personalized experience.blog page visitors}"
console.log('offer ran!')

console.log(a)

 

When this block executes error is thrown in with status 500

Network call - status: 500, message: "An error has occurred while processing your request, please try again later"

Is this causing because of the white spaces in attribute name? or I have missed something. 
I am new to Target, pls point me to right documentation or share your thoughts.

 

 

1 Accepted Solution

Avatar

Correct answer by
Level 1

Update: I was able to resolve this. Issue was caused by white spaces in attribute

View solution in original post

1 Reply

Avatar

Correct answer by
Level 1

Update: I was able to resolve this. Issue was caused by white spaces in attribute