Expand my Community achievements bar.

Join us for the Adobe Journey Optimizer Community Q&A Coffee Break on 28th February at 8 am PT with Ariel Sultan, Daniel Wright, Josee Haeley and Rohit Basuri.
SOLVED

Data element "default value" in Mobile Core Modify Data rule is not interpreted

Avatar

Level 4

Hi,

 

I'm capturing a CollectPii call from the (AEP) Mobile SDK in Experience Platform Data Collection. In the rule I use a Modify Data action to transform the context data from the call into an XDM for AEP.

In the input context some fields may be missing, so I did set up default values for those data elements that might be missing.

 

However in the generated XDM schema, the default values are not taken into account:
e.g. snippet from the modify data JSON:
"xdm": {
    "person": {
        "name": {
           "lastName": "{%%pii_lastname%%}",
           "firstName": "{%%pii_firstname%%}"
           }
         },... 

data element "pii_firstname" set up as a Context data field matching "firstname", default value set to "-"

Griffon log (no firstname field in contextdata):

"contextdata": {
        "country": "Belgium",
        "lastname": "Test",
        "language": "be_nl",
...
"xdm": {
        "homeAddress": {
          "country": "Belgium"
        },
        "preferredLanguage": "be-nl",
        "person": {
          "name": {
            "firstName": "",
            "lastName": "Test"
          }
        }

 

Anyone any idea if I did setup something wrong, or if I misinterpreted the "default" value processing?

 

1 Accepted Solution

Avatar

Correct answer by
Level 4

Hi @stefanm38281801,

 

Instead of setting default value to '-' can you try setting it to 'NA' or some other string but don't set special characters alone as default value.

 

Thanks,

Charles

 

View solution in original post

4 Replies

Avatar

Correct answer by
Level 4

Hi @stefanm38281801,

 

Instead of setting default value to '-' can you try setting it to 'NA' or some other string but don't set special characters alone as default value.

 

Thanks,

Charles

 

Hi Charles,

 

doesn't make any difference. default value is not picked up.

 

Stefan