Why does Automatic Unmerge leave some profiles merged after the match rules change?

Problem

  • Automatic unmerge is enabled for an entity type ("unmerge": { "enabled": true } in the L3 configuration), and its automatic match rules were changed so that some contributors no longer match.
  • After the Automatic Unmerge task runs, most over-merged profiles split, but some still hold contributors that should be separate.
  • _verifyUnmerge returns "unmerge": false for these profiles. Running the task again, reindexing, or rebuilding match tables doesn't split them.

Cause

This is expected behavior. A contributor is one of the source profiles merged into a consolidated profile. Automatic unmerge evaluates a profile when a contributor's source attributes are updated. After a rule change, profiles that aren't updated are evaluated only when you run the Automatic Unmerge task (batchUnmergeEntities).

The task releases a contributor only if it fails every automatic match rule in two phases: against each other contributor, and against the remaining contributors as a group, using the surviving values of the consolidated profile. If any automatic rule still matches, the contributor stays merged. The check runs in memory against the current rules, so while a rule still matches, reindexing or rebuilding match tables doesn't change the result.

So a profile stays merged when its contributors still match each other. For example, a profile holds contributors A and B with one <Attribute> value and C and D with another, and the rules now require the same <Attribute> value. A no longer matches C or D, but A still matches B, and C still matches D. No contributor fails both phases, so none is released. A profile with only one contributor that has a different value does split, because that contributor matches neither the others nor the group.

Manually merged profiles also stay merged while retainManualMerges is true (the default), as do merges covered by retainMergeConditions. This article covers profiles where neither applies.

Diagnose

Verify the profile against the automatic match rules. {TenantURL} is https://<environment>.reltio.com/reltio/api/<tenantId>.

POST {TenantURL}/entities/_verifyUnmerge
Authorization: Bearer <access_token>
Content-Type: application/json

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

This issue applies when unmerge is false and, in details.contributors, the contributors you expect to separate show unmerge: false with a matchGroups list. matchGroups names the automatic rules that still keep the contributor merged. To check one contributor, add "contributors": ["entities/<contributorId>"] to the body.

Solution

Test on one profile first.

  1. If the contributors that still match shouldn't match, tighten the rules listed in matchGroups. Then run the Automatic Unmerge task again for the entity type or the affected profiles.
  2. If those contributors belong together but not with the rest of the profile, automatic unmerge won't separate them. Unmerge each contributor that should leave; it becomes a standalone profile again. Use a contributor from the contributors list other than the profile itself:
POST {TenantURL}/entities/<entityId>/_unmerge?contributorURI=entities/<contributorId>
Authorization: Bearer <access_token>

You don't always need to unmerge every contributor. After you unmerge one contributor of a matching pair, the other is evaluated again against the smaller group, and it's automatically unmerged if no automatic rule matches it in either phase. To evaluate the profile right away, run POST {TenantURL}/batchUnmergeEntities?uriList=entities/<entityId>&readOnly=false. With the default readOnly=true, the task only reports what it would unmerge.

Verify

Repeat the _verifyUnmerge request on the profile. The separated contributors are no longer listed in contributors, and each one is now its own profile.

 

 

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

Comments

0 comments

Article is closed for comments.