Expand my Community achievements bar.

Join us on September 25th for a must-attend webinar featuring Adobe Experience Maker winner Anish Raul. Discover how leading enterprises are adopting AI into their workflows securely, responsibly, and at scale.
SOLVED

Data type mismatch in condition with @readAudience enrichment reference

Avatar

Level 5

Hi,

 

I created an audience with enrichment data. One field is type "string", the other field is "integer".

 

When I create a condition rule on the string field, AJO correctly validates the syntax and the flow.

 

However, when I create a condition rule on the integer, with a typecast, the condition validates, but the flow complaints about a type mismatch error:
Condition on integer field (validates):

(toInteger(@readAudience{ProfileFieldGroup.nr_travels})) >= 6

Flow error:

stefanm38281801_0-1710943857902.png

 

Anyone any idea on what's wrong?
FYI, the condition must be integer comparison, I can't use string (lexicographic) here.

1 Accepted Solution

Avatar

Correct answer by
Level 5

Hi,

 

thanks, just tried it; the syntax that does work is

 

#{ExperiencePlatform.ProfileFieldGroup.profile._tenant.audienceEnrichment.entry('AO').audienceEnrichmentChildMap.entry('<audienceId>').nr_travels}>= 6

no 'tenant' part before the nr_travels.

 

the <audienceId> being the UUID of the audience.

 

Stefan 

View solution in original post

3 Replies

Avatar

Employee Advisor

Can you try it on the following lines and see if that works ?

 

#{ExperiencePlatform.ProfileFieldGroup.profile._tenant.audienceEnrichment.entry('AO').audienceEnrichmentChildMap.entry('<audienceId>').tenant_nr_travels}>= 6

 

Avatar

Correct answer by
Level 5

Hi,

 

thanks, just tried it; the syntax that does work is

 

#{ExperiencePlatform.ProfileFieldGroup.profile._tenant.audienceEnrichment.entry('AO').audienceEnrichmentChildMap.entry('<audienceId>').nr_travels}>= 6

no 'tenant' part before the nr_travels.

 

the <audienceId> being the UUID of the audience.

 

Stefan 

Avatar

Employee

What is the ('AO') for in the following? 

#{ExperiencePlatform.ProfileFieldGroup.profile._tenant.audienceEnrichment.entry('AO').audienceEnrichmentChildMap.entry('<audienceId>').tenant_nr_travels}>= 6