Why can a second value be added on update when an attribute's cardinality maximum is 1?

Problem

  • An attribute allows at most one value ("maxValue": 1).
  • Creating a profile with two values is rejected with a cardinality error.
  • Adding a second value to an existing profile in the Reltio UI succeeds. The profile shows one value, and the other appears in the Sources perspective.

Cause

The cardinality check counts only OV values (operational values: the values that survivorship selects and the profile shows). It runs when a profile is saved in the Reltio UI.

With the default LUD survivorship strategy (Last Update Date, shown as Recency in the Data Modeler):

  • On update, the new value is the most recent, so it becomes the only OV value. The older value is kept with "ov": false. The check sees one OV value and allows the save.
  • On create, both values arrive together from the same crosswalk, so both are OV values and the save is rejected.

This is expected behavior when the strategy selects a single winning value.

Diagnose

Get an affected profile. {TenantURL} is https://<environment>.reltio.com/reltio/api/<tenantId>.

GET {TenantURL}/entities/<entityId>?select=attributes.<Attribute>
Authorization: Bearer <access_token>

The attribute has two values, and only one has "ov": true.

Solution

Change the attribute's survivorship strategy to Aggregation. Every value is then an OV value, so a second value exceeds the maximum and the save is rejected.

  1. In Console > Data Modeler, open the entity type's Survivorship tab and edit the default survivorship group. Set the attribute's strategy to Aggregation, or set "survivorshipStrategy": "Aggregation" for it in the ADVANCED EDITOR, and save.
  2. Reindex the entity type: POST {TenantURL}/reindex?entityType=<EntityType>&forceIndexing=true.

Before you change it:

  • All values of the attribute become OV values. Profiles that already store more than one value show all of them and can't be saved in the UI until the extra values are removed.
  • The check applies to saves in the Reltio UI, not to API requests or data loads.

Test the change in a non-production tenant first.

Verify

Add a second value to a profile in the UI and save. The save is rejected with an error such as Attribute <Attribute> must have at most 1 ov value(s), but it has 2.

 

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

Comments

0 comments

Article is closed for comments.