Hello Radhakrishnan
Thank you for your response.
Yes I checked the docs and tried to use OR condition but L3 validation was failing.
Please refer below code snippet:
{
"negativeRule": {
"notExactSame": [
"configuration/entityTypes/Individual/attributes/PhoneNumber"
],
"or": [
{
"equals": [
{
"value": "Belgium",
"values": [
"Belgium"
],
"uri": "configuration/entityTypes/Individual/attributes/AddressCountry"
}
]
},
{
"equals": [
{
"value": "Belgium",
"values": [
"Belgium"
],
"uri": "configuration/entityTypes/Individual/attributes/Market"
}
]
}
]
}
}
But when I tried to validate it, I got below error:
Expecting request content in JSON format, failed to parse. Reason: Could not read JSON: Cannot deserialize value of type `com.reltio.metadata.model.match.NegativeMatchRule` from Array value (token `JsonToken.START_ARRAY`)
I also tried to change the syntax by arranging the parenthesis but nothing seems to work. Could you please help with what I'm doing wrong here?
Thanks in advance
------------------------------
Uttam Prakash
Accenture
------------------------------
Original Message:
Sent: 12-11-2024 12:35
From: Radhakrishnan Ramalingam
Subject: Conditional "equals" check in Negative Rule
Hi Uttam,
Here is the document link for negative rule.
https://docs.reltio.com/en/reltio/what-does-reltio-do/what-reltio-does-at-a-glance/data-unification-and-mdm-at-a-glance/data-unification-and-mdm-in-detail/reltio-match-and-merge/match-group-elements---description-and-configuration/negative-rule
The Negative Rule with OR should help resolve your issues.
If not, I'll use two NRs. I need to understand a bit more to assist you further.
------------------------------
Radhakrishnan Ramalingam Architect
Majix Solutions Inc
San Ramon, CA
Original Message:
Sent: 12-10-2024 01:42
From: Uttam Prakash
Subject: Conditional "equals" check in Negative Rule
Hello
We have a requirement mentioned below:
We have two fields - AddressCountry and Market
Condition 1: If AddressCountry = Belgium and Phone is Different then trigger NR
Condition 2: If Market = Belgium and Phone is Different then trigger NR
We want to write 1 NR that includes both conditions. How can we combine these two conditions into one single Negative Rule?
------------------------------
Uttam Prakash
Accenture
------------------------------