Why does the address cleanser return an address in the wrong country, such as the United States?

Problem

  • A profile shows a cleansed address in the tenant's default country, usually the United States, although the source sent an address in another country.
  • The source's Country value has a lookupError that starts with 1003: RDM canonical value mapping not found.
  • Re-cleansing, even with forceCleansing=true, returns the same address.

Cause

The source sent a country spelling that isn't mapped in RDM for that source, for example Czechia when only Czech Republic is mapped. The value isn't resolved, and an unresolved lookup value is passed to the cleanser as null.

When no country reaches Loqate, it uses the tenant's default country, loqateDefaultCountry (USA if it isn't set), and matches the street, city, or postal code against that country's reference data. The address can even come back Verified. Re-cleansing sends the same unresolved value, so the result doesn't change until the mapping is added.

Diagnose

  1. Get the profile with GET https://<environment>.reltio.com/reltio/api/<tenantId>/entities/<entityId>. The cleansed address is in the default country, and the Country value has no lookupCode and a 1003 lookupError.
  2. In the RDM UI, open the country lookup type's Mapping tab. The source's spelling is listed under Unmapped Values.

Solution

  1. In RDM, map the spelling to the correct country for that source. In the RDM UI, drag it from Unmapped Values onto the country on the Mapping tab, and save.
  2. Wait about 10 minutes, because the tenant can keep using the earlier mapping from its cache for up to 10 minutes.
  3. Force re-cleanse the affected profiles:
POST https://<environment>.reltio.com/reltio/api/<tenantId>/cleanse?entityType=Location&forceCleansing=true
Authorization: Bearer <access_token>
Content-Type: application/json

["entities/<entityId1>", "entities/<entityId2>"]

Changing loqateDefaultCountry doesn't fix this, because it applies to every address that arrives without a country.

Verify

The Country value has a lookupCode and no lookupError, and the address no longer shows values from the default country.

 

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

Comments

0 comments

Please sign in to leave a comment.