Problem
- You run
_verifyMatchesfor two entity IDs to find out why they merged, and the match rules show a match (matchedByDocumentsistrue). - An attribute shows
"match": trueeven though the two original records had different values for it. - With
show=full,matchDocuments.firstandmatchDocuments.secondare identical, andversions.firstandversions.secondshow the sameEntityVersion.
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
- In that
mergesentry, checkmergeReason(for exampleMerge on the fly,Merge by hand, orMerge by crosswalks),mergeRules(the label of the match rule that applied, if any),time, anduser. A merge that happened before a rule change was made under the rules in effect at that time. - To check whether each original record still matches under your current automatic match rules, run
_verifyUnmergefor 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.
- To test two original records against specific rules, send
_verifyMatcheswith each record'stype,attributes, andcrosswalksas inline entity JSON infirstandsecond, instead of entity URIs. Use therulesparameter to select rules, and checkmatchedByDocumentsfor 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.
Comments
Article is closed for comments.