Data type mismatch in condition with @readAudience enrichment reference | Community
Skip to main content
Level 4
March 20, 2024
Solved

Data type mismatch in condition with @readAudience enrichment reference

  • March 20, 2024
  • 1 reply
  • 779 views

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:

 

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

Best answer by stefanm38281801

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 

1 reply

Mohan_Dugganab
Adobe Employee
Adobe Employee
March 22, 2024

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

 

Adobe Employee
June 12, 2025

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

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