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
  • 3259 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
March 24, 2021

Hi, I have similar question. we have onboarded trait something like this "couponcode="AAA". And, in future more often we get new coupon code value from our Data Lake to AAM(in an automated way). So, there is no way for AAM team to know when new coupon code value send to AAM but as per my understanding, we need to have the trait in place upfront before we send the data to AAM. If not, AAM will keep it in the signals and not stored those values in the trait. If we need to create the onboarded trait from the signal then we need to work with Adobe team(cost involved) also there is a limitation of only getting last 30 days maximum data. Is there any options/suggestions to handle this without spending additional cost?

 

Thanks in advance.

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!