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) »
  • Invalid Rows when importing Participants
Pages: [1]

Author Topic: Invalid Rows when importing Participants  (Read 3130 times)

jterry

  • Guest
Invalid Rows when importing Participants
October 26, 2010, 07:06:50 am
Hello,

I am using CiviCRM 3.1.4 and just imported several .csv files as Contacts.  I am currently trying to import additional information for all these records(/Contacts) as Participants under Events.

When trying to do so, all rows fail to import.  I have tried a couple things...

1) Under Upload Data, I select "Skip" for "Duplicate Entries".  
    Under Match Fields, I select "Contact ID (match to Contact)" for both First and Last Name fields.  (These names have already been imported as Contacts).
    Under Preview, everything looks fine, as if all rows are about to be imported successfully (43 Total rows / 43 Valid rows).
    Under Summary, 43 rows have been found to be invalid and were not imported.  The error "reason" listed under the downloadable error spreadsheet says "contact_id not valid" for each row.

2) Under Upload Data, I select "Update" for "Duplicate Entries".
    Under Match Fields, I select "Participant ID" for both First and Last Name fields.
    Under Preview, again, everything looks fine, as if all rows are about to be imported successfully (43 Total rows / 43 Valid rows).
    Under Summary, 43 rows have been found to be invalid and were not imported.  The error "reason" listed under the downloadable error spreadsheet says "Matching Participant record not found" for each row.

Any idea what I may be doing wrong?  I have searched around the forum, and am feeling that this may have something to do with assigning "Contact IDs" (specific identifiers for my imported contacts beyond just their first and last names), but only have a vague notion of what that is.  Any help is much appreciated, as this is rather frustrating!

Thanks,
jterry

    

Kiran Jagtap

  • Ask me questions
  • ****
  • Posts: 533
  • Karma: 51
Re: Invalid Rows when importing Participants
October 26, 2010, 07:17:40 am
Hello jterry,

Could you please try to replicate on our public demo site : http://drupal.demo.civicrm.org/

It would be helpful, If u give your import field mapping and attach small set of sample data file.
( Of course any private / personal information should be disguised. )

thanks,
kiran
You Are Designed To Choose... Defined By Choice.

jterry

  • Guest
Re: Invalid Rows when importing Participants
October 26, 2010, 10:18:15 am
Hi Kiran,

Many thanks for the quick response. 

I am currently logged into the demo site.  However, it is almost entirely in German language.  Not sure if there is a way to switch it to English.  If not, I can work around it, but I just was concerned in case the difference in field names would be more than just a direct translation.

Also, regarding the field mapping and sample data set... would you like me to provide them here on the board or just plug them into the demo import?

I have built a new test .csv spreadsheet and changed/encrypted the names, phone numbers, etc.

Thanks!!
John

Kiran Jagtap

  • Ask me questions
  • ****
  • Posts: 533
  • Karma: 51
Re: Invalid Rows when importing Participants
October 26, 2010, 11:52:39 pm
Hello John,

