Skip to Content

Matching New records - Without Record ID

Hi,

Can you help me with this?

I am trying to get a list of matching/duplicate records for a new record which is not added to MDM yet. (ie., no Record ID for the new record)

The RetrieveMatchedRecordsCommand cmd is expecting the source record id.

The RetrieveMatchingResultCommand cmd getmatchingresults returns null (as specified in the java doc). But this command gives me the number of duplicates by getMatchCount() class. If I can get the duplicate records (existing in MDM) also, it solves the purpose.

Have you worked on similar scenario?

Cheers,

Prabhu

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Sep 07, 2009 at 04:11 PM

    Hi Prabhu

    I am trying to get a list of matching/duplicate records for a new record which is not added to MDM yet. (ie., no Record ID for the new record)

    The RetrieveMatchedRecordsCommand cmd is expecting the source record id.

    We can use a different API (dont remeber the exact API name) which runs matching strategy in MDM without actually creating a record in MDM and hence no record ID is required.

    hope this helps.

    best regards

    Ravi

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Pradhu,

      Here are the steps to get the matched records found with API command ExecuteMatchingStrategyForNewRecordValuesCommand

      Use RetrieveMatchedRecordsCommand API, and set the source record Id to be -1 (with the method setRecordId()).

      This is specified in the API Java doc for RetrieveMatchedRecordsCommand.setRecordId().

      RetrieveMatchingResultCommand API is not needed after matching an external record.

      Regards

      Orit

  • Posted on Sep 08, 2009 at 07:46 AM

    Hi Orit,

    Wow! That was a perfect solution. Yes, it was mentioned in the document also.

    I dont see any business use case/ benifits for RetrieveMatchingResultCommand over RetrieveMatchedRecordsCommand. Can you share some info on this?

    Thanks and best regards,

    Arun prabhu S

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 08, 2009 at 08:10 AM

    Thanks Orit.

    Copying the required information from your reply for future reference...

    1)Outer loop: RetrieveMatchingResultCommand is used to get the source record Ids

    2)Inner loop: For each source record at the outer loop, RetrieveMatchedRecordsCommand is used to get the target records and their matching scores.

    Cheers,

    Prabhu

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.