on 09-07-2009 2:17 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.