How to Fix Duplicate Detection Dialog Showing No Records in Microsoft Dynamics 365

Recently we had an issue in Microsoft Dynamics 365 where the “Duplicates Detected” dialog was popping up on create of a contact, indicating that one of the duplicate detection rules found a match, but instead of being able to review the potential duplicate records, it was showing “None”.

image thumb How to Fix Duplicate Detection Dialog Showing No Records in Microsoft Dynamics 365

After reviewing the duplicate detection rules, and narrowing down the problem, it turned out to be related to one of the duplicate detection rules that used the “Full Name” field on the contact.

image thumb 1 How to Fix Duplicate Detection Dialog Showing No Records in Microsoft Dynamics 365

We aren’t using the “Full Name” composite control on the contact. Instead we have the “First Name” and “Last Name” separated out. It seems that because the Full Name isn’t being updated until after the record is created, it messes with the duplicate detection. The system correctly identifies that there is a duplicate, but it shows no results in the actual popup.

image thumb 2 How to Fix Duplicate Detection Dialog Showing No Records in Microsoft Dynamics 365

There’s a couple of ways to solve this. The best solution is to just use the Full Name composite control instead of the First and Last Name separately. However we needed them separated out, so I ended up just changing the duplicate detection rule to match on First Name and Last Name instead of Full Name.
image thumb 3 How to Fix Duplicate Detection Dialog Showing No Records in Microsoft Dynamics 365
Now when we create the same contact, it doesn’t need to check the full name, so it finds the potential duplicate record based on the first and last name.
  image thumb 4 How to Fix Duplicate Detection Dialog Showing No Records in Microsoft Dynamics 365

Let’s block ads! (Why?)

Magnetism Solutions Dynamics CRM Blog