Answered by:
duplicate detection for blank values

Question
-
Hi
I have duplicate detection on address2 field of account entity. But if both values[Target and source] are blank then also its checking for duplicate. I dont want duplication detection to work in case when both values are blank.
Please help!!
Thanks in advance!!
Monday, October 4, 2010 7:13 AM
Answers
-
There are several ways to detect duplicates:
- When new records are created
- When records are imported
- By running a duplicate detection job
I think, Garfield, that you are referring to method 1, but Jeff is referring to method 3.
When new records are created duplicate detection will run (if it has been enabled) according to the duplicate detection rules. Unfortunately, within the duplicate detection rules there is no feature that allows you to specify that null values should be ignored. So, for example, a contact with no email address will be identified as a potential duplicate for all other contacts with no email address. I'm afraid that this is just a limitation of the CRM 4.0 (and CRM 2011) duplicate detection feature.
When a system administrator runs a duplicate detection job, the administrator can specify filter criteria. Using the example above, I would run the duplicate detection job on contacts where status equals active and email address contains data. This is a much better experience. So I normally don't run duplicate detection when users create records, and just appoint a data administrator to run duplicate detection jobs periodically and merge any duplicates.
In all methods, duplicate detection only applies to the records that the user can view, so the user has to be able to see all records to detect duplicates organization-wide. This is by design and an important part of the security model. In some deployments duplicate records exist in different business units because of regulatory constraints.
Neil Benson, CRM Addict and MVP at Customery Ltd. You can reach me on LinkedIn or Twitter. Join over 10,000 other CRM professionals on the Microsoft Dynamics CRM group on LinkedIn.
- Marked as answer by Jim Glass Jr Monday, October 4, 2010 2:09 PM
Monday, October 4, 2010 12:26 PMModerator -
Hi Garfield_
We had the same issue in the past. Neil is suggest good thing that you need to select most unique field for running Duplicate Detection (DD).
If you need run a DD against field which often is blank try to use JavaScript to populate this field and later remove it by workflow.
In your example if you need to validate of address2 populate this field from Address 2 - Company Name and designed workflow will delete Address2 field.
My Dynamics CRM Blog: http://bovoweb.blogspot.com- Marked as answer by Jim Glass Jr Monday, October 4, 2010 2:09 PM
Monday, October 4, 2010 1:42 PM
All replies
-
Rather than make it run against all records why not first filter the records for those records where address 2 is not blank.
The simplest way to do this is to create an advanced find view for records where the Address 2 is not blank and then select that saved view as the target of the duplicate detection rule.
Jeff Loucks | Available Technology | 888-474-2237 | http://msmvps.com/blogs/jeffloucks- Proposed as answer by Jeff Loucks Monday, October 4, 2010 7:31 AM
Monday, October 4, 2010 7:31 AM -
Thanks Jeff for reply!!
But advance find view will be specific for particular user, right?
i want it at organization level.
Garfield!!Monday, October 4, 2010 7:35 AM -
There are several ways to detect duplicates:
- When new records are created
- When records are imported
- By running a duplicate detection job
I think, Garfield, that you are referring to method 1, but Jeff is referring to method 3.
When new records are created duplicate detection will run (if it has been enabled) according to the duplicate detection rules. Unfortunately, within the duplicate detection rules there is no feature that allows you to specify that null values should be ignored. So, for example, a contact with no email address will be identified as a potential duplicate for all other contacts with no email address. I'm afraid that this is just a limitation of the CRM 4.0 (and CRM 2011) duplicate detection feature.
When a system administrator runs a duplicate detection job, the administrator can specify filter criteria. Using the example above, I would run the duplicate detection job on contacts where status equals active and email address contains data. This is a much better experience. So I normally don't run duplicate detection when users create records, and just appoint a data administrator to run duplicate detection jobs periodically and merge any duplicates.
In all methods, duplicate detection only applies to the records that the user can view, so the user has to be able to see all records to detect duplicates organization-wide. This is by design and an important part of the security model. In some deployments duplicate records exist in different business units because of regulatory constraints.
Neil Benson, CRM Addict and MVP at Customery Ltd. You can reach me on LinkedIn or Twitter. Join over 10,000 other CRM professionals on the Microsoft Dynamics CRM group on LinkedIn.
- Marked as answer by Jim Glass Jr Monday, October 4, 2010 2:09 PM
Monday, October 4, 2010 12:26 PMModerator -
Hi Garfield_
We had the same issue in the past. Neil is suggest good thing that you need to select most unique field for running Duplicate Detection (DD).
If you need run a DD against field which often is blank try to use JavaScript to populate this field and later remove it by workflow.
In your example if you need to validate of address2 populate this field from Address 2 - Company Name and designed workflow will delete Address2 field.
My Dynamics CRM Blog: http://bovoweb.blogspot.com- Marked as answer by Jim Glass Jr Monday, October 4, 2010 2:09 PM
Monday, October 4, 2010 1:42 PM -
I beleive you can share the view as required.
Jeff Loucks | Available Technology | 888-474-2237 | http://msmvps.com/blogs/jeffloucksMonday, October 4, 2010 3:42 PM