Why does _verifyMatches show a match on an attribute that differs between two merged profiles?

Problem

  • You run _verifyMatches for two entity IDs to find out why they merged, and the match rules show a match (matchedByDocuments is true).
  • An attribute shows "match": true even though the two original records had different values for it.
  • With show=full, matchDocuments.first and matchDocuments.second are identical, and versions.first and versions.second show the same EntityVersion.

Cause

When two profiles merge, the surviving profile (the winner) absorbs the attributes and crosswalks of the merged-away profile (the loser). After the merge, the merged profile can be accessed through the API with either entity ID.

If one of the IDs you send to _verifyMatches was already merged into the other, both URIs point to the same merged profile, so Reltio compares that profile with itself. Each rule compares the profile's values with the same values, so the rules generally match, even on attributes that differed between the original records. The response describes the merged profile as it is now. It doesn't show how the original records compared, so it doesn't explain the merge.

Diagnose

Get the merge tree for one of the IDs. {TenantURL} is https://<environment>.reltio.com/reltio/api/<tenantId>.

GET {TenantURL}/entities/<entityId1>/_crosswalkTree
Authorization: Bearer <access_token>

This issue applies when a merges entry has entities/<entityId2> in its losers list. If it doesn't, repeat the request with <entityId2> and look for <entityId1>. In the steps below, <entityId1> is the ID whose merge tree lists the other ID as a loser.

Solution

  1. In that merges entry, check mergeReason (for example Merge on the fly, Merge by hand, or Merge by crosswalks), mergeRules (the label of the match rule that applied, if any), time, and user. A merge that happened before a rule change was made under the rules in effect at that time.
  2. To check whether each original record still matches under your current automatic match rules, run _verifyUnmerge for the merged profile:
POST {TenantURL}/entities/_verifyUnmerge
Authorization: Bearer <access_token>
Content-Type: application/json

{ "entityUri": "entities/<entityId1>", "show": "full" }

For each record under details.contributors, unmerge is true if it should be unmerged, and matchGroups lists the match rules that still validate the merge.

  1. To test two original records against specific rules, send _verifyMatches with each record's type, attributes, and crosswalks as inline entity JSON in first and second, instead of entity URIs. Use the rules parameter to select rules, and check matchedByDocuments for each rule.

Verify

The merge tree entry shows why the records merged, and _verifyUnmerge shows for each original record either the rules that keep it merged (matchGroups) or "unmerge": true.

 

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

Comments

0 comments

Article is closed for comments.