Demo site is back to English now :)
Also you could change language for demo site from Administer -> Global Settings -> Localization -> Default Language.
( http://drupal.demo.civicrm.org/civicrm/admin/setting/localization&reset=1 )

could you please attach the test.csv file here or you might want to just type 1 - 2 rows of data,
so It would be helpful for me to replicate the issue.

thanks,
kiran
You Are Designed To Choose... Defined By Choice.

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: Invalid Rows when importing Participants
October 27, 2010, 03:20:28 am
can you also confirm what your Matching Rules are set to in Contacts > Find and Merge Duplicate Contacts
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

jterry

  • Guest
Re: Invalid Rows when importing Participants
November 05, 2010, 12:47:52 pm
Hi Kiran and Peter,

Thanks for responding, and sorry for the delay.  There were some issues with the development environment of our website which prevented me from looking further into this.  But now we're back!

Kiran - I attached a .csv file, in the format I have been using and trying to upload to Civi.  All of the data is altered and not real, but the columns are what I have been working with.

Peter - Under "Merge and Duplicate Contacts" the matching rules I found for individuals were...
Strict
Field: E-Mail   Length: [blank]  Weight: 10
Fuzzy
Field: First Name  Length: [blank]  Weight: 5
Field: Last Name  Length: [blank]  Weight: 7
Field: Email         Length: [blank]  Weight: 10
Weight threshold to consider Contacts 'Matching': 22

Is this the kind of information you were looking for or no?  If not, just let me know what else you can need.

Thanks again for your help.  It's appreciated.

John

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: Invalid Rows when importing Participants
November 05, 2010, 01:05:16 pm
Not clear to me which problem we are trying to sort.

That csv imports fine other than obviously those without a 'company' being rejected.

I used the file to Import Contacts on Demo.

But unclear if you are having problems Importing Contacts or Importing Participants.

If you are wanting to Import Participants, then there needs to be the Event information in the import too.

If you are wanting to Import Contacts and then mark then as being Participants at an Event - then Import Contacts and either add to a Group or a Tag as you do the import (Step 3) - then use Find Contacts and then under Actions use Add to Event.

Not sure if that helps. screenshot of import mapping attached
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

jterry

  • Guest
Re: Invalid Rows when importing Participants
November 08, 2010, 07:44:35 am
Hi Peter,

I will try to elaborate and clarify in response to your questions/comments...


But unclear if you are having problems Importing Contacts or Importing Participants.

If you are wanting to Import Participants, then there needs to be the Event information in the import too.


I am trying to import Participants for an Event.  I have attached another spreadsheet, which I have also tried using.  This one contains an Event ID #, but is also failing to import.  Again, this contains fake information, so it is not the exact file I am trying to import, but the idea is the same, in terms of columns, etc.  I also attached a screenshot of the field mapping I am trying to perform in the import.


If you are wanting to Import Contacts and then mark then as being Participants at an Event - then Import Contacts and either add to a Group or a Tag as you do the import (Step 3) - then use Find Contacts and then under Actions use Add to Event.

I could try this out, but all the Contacts have already been imported.  Also, there are hundreds of Contacts who need to be added to this Event.  I am guessing that individually finding Contacts and adding them to the Event may take a long time?  Is this a substitute process for importing Participants with Event IDs, or would it need to be done anyway?


Thanks again for working with me on this, it is appreciated.

John

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: Invalid Rows when importing Participants
November 08, 2010, 10:33:37 am
okay so my confusion has been clarified. But the issue remains - you are supplying csv files that seem to import fine when tested but which are failing for you. my unfounded suspicion remains to be the csv file. Others have reported problems with csv from Excel. Even using NeoOffice I know that we have issues if we open a csv that has already been closed. So I always copy to the csv content (including from your attached) and create a spanking new csv and import it without re-opening it. any chance that is the problem for you
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

jterry

  • Guest
Re: Invalid Rows when importing Participants
November 08, 2010, 12:30:59 pm
Hi Peter,

So I just tried saving a brand new .csv file and, without closing or opening it, attempted to import it into Civi.  Again, the file failed to import (all the rows were invalid due to a "contact_id not valid" error). 

When I save the .csv file to my machine, I usually receive a couple messages, including the one attached here as a screenshot.  I usually click "Yes" in response to this message.  Do you think that is having any impact on my import?

Thanks again,
John

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: Invalid Rows when importing Participants
November 08, 2010, 12:49:24 pm
I don't know - i just know that Excel problems keep getting reported - eg this one - hhttp://forum.civicrm.org/index.php/topic,13182.msg59083.html#msg59083 - so you could try the column of zeros trick.
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

jterry

  • Guest
Re: Invalid Rows when importing Participants
November 08, 2010, 01:37:44 pm
I do remember coming across that thread before, but never thought to try the column of 0's trick, since I always had data in the far right column.  I just gave it a shot anyway, and it failed again.

Maybe we'll look into installing FilemakerPro and giving it a shot with that?  Otherwise, you don't think it would have anything to do with matching contacts in Civi?

Again, thank you for your attention and support!

John

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: Invalid Rows when importing Participants
November 08, 2010, 01:58:00 pm
So the Import works on the Strict Rules for Individuals - which you said earlier was to 'match on emails' - so for the records to match, you need the email. if you are importing a file that has only First and Last then you need to make a new Strict Rule eg First (weight=5) + Last (weight=5) = Total (10) - and set that rule to be your Default Strict Individual.
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

jterry

  • Guest
Re: Invalid Rows when importing Participants
November 09, 2010, 07:52:31 am
Okay, so I went to Administer > Manage > Find and Merge Duplicate Contacts, where I edited the Strict rule for Individuals, according to what you suggested.

I then tried to Import a .csv file of Participants as usual, and the import failed for the same reason (invalid rows... contact id not valid).

Did I edit the rule in the correct location, or is there another place to edit rules?  Is there anything else I missed, or perhaps something else I could try?

Thanks so much again!

John

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: Invalid Rows when importing Participants
November 09, 2010, 11:29:32 am
So I am getting confused here. I just looked back at your last mapping jpg - it shows you are trying to match First Name to Contact ID, rather than to First Name.
I tried the import on Demo and Import Participants does not offer First or Last to map to - in fact I don't see Contact ID either.
If that is how the system is meant to work - then you probably need to import these as Contacts, not Participants, add them to a new Group, then grab that Group and add them to the Event via Actions.
I haven't worked much with Events - maybe someone who does can chime in.
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) »
  • Invalid Rows when importing Participants

This forum was archived on 2017-11-26.