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=uriThen open one with GET {TenantURL}/entities/<entityId> and check the attribute:
valueis the variant andlookupErrorstarts with1003: the variant isn't mapped.valueis the expected value andlookupRawValueis the variant: the mapping was added later.
Solution
- If the variant isn't mapped, add it in RDM as a value for the source that sends it, under the expected lookup code.
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.
Comments
Please sign in to leave a comment.