Why does Advanced Search show two versions of the same lookup value that differ only in case?

Problem

  • Advanced Search lists two values for an RDM lookup attribute that differ only in case: the expected canonical value and a variant of it.
  • Selecting either value returns profiles from both, because the Equals filter ignores case. The profile page and exports can still show the expected value.
  • Reindexing, including a full-tenant reindex with enableSeparateIndexing=true, doesn't remove the variant.

Cause

RDM maps values separately for each source, and a value that differs only in case needs its own source mapping. The search index uses the lookup result stored when the profile was last saved. The variant stays in the index in one of two cases:

  • The variant isn't mapped. The value is kept as received, with the error 1003: RDM canonical value mapping not found for value [<Variant>] and source [<Source>].
  • The mapping was added after the profiles were saved. The profile page and exports show the expected value, but the index keeps the earlier, unresolved result.

A reindex rebuilds the index from the stored result, so it doesn't change either case.

Diagnose

Find the affected profiles with a case-sensitive filter:

GET {TenantURL}/entities?filter=equalsCaseSensitive(attributes.<Attribute>,'<Variant>')&select=uri

Then open one with GET {TenantURL}/entities/<entityId> and check the attribute:

  • value is the variant and lookupError starts with 1003: the variant isn't mapped.
  • value is the expected value and lookupRawValue is the variant: the mapping was added later.

Solution

  1. If the variant isn't mapped, add it in RDM as a value for the source that sends it, under the expected lookup code.
  2. Run the Reload Lookup Data task for the affected profiles:

     POST {TenantURL}/reloadLookups
     Content-Type: application/json
    
     { "uris": [ "entities/<entityId1>", "entities/<entityId2>" ] }

You don't need to run a reindex.

Verify

After the task completes, Advanced Search shows only the expected value, and its count includes all the affected profiles.

 

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

Comments

0 comments

Please sign in to leave a comment.