Why does a lookup value resolve when the source has no RDM mapping for it?

Question

A source sends a value for an RDM lookup attribute, but the lookup type has no mapping for that source, or doesn't list the source at all. The profile still shows the correct canonical value, no RDM lookup error appears, and nothing shows up under Unmapped Values in RDM. How is the value resolved?

Answer

This is expected. When RDM transcodes a source value (translates it to its canonical value), it checks the lookup type in the following order and stops at the first match:

  1. A source mapping code in the source that sent the value.
  2. A source mapping value in the same source.
  3. A canonical code of the lookup type (the standard code of a lookup row, which every source maps to).

A value that matches a canonical code is resolved by the third check, even when its source has no mappings. Because the lookup succeeds, no lookup error is created. RDM records a value from MDM as unmapped only when MDM reports a lookup error for it, so nothing is recorded as unmapped.

Why a value in a different case also resolves

If the RDM tenant has case-insensitive transcoding turned on (the caseInsensitiveTranscoding property in the RDM tenant configuration), RDM ignores letter case when it transcodes. For example, with a lookup type PhoneType that has the canonical code MOBILE:

  • SourceA sends MOBILE, which matches the canonical code exactly.
  • SourceB sends Mobile, which matches it apart from letter case.

Both resolve to MOBILE without a source mapping. A different spelling, such as MOB, still needs a source mapping; without one, it's reported as a lookup error.

How to confirm it

  1. In RDM, open the lookup type's Mapping page. The source either has no column, or has no value in the row the profile resolved to.
  2. Transcode the value for that source. If the response has "success": true and a code that matches the sent value (apart from letter case), then together with step 1 this shows that the third check resolved it. <rdm-service> is your RDM service host:
POST https://<rdm-service>/transcode/<rdmTenantId>
Authorization: Bearer <access_token>
Content-Type: application/json

[ { "values": { "rdm/lookupTypes/PhoneType": [ { "type": "rdm/lookupTypes/PhoneType", "value": "Mobile", "source": "rdm/sources/SourceB" } ] } } ]

How to make the mapping visible

RDM has no documented setting that turns off the canonical-code check or reports values that it resolves. If you want every source value to appear as a mapping, add it explicitly: on the lookup type's Mapping page, click + next to the Canonical value column header, select the source, enter the value it sends in the matching row, and save. The profile keeps the same canonical value, but RDM now resolves it through the source mapping.

Turning off case-insensitive transcoding isn't a substitute. Values that differ only in case would fail with lookup errors instead of resolving, exact matches would still resolve through the canonical code, and the setting applies to every lookup type in the RDM tenant.

 

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

Comments

0 comments

Article is closed for comments.