Reltio Connect

 View Only
  • 1.  Conditional "equals" check in Negative Rule

    Reltio Partner
    Posted 12-10-2024 11:02

    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
    ------------------------------


  • 2.  RE: Conditional "equals" check in Negative Rule

    Posted 12-11-2024 12:36

    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
    ------------------------------



  • 3.  RE: Conditional "equals" check in Negative Rule

    Reltio Partner
    Posted 12-12-2024 03:51

    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
    ------------------------------