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) »
  • Blank contact records after import – how to select and delete?
Pages: [1]

Author Topic: Blank contact records after import – how to select and delete?  (Read 526 times)

Wes Reimer

  • I post occasionally
  • **
  • Posts: 49
  • Karma: 1
  • CiviCRM version: 4.4.6
  • CMS version: WordPress 3.9.x
  • MySQL version: 5.5.36-cll
  • PHP version: 5.3.27
Blank contact records after import – how to select and delete?
May 27, 2014, 08:14:58 am
CiviCRM created about 10 blank contacts during an import (organizations not individuals). These appear to be completely blank except for 3 of them which have email addresses (see attached screenshot).
  • Why would CiviCRM import/create these in the first place? Isn't a name required? Why wouldn't it automatically skip them?
  • How can I select and delete these records? Assuming I can't do it in CiviCRM, is it safe to delete them directly from the database using phpMyAdmin? Would I just delete from the civicrm_contact table or are there related records that I should look for?
Thanks,
Wes

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: Blank contact records after import – how to select and delete?
May 27, 2014, 09:43:03 am
Import doesn't check all the possible ways a contact can be invalid, unfortunately.

Getting blank records is quite likely a sign that something went wrong during import - for instance, in older versions it was possible to import contributions for contacts that didn't exist, which would cause this problem.  If you're using "external identifier" in your imports, I'd look to see if the blank records have an external ID and correlate that to your import data.

Also, I most often see this on a second import - you do an original import, then use "Update" to import more data, and overwrite the first name.

Assuming this is legitimately as you say - your original data set contains records with no first names - you can find them with Search Builder (in the Search menu).  Contact Type = Individual, First Name is Empty (or Null).
Sign up to StackExchange and get free expert CiviCRM advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

Wes Reimer

  • I post occasionally
  • **
  • Posts: 49
  • Karma: 1
  • CiviCRM version: 4.4.6
  • CMS version: WordPress 3.9.x
  • MySQL version: 5.5.36-cll
  • PHP version: 5.3.27
Re: Blank contact records after import – how to select and delete?
May 27, 2014, 10:46:09 am
Thank you Jon. Yes the original data had blank names, I just assumed Civi would skip them. Thank you for pointing out the Search Builder feature – I hadn't tried that yet!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Import (Moderator: Yashodha Chaku) »
  • Blank contact records after import – how to select and delete?

This forum was archived on 2017-11-26.