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) »
  • Import to a group creates blank records
Pages: [1]

Author Topic: Import to a group creates blank records  (Read 3535 times)

kathc

  • I’m new here
  • *
  • Posts: 25
  • Karma: 1
Import to a group creates blank records
August 27, 2009, 08:36:51 am
I'm importing contacts from an Access db -- selecting the members of a group, exporting to csv, then importing adding each set to a new group (about 4,000 records total, belonging to about a hundred groups).  Each time I run the import, it gives me the correct number of records, then performs the import fine, but then it completes with double the number of group members, half of which are empty records.   It's not that much effort to go back in and select the empties and delete them for a group that has a dozen members, but when I get to the hundreds, it's going to be a pain.

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Import to a group creates blank records
August 27, 2009, 09:09:39 am
Are you also importing relationships ?

Kurund
Found this reply helpful? Support CiviCRM

kathc

  • I’m new here
  • *
  • Posts: 25
  • Karma: 1
Re: Import to a group creates blank records
August 27, 2009, 11:15:43 am
I didn't think I was, but most of our contacts have an organization (which I've mapped to Employed by).

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Import to a group creates blank records
August 27, 2009, 10:07:51 pm
So I guess additional contacts were created since you mapped organization.

Kurund
Found this reply helpful? Support CiviCRM

kathc

  • I’m new here
  • *
  • Posts: 25
  • Karma: 1
Re: Import to a group creates blank records
August 28, 2009, 07:27:11 am
That seems to be what's happening, but it's not creating Organization records, so they're just empty records with a relationship to the user.  So I have to import all my organizations first, and then import the individuals?  In the old database, this field is used mostly for printing labels, but can also indicate membership in one of our components, so eventually, I'll probably create a new field with a new relationship for that, but for now, I just want to get everything moved over.

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Import to a group creates blank records
August 28, 2009, 08:36:38 am

i suspect the empty records are organization records. is there any other data besides the name (like email? phone? etc for the org?)

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

kathc

  • I’m new here
  • *
  • Posts: 25
  • Karma: 1
Re: Import to a group creates blank records
August 30, 2009, 09:50:23 am
It seems that I must have messed up my import mapping somehow (not getting the organization correctly mapped).  I started over, and it's working as expected.  Thanks so much for the suggestions.

nkinkade

  • I post occasionally
  • **
  • Posts: 56
  • Karma: 5
Re: Import to a group creates blank records
May 11, 2010, 10:08:14 am
We've just run up against this problem.  In our case there is only a single field for "Employee of," which is "Organization Name."  For some of the CSV records the mapped field for "Organization Name" is blank, and we get empty contact records created and an empty "Employee of" relationship set up for the main contact.  Is this just expected behavior?   What is the workaround if it is?

Thanks,

Nathan

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: Import to a group creates blank records
May 12, 2010, 11:17:15 pm
The work around is to split your csv in to two - do an import for those with the relationship - and another one for those who don't have one so you don't create blank records
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Import (Moderator: Yashodha Chaku) »
  • Import to a group creates blank records

This forum was archived on 2017-11-26.