How to create a trait capturing a blank value of a key-value pair? | Community
Skip to main content
Level 6
March 17, 2021
Solved

How to create a trait capturing a blank value of a key-value pair?

  • March 17, 2021
  • 2 replies
  • 3277 views

Hi there,

 

Just wondering how do I create an onboarded trait to capture a key-value pair where the value is NULL or empty? I tried doing that but AAM gives me a pop-up that says "The Value cannot be blank" 

 

Thanks!

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Praupadh

Hi Akwankl,

 

You can create Traits based on Null & NA values but AAM won't allow you to create a blank Trait expression so while onboarding data into AAM make sure instead of onboarding an empty value please use NULL or NA values.

 

Thank You

Prabhat Upadhyay

2 replies

PraupadhAdobe EmployeeAccepted solution
Adobe Employee
March 17, 2021

Hi Akwankl,

 

You can create Traits based on Null & NA values but AAM won't allow you to create a blank Trait expression so while onboarding data into AAM make sure instead of onboarding an empty value please use NULL or NA values.

 

Thank You

Prabhat Upadhyay

Level 2
April 6, 2021
Adobe Employee
March 17, 2021

Hi @akwankl ,

 

You can use below mentioned steps to create trait which capture null value.

1.In the UI, create a trait with signal = “value”, in the expression builder;  
2.Save the trait;  
3.Edit the trait;  
4.Go to trait expression -> code view;  
5.Remove “value” and replace it with “”;  
6.Save the trait without going back to the expression builder;  
7.You'll see an error message: The Value cannot be blank. Press OK to dismiss it.

 

Regards,

Shweta

akwanklAuthor
Level 6
March 17, 2021

Hi @shweta_singh 

 
This is an interesting workaround. I tried it and now whenever I visit this trait page the "Value cannot be blank" always pops up. I also don't see the key="" in the trait expression, is this the expected behaviour?
 
Thanks!