Expandir minha barra de realizações na Comunidade.

Submissions are now open for the 2026 Adobe Experience Maker Awards.
SOLUCIONADO

Perform a conditional within an HTML

Avatar

Level 2

Is it possible to perform a conditional within an HTML, using a field from an import entity, as in the example below?

It is showing an error for me.

 

{%#if profile._cogna.audienceEnrichment.CustomerAudienceUpload.2d643823-3861-4897-a603-03806d6d5651.qtd_disciplina = "1"%}
 
This is the error:
 
Invalid syntax Error in parsing PQL expression "profile._cogna.audienceEnrichment.CustomerAudienceUpload.2d643823-3861-4897-a603-03806d6d5651.qtd_disciplina = "1"": line 1:56 mismatched input '.2' expecting {<EOF>, '*', '/', '%', '+', '-', '(', '.', '[', '>', '>=', '<', '<=', '!=', '?:', '=', And, Or, Occurs, In, Like, Matches, 'notIn'}. Error beginning at position: Line 27, Character 8
1 Solução aceita

Avatar

Resposta correta de
Community Advisor

@Raul_Albuquerq Alright. It's still throwing an error. Try with the option "insert with the fallback text" from one of the enrichment attributes; still, it will throw an error. It's not working with the if conditions either.

Refer to the attached screenshot. 

I would suggest opening a support ticket with Adobe.

Thanks, Sathees

Ver solução na publicação original

7 Respostas

Avatar

Community Advisor

@Raul_Albuquerq Looking at the error reference to custom audience upload through CSV throwing error. Validate if there have been any updates to audience upload. If you have the reference correctly it should work like the below after validation,

Screenshot 2025-05-05 at 10.18.12 PM.png

Thanks, Sathees

Avatar

Level 2

Hi SatheeskannaK!

 

It didn't work. Do you believe that is because the audience is not evaluated yet?

Avatar

Community Advisor

What's the audience status either processing or published? As long as audience status becomes published you should be able to reference that in the journey and personalization functions.

Thanks, Sathees

Avatar

Level 2

The audience was published, but this was done after the diary evaluate process in the sandbox. So, there is no count on it yet.

Avatar

Resposta correta de
Community Advisor

@Raul_Albuquerq Alright. It's still throwing an error. Try with the option "insert with the fallback text" from one of the enrichment attributes; still, it will throw an error. It's not working with the if conditions either.

Refer to the attached screenshot. 

I would suggest opening a support ticket with Adobe.

Thanks, Sathees

Avatar

Level 8

Hi @Raul_Albuquerq,

I can see you are using = instead of == in your syntax.

Please use like below and try it once

{%#if profile._cogna.audienceEnrichment.CustomerAudienceUpload.2d643823-3861-4897-a603-03806d6d5651.qtd_disciplina == "1"%}

Avatar

Level 2

Hi, AnkitJasani29!

 

It didn't work. Do you believe that is because the audience is not evaluated yer?