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 Import (Moderator: Yashodha Chaku) »
  • Importing Relationships Creates Name-only Duplicate Contacts
Pages: [1]

Author Topic: Importing Relationships Creates Name-only Duplicate Contacts  (Read 536 times)

ThomasTheSlug

  • I’m new here
  • *
  • Posts: 12
  • Karma: 0
  • CiviCRM version: 4.5.8
  • CMS version: Drupal 7
  • MySQL version: 5.5.40-36.1-log - Percona
  • PHP version: 5.3.29
Importing Relationships Creates Name-only Duplicate Contacts
April 03, 2015, 01:28:17 pm
I'm aware from the documentation that to import relationships, you have to go in phases. Even when I do this, I'm getting a new contact created with the relationship instead of updating the existing one. For example,

  • I have 2 individuals in the database who are married to each other, Arthur Ablabab and Phyllis Ablabab.
  • I import Arthur Ablabab with two new columns, "Spouse of First Name" and "Spouse of Last Name", and map those to the appropriate fields. I have "Fill" rule on.
  • I check my contacts and find that there is a new individual with no email or any other info but the name "Phyllis Ablabab" who has the relationship of "Spouse of" to Arthur.

What am I doing wrong here?

JonGold

  • Ask me questions
  • ****
  • Posts: 638
  • Karma: 81
    • Palante Technology
  • CiviCRM version: 4.1 to the latest
  • CMS version: Drupal 6-7, Wordpress 4.0+
  • PHP version: PHP 5.3-5.5
Re: Importing Relationships Creates Name-only Duplicate Contacts
April 03, 2015, 02:04:58 pm
I had this problem myself this week, but I'm pretty sure I resolved it - to be honest, I can't quite remember.

The issue is that the same duplicate matching rule you use for the import also applies for determining whether a record is a duplicate when adding them via a relationship.  The default duplicate matching rule is going to match on e-mail address - which you're not importing.  My suggestion is to make a new duplicate matching rule that triggers on first+last name, and set that as your dedupe rule when running the import, and the issue should go away.

IIRC, I ended creating that rule after I saw a whole bunch of duplicates creates this way - the good news was that because they ONLY had first/last name + the relationship, I was able to retroactively fix the problem with "Batch Merge Duplicates" using my dedupe rule.
Sign up to StackExchange and get free expert CiviCRM advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Import (Moderator: Yashodha Chaku) »
  • Importing Relationships Creates Name-only Duplicate Contacts

This forum was archived on 2017-11-26.