Data element "default value" in Mobile Core Modify Data rule is not interpreted | Community
Skip to main content
New Participant
September 12, 2022
Solved

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

  • September 12, 2022
  • 1 reply
  • 1527 views

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?

 

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 Charles_Thirupathi

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

 

1 reply

Charles_Thirupathi
Charles_ThirupathiAccepted solution
New Participant
September 21, 2022

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

 

New Participant
September 26, 2022

Hi Charles,

 

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

 

Stefan

NimashaJain
Employee
October 13, 2022

Did you get the solution?