Expand my Community achievements bar.

Adobe Journey Optimizer Community Lens 6th edition is out.
SOLVED

Data type mismatch in condition with @readAudience enrichment reference

Avatar

Level 4

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 4

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

2 Replies

Avatar

Employee

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 4

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