Applies to
- Entity types that use automatic match rules with merge on the fly enabled (
matchBeforeCreateistrueon the entity type, or merge on the fly is enabled by the tenant-level match strategy). - Integrations that create a record that's expected to merge into an existing profile right away. For example, a source sends the Reltio ID of the existing profile in an attribute, and an automatic rule matches on that attribute.
- Downstream processes that act on a new record if it isn't merged within a fixed time, such as a cleanup job that deletes records that are still unmerged after one minute.
Problem
- Most new records that match an existing profile by an automatic rule merge as soon as they're created. Some don't. They're saved as separate profiles and merge later.
- For the records that merge later, the crosswalk tree shows the merge reason
Merges found by background merge processinstead ofMerge on the fly, and anEntity Createevent is published for the new record. - A downstream process that expects the merge within a fixed time deletes or flags the record before the background merge happens.
- The match rule itself is correct.
_verifyMatchesconfirms that the two profiles match.
Cause
Merge on the fly is an optimization, not a guarantee. When a record is posted with no crosswalk that already exists in the tenant, Reltio may match and merge it during the create call, without first saving it as a separate profile, but only when conditions allow at that moment. Otherwise, Reltio saves the record as a new profile, and the background match process (the incremental match processor) matches and merges it later. Both paths use the same automatic rules and produce the same merged profile. Only the timing and the events are different.
One of those conditions is that the match data for the profiles involved must be up to date. Reltio updates the match tables (the match tokens and match documents used to find and compare candidates) asynchronously after every change. If a profile involved in the match, such as the existing profile, changed moments earlier, the match table may not have processed that change yet. For example, the existing profile was created and then updated again just before the new record arrived. In that case, the profile's version in main storage is ahead of its match document version.
During that window, Reltio deliberately skips merge on the fly, because merging on outdated match data could merge two profiles that no longer qualify once the latest change is applied. Reltio saves the new record as a separate profile, and the background match process merges it after the match table catches up.
This check is by design. It can't be turned off, and no configuration setting overrides it, including matchBeforeCreate.
The background merge doesn't have a fixed or configurable completion time. It runs from internal processing queues, so the delay depends on queue depth and processing load in the tenant at that moment. Any fixed timeout can be exceeded when the tenant is busy.
Merge on the fly is also skipped in these cases:
- Merge on the fly is disabled for the entity type.
matchBeforeCreateisfalse. If it isn't set, the tenant-level match strategy decides:INCREMENTALenables merge on the fly, andINCREMENTAL_V2(the default) disables it. When it's disabled, every merge by an automatic rule goes through the background process. - System resources at the time of the create call. Reltio performs merge on the fly only when enough resources are available.
Diagnose
In the examples below:
{TenantURL}ishttps://<environment>.reltio.com/reltio/api/<tenantId>.{apiURL}ishttps://<environment>.reltio.com/reltio.<existingId>is the profile that the new record should merge into, and<newId>is the ID of the new record. When the record is saved separately,<newId>appears underlosersin the crosswalk tree after the merge.<Source>,<crosswalkValue>, and<EntityType>are your own values.
Step 1. Check how and when the record merged.
GET {TenantURL}/entities/<existingId>/_crosswalkTree
Authorization: Bearer <access_token>Find the merge whose losers contain the new record's crosswalk:
mergeReason | phantomEntity on the loser | Meaning |
|---|---|---|
Merge on the fly | true | Merged during the create call. No separate profile was saved. |
Merges found by background merge process | Absent or false | Saved as a separate profile and merged later by the rule named in mergeRules. |
To measure the delay, compare the merge time (milliseconds since epoch, UTC) with the createDate of the new crosswalk on the profile (GET {TenantURL}/entities/<existingId>, under crosswalks). The difference is how long the record existed as a separate profile.
Step 2. Confirm that merge on the fly is enabled for the entity type.
GET {TenantURL}/configuration/entityTypesFind configuration/entityTypes/<EntityType> and check matchBeforeCreate:
true: merge on the fly is enabled. Continue with Step 3.false: merge on the fly is disabled, so every merge by an automatic rule happens in the background. This is expected behavior.- Not present: the tenant-level match strategy decides. To confirm the strategy for your tenant, contact Reltio Support.
Step 3. Look for a change to the existing profile just before the new record was created.
GET {TenantURL}/activities?filter=equals(items.objectUri,'entities/<existingId>')&sort=timestamp&order=ascCheck the timestamp, user, and items.data.type (for example, ENTITY_CREATED or ENTITY_CHANGED) of each record. Compare them with the createDate of the new crosswalk from Step 1. An ENTITY_CHANGED record a few seconds before that time is the typical trigger, especially when it follows the profile's own ENTITY_CREATED closely. The user shows who made the change, for example a second integration call, a Lifecycle Action, or a workflow that writes back to the profile.
The Activity Log doesn't update URIs after a merge. To see the new record's own history, query entities/<newId> the same way.
Step 4. Check whether the match data has caught up.
Run this check while the record is still separate, for example from the process that would otherwise delete it:
GET {apiURL}/monitoring/_versions?tenantId=<tenantId>&id=<entityId>{ "EntityVersion": 4000000000, "ESVersion": 4000000000, "MatchDocumentVersion": 3000000000 }- All three versions are equal: the match table has processed the latest change to the profile.
MatchDocumentVersionis lower thanEntityVersion: the match table is still processing the latest change.
The endpoint returns the versions for exactly the ID you send, even if that profile was later merged into another one. Once the match table catches up, the versions are equal again, so for records that have already merged, use Steps 1 and 3 instead.
To check both profiles and the rule result in one call, use _verifyMatches with show=full. The versions section of the response shows EntityVersion and MatchDocumentVersion for each profile:
POST {TenantURL}/entities/_verifyMatches?show=full
Content-Type: application/json
{ "first": "entities/<newId>", "second": "entities/<existingId>" }Solution
The record still merges on its own, through the background process. Rebuilding the match table doesn't help, and no setting, including matchBeforeCreate, forces merge on the fly while the match data is catching up. What needs to change is how the integration writes the record, or how the downstream process decides that a record didn't merge.
Option 1 (recommended): Write the new crosswalk directly to the existing profile.
If the source already knows the Reltio ID of the profile, attach the record to that profile instead of creating a new record and waiting for a match rule. Send the existing profile's URI with the preserveURIs option:
POST {TenantURL}/entities?options=preserveURIs
Authorization: Bearer <access_token>
Content-Type: application/json
[
{
"uri": "entities/<existingId>",
"type": "configuration/entityTypes/<EntityType>",
"attributes": { ... },
"crosswalks": [
{ "type": "configuration/sources/<Source>", "value": "<crosswalkValue>" }
]
}
]The crosswalk and its attributes are added to the existing profile in the same call. No separate profile is saved, nothing waits for matching, and there's nothing to clean up.
- If the source doesn't contribute attribute values, add only the crosswalk with
POST {TenantURL}/entities/<existingId>/crosswalks. - If the stored ID might have been merged into another profile since it was captured, read it first with
GET {TenantURL}/entities/<existingId>and use theurifrom the response. - If the ID doesn't exist, the API returns
EXPLICIT_URI_OF_NON_EXISTING_OBJECT_DEFINED (242). Treat this error as a genuine unmatched record. - With this pattern, the match rule no longer decides which profile receives the record. The ID that the source sends does, so it must be reliable.
Test the exact payload in a non-production tenant before you change the integration.
Option 2: Don't update a profile right after you create it.
If Step 3 shows that the existing profile is updated within seconds of being created, include that data in the create call instead, or delay the update until matching has finished. This removes the most common reason for the version gap. Merge on the fly remains an optimization, so this option makes it more likely but doesn't guarantee it.
Option 3: Base the cleanup decision on the record's state, not on a fixed timer.
Before you delete or flag a record as unmerged, check where it stands:
- Run
GET {TenantURL}/entities/_byCrosswalk/<crosswalkValue>?type=configuration/sources/<Source>. If the responseuriis the existing profile, the record has merged and there's nothing to do. - If the record is still separate, run the
_verifyMatchescall from Step 4.- An automatic rule matches: the background process will merge the record. Check again later instead of deleting it.
- No automatic rule matches: the record won't merge on its own, so it's safe to treat it as unmerged.
If you must keep a fixed timeout
Derive the timeout from your own tenant's measured merge times rather than a generic value:
- Use the Step 1 calculation on a representative sample of records that merged by
Merges found by background merge process. Include records loaded during your busiest periods, because queue depth drives the delay. - Set the timeout to the 95th–99th percentile of the measured delays, plus a safety margin.
- Measure again as your data volumes grow.
A fixed timeout can still be exceeded under unusual load. Use it together with the checks in Option 3 where possible.
Verify
- Option 1: Right after the call,
GET {TenantURL}/entities/_byCrosswalk/<crosswalkValue>?type=configuration/sources/<Source>returnsentities/<existingId>. The crosswalk tree doesn't show a new merge for that crosswalk, because no separate profile was saved. - Option 2: In Step 1, new records from the source show
Merge on the flymore often, and Step 3 doesn't show an update on the profile within seconds of its creation. - Option 3: The cleanup process no longer deletes records that an automatic rule matches.
Comments
Please sign in to leave a comment.