CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Profiles (Moderator: Dave Greenberg) »
  • Possible inconsistency in how duplicate matching is handled
Pages: [1]

Author Topic: Possible inconsistency in how duplicate matching is handled  (Read 2078 times)

ctarascio

  • I post frequently
  • ***
  • Posts: 334
  • Karma: 30
    • American Friends Service Committee
  • CiviCRM version: 4.1.3
  • CMS version: Drupal 6.26
  • MySQL version: 5.5.20
  • PHP version: 5.3.13
Possible inconsistency in how duplicate matching is handled
December 03, 2008, 10:35:51 am
Hi,
   On our internal site, I did the following:
1. Configured the duplicate matching rules, fuzzy and strict, for both individuals and organizations to match on email only
2. Created a new profile for individuals and a second one one for organizations. The only field in the profile was email
3. Clicked on "new individual" and added a new individual with email=cttest@test.ind
4. Clicked on "new organization" and added a new organization with email=cttest@test.org and with organization name=cttestorg
5. Again, click on "new individual" and attempt to add someone with email=cttest@test.ind. The entry gets flagged as a duplicate,
   which it is so this is correct
6. Again, click on "new organization" and attempt to add an org with email=cttest@test.org. The entry gets flagged as a duplicate,
    which it is so this is correct
7. When I attempt to add a new individual using my "new" profile, if I enter cttest@test.ind in the email field, I get the message:
    "the user account already exists". This is correct because it does exit
8. When I attempt to add a new org using my "new" profile, if I enter cttest@test.org in the email field, I get the message:
    "Thank you. Your information has been saved". This is not corect because the an organization with that email address already
     exists
9.  If I repeat step 8 above and once again attempt to add an org with email=cttest@test.org, I receive a message that says the
     account already exists, but this behavior does not appear to be consistent

  The main things is that I was able to add a duplicate organization when adding via my profile.

  I was able to replicate this on the demo:
new individual=cttest@test.ind
new org=cttest@test.org
ind profile=testnewindmatch
org profile=testneworgmatch

   Is something wrong here or I am doing something wrong?

Thanks,
Cynthia

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Possible inconsistency in how duplicate matching is handled
December 03, 2008, 11:00:30 am
Cynthia - If your Weight Threshold on the Organization strict rule is equal to or less than the Weight assigned to the Email field - then this sounds like a bug to me. I've asked Piotr who is more "expert" on the dedupe stuff to check this post as well.
Protect your investment in CiviCRM by  becoming a Member!

ctarascio

  • I post frequently
  • ***
  • Posts: 334
  • Karma: 30
    • American Friends Service Committee
  • CiviCRM version: 4.1.3
  • CMS version: Drupal 6.26
  • MySQL version: 5.5.20
  • PHP version: 5.3.13
Re: Possible inconsistency in how duplicate matching is handled
December 03, 2008, 11:07:14 am
hiya dave,
   I set the Weight Threshold and the Weight assigned to the email field to the same value for all the rules, both strict and fuzzy.

Thank you for asking Piotr to follow-up. I'll wait to hear what he says.

hope all is well with you,
Cynthia

Piotr Szotkowski

  • I live on this forum
  • *****
  • Posts: 1497
  • Karma: 57
Re: Possible inconsistency in how duplicate matching is handled
December 04, 2008, 12:24:15 am
Thanks a lot, Cynthia, for the detailed bug report! Thanks to your work it was trivial to reproduce (and fix) this.

I filed CRM-3902 and fixed it for CiviCRM 2.2; I’m discussing with Lobo whether it’s safe to port this to CiviCRM 2.1 (so it makes the CiviCRM 2.1.3 release later this month).
If you found the above helpful, please consider helping us in return – you can even steer CiviCRM’s future and help us extend CiviCRM in ways useful to you.

ctarascio

  • I post frequently
  • ***
  • Posts: 334
  • Karma: 30
    • American Friends Service Committee
  • CiviCRM version: 4.1.3
  • CMS version: Drupal 6.26
  • MySQL version: 5.5.20
  • PHP version: 5.3.13
Re: Possible inconsistency in how duplicate matching is handled
December 04, 2008, 06:58:55 am
Thank YOU Piotr. As such things go, I am very new to the open source community/world, so I have much to learn. Meanwhile, I have never experienced a team of people so willing to help out and I appreciate that very much.

Cynthia

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Profiles (Moderator: Dave Greenberg) »
  • Possible inconsistency in how duplicate matching is handled

This forum was archived on 2017-11-26.