Why Are Nested Attributes Not Being Cleansed?

Question:

Why are the nested attributes not being cleansed after adding a new string cleanser?

Why is the first nested attribute being cleansed and not the rest of the OV values?

I just added a new string cleanser, why are the nested attributes not being cleansed?

Answer: 

Please make sure that the InputMapping and the OutputMapping is correct:

"mapping": {
"inputMapping": [
{
"attribute": "configuration/entityTypes/Contacts/attributes/companies/attributes/name",
"mandatory": true,
"allValues": false,
"cleanseAttribute": "name"
}
],
"outputMapping": [
{
"attribute": "configuration/entityTypes/Contacts/attributes/companies/attributes/name",
"mandatory": true,
"allValues": false,
"cleanseAttribute": "name"
}
]
}

Please also ensure that you have 

"nestedAttributeToCleanse": "configuration/entityTypes/Contacts/attributes/companies"

 

The whole thing should look like this:

{
"uri": "configuration/entityTypes/Contacts/cleanse/infos/companyNameStringFunctionCleanser",
"useInCleansing": true,
"sequence": [
{
"chain": [
{
"cleanseFunction": "StringFunctionCleanser",
"resultingValuesSourceTypeUri": "configuration/sources/ReltioCleanser",
"proceedOnSuccess": true,
"proceedOnFailure": true,
"mapping": {
"inputMapping": [
{
"attribute": "configuration/entityTypes/Contacts/attributes/companies/attributes/name",
"mandatory": true,
"allValues": false,
"cleanseAttribute": "name"
}
],
"outputMapping": [
{
"attribute": "configuration/entityTypes/Contacts/attributes/companies/attributes/name",
"mandatory": true,
"allValues": false,
"cleanseAttribute": "name"
}
]
},
"params": {
"casing": "Upper",
"trim": true
}
}
]
}
],
"nestedAttributeToCleanse": "configuration/entityTypes/Contacts/attributes/companies"
},

 

 

Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.