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 says only 15 records when there are more
Pages: [1]

Author Topic: Import says only 15 records when there are more  (Read 5933 times)

colleen

  • Guest
Import says only 15 records when there are more
April 07, 2010, 02:48:38 pm
In one of our instances of the database, when we do an import by uploading a .csv file the import will say there are only 15 records to import, even where there are many more.  I've experimented a great deal and can't figure out what the problem might be:

- the problem happens regardless of what data fields are being used (as best I can tell)
- the problem happens regardless of whether or not I use a saved import template or select the matching fields each time.

Does anyone have any ideas of things I might do to try to diagnose the problem?

Thanks,
Colleen

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 says only 15 records when there are more
April 07, 2010, 02:59:24 pm
is it the same csv file each time? something crook in row 16 perhaps?
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

adixon

  • I post frequently
  • ***
  • Posts: 314
  • Karma: 19
    • Blackfly Solutions
Re: Import says only 15 records when there are more
April 13, 2010, 07:49:10 am
I've usually had a weird character in my data when this happens [e.g. someone copy/pasted an email into a memo field], i.e. it's likely the php csv parser that can't figure out where the line ends. Most of the time, you can just go in an edit that field [you may not even see the bad characters, but sometimes you can guess, e.g. things like em-dashes or other non-ascii characters].

Guy Iaccarino

  • I post occasionally
  • **
  • Posts: 92
  • Karma: 5
    • Greenleaf Advancement
  • CiviCRM version: 4.4.10, 4.5.4
  • CMS version: WordPress 4, Drupal 7, Drupal 6, Joomla 3
  • MySQL version: 5.5
  • PHP version: 5.3
Re: Import says only 15 records when there are more
April 27, 2010, 05:04:57 pm
I was getting that too, randomly, and it was driving me nuts. Based on some input from other threads, I made sure that my last column had no blanks, and that seemed to do the trick. (For that import I used an unsubscribe field, which either had ones or zeros.) From now on, I'm going to put my external identifier for contacts or my transaction ID's for contributions, and I'm hoping that will do it every time.
« Last Edit: April 27, 2010, 05:08:10 pm by guyiac »
Guy Iaccarino
www.greenleafadvancement.com

DougAnderson

  • I’m new here
  • *
  • Posts: 20
  • Karma: 0
Re: Import says only 15 records when there are more
May 06, 2010, 01:17:32 pm
I had this problem too. The original file had about 120 records and on the first import it imported 70 of them but these were in 2 alphabetically sequential groups.

So I deleted those that were already imported from the csv file. That left 49.

2nd import it imported the first 15 only.

I deleted those from the file. 3rd import imported only the first 15 of these.

I deleted those from the file. 4th import imported only the first 15 of these.

That left only 4 which were imported on the 5th import.

I'm sure glad I didn't have a larger file.

The number 15 does seem to be significant.

Kiran Jagtap

  • Ask me questions
  • ****
  • Posts: 533
  • Karma: 51
Re: Import says only 15 records when there are more
May 07, 2010, 12:55:45 am
Quite strange. could u make sure data rows has same number of columns.

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. )

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

MEQ

  • Guest
Re: Import says only 15 records when there are more
May 11, 2010, 08:15:04 pm
I've had the same problem when importing email lists from another email program into civi

Here are a few notes on what I found helpful (maybe they are obvious to everyone else!)
- Some of the email addresses weren't valid. Maybe they were missing a "@" symbol, had a "," in it, etc.... I don't know why my old email program didn't catch those!
- Sometimes when you are dealing with bulk records you may have blank fields. Try to fix those, remove them or put those records at the bottom of your csv file
- Civi will show you what errors it finds in your import file. Remedy those and try again. The rest of your valid fields should show up to import

I am interested if anyone has had the same problems or found other potential fixes

Rar9

  • I’m new here
  • *
  • Posts: 23
  • Karma: 0
    • Asset-Trade
  • CiviCRM version: 4.15
  • CMS version: Drupal 7.15
  • MySQL version: 5.1.63-0ubuntu0.10.04.1
  • PHP version: 5.3.10-1ubuntu2ppa7~lucid
Re: Import says only 8 records when there are 104.
May 12, 2010, 08:51:29 am
Same Problem here with CiviCRM 3.14
Used AbleBits.com - Trim Spaces Plugin for Excel ... still no help. :-[
Checked all emails with SendBlaster and imported all the data....even exported the data to a new file.... still only 8 will be found by CiviCRM from the 104 contacts.
Tried import & Access and export to a new CVS... still no change.

What i´m I doing worng?

edit...

I´ve now proceeded with my list similar to what DougAnderson has done..... really time consumming but it works.... :-(
I´ve now got 75 imports that worked from the 104.
If anyone wants to look at the scrap data.. PM me.  ;D
« Last Edit: May 12, 2010, 10:14:09 am by Rar9 »

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 says only 15 records when there are more
May 12, 2010, 11:25:42 am

did u try importing your data on the demo server? if not, please do so and let us know how that goes

if confidentital data, scramble the data before importing

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

Rar9

  • I’m new here
  • *
  • Posts: 23
  • Karma: 0
    • Asset-Trade
  • CiviCRM version: 4.15
  • CMS version: Drupal 7.15
  • MySQL version: 5.1.63-0ubuntu0.10.04.1
  • PHP version: 5.3.10-1ubuntu2ppa7~lucid
Re: Import says only 15 records when there are more
May 13, 2010, 03:31:06 am
OK... I guess I found the a solution for importing the list.... ;D

I´ve now importet the Excel list to Access to give me different export options.
The one that worked for me was saving the imported table via the extra button to specify UTF-8.  I´ve tried both "Komma" and "Semicolum"n both work so just set what you need.

Under CiviCRM » Administer CiviCRM » Global Settings »  Localization

Change the "Legacy Encoding" to UTF-8 instead of "Windows-1252" which was set in my instance.

Now I don´t know if changing the "Legacy Encoding" with stop importing me excel .csv   that´s something that I still need to try...

Cheers
Rar9
p.s. This also worked on the Demo CiviCRM except that I got a different error  "Invalid value for field(s) : Country input value is in table but not "available"

Upperholme

  • Administrator
  • Ask me questions
  • *****
  • Posts: 568
  • Karma: 8
    • MC3
  • CiviCRM version: 4.x
  • CMS version: Drupal 6.x/7.x, Wordpress, Joomla
Re: Import says only 15 records when there are more
May 18, 2010, 06:18:07 pm
I'm seeing the same issue. Version 3.1.4
Importing from an Excel generated CSV file. First try it imported 75 records form the 650 in the file, seemingly at random. All subsequent attempts it only wants to import 15 records.
This is a major pain. what should be a matter of a few minutes work has so far taken me over 2 hours, with probably another 2 until - hopefully - I have my data imported.

Update!. Having just read the thread at http://forum.civicrm.org/index.php/topic,13168.0.html I gave it a go - i.e. added a column of zeros at the end of my data, and it works! The moral of the tale - don't trust Excel to generate anything like a clean well structured CSV file.

In the cold light of day it might be worthwhile putting something about this issue into the online documentation and FLOSS manual - and if possible offering a foolproof method for creating a clean CSV file for import.
« Last Edit: May 19, 2010, 01:53:26 am by Upperholme »
Graham Mitchell
http://mc3.coop

bcobin

  • I post frequently
  • ***
  • Posts: 337
  • Karma: 9
    • InterCreative Media
  • CiviCRM version: 4.3.3
  • CMS version: Drupal 7.22
  • MySQL version: 5.5.9
  • PHP version: 5.3
Re: Import says only 15 records when there are more
October 19, 2010, 02:04:28 pm
Quote
The moral of the tale - don't trust Excel to generate anything like a clean well structured CSV file.

Amen. It had been a few months since I did a large import and I'd forgotten about the problems with Excel, so after losing a few hours today, I'm documenting that Excel .csv files simply don't work, in my case. (Incorrect reporting of rows, for one thing.)

I ended up breaking the client Excel file (with over 40,000 contacts) into 2,500-record .csv files, which I then imported into Filemaker Pro. The .csv files exported from FM Pro worked perfectly.

The import process looks a lot faster than it has been, so I think larger files shouldn't pose a problem - the key here was FM Pro. I'd assume other programs might do just as well - the key here is not to try to import the Excel .csv files.



 

NicolasConte

  • Guest
Re: Import says only 15 records when there are more
November 04, 2010, 06:59:13 am
hi

I also had this problem. As mentioned above: filemaker is the solution
i exported my access database as excelfile, loaded this into filemaker (trial), exportet as csv and civicrm got 100 per cent of the data

cheers
conte

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: Import says only 15 records when there are more
November 04, 2010, 07:37:03 am
Another option is to use OpenOffice/LibreOffice. It's able to generate "rest of the world" friendly csv.

X+

Quote from: bcobin on October 19, 2010, 02:04:28 pm
Quote
The moral of the tale - don't trust Excel to generate anything like a clean well structured CSV file.

Amen. It had been a few months since I did a large import and I'd forgotten about the problems with Excel, so after losing a few hours today, I'm documenting that Excel .csv files simply don't work, in my case. (Incorrect reporting of rows, for one thing.)

[/quote]
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

Dwiding

  • I post frequently
  • ***
  • Posts: 165
  • Karma: 8
  • CiviCRM version: 3.3.3
  • CMS version: Joomla 1.5.x
Re: Import says only 15 records when there are more
January 27, 2011, 06:09:09 am
Just a note any one viewing this thread, if you "ARE" using Excel to create CSV Files, when you do the save as, make sure you select CSV (DOS).

After Export to CSV, I always open with notepad, then re-save, then import.

D

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Import (Moderator: Yashodha Chaku) »
  • Import says only 15 records when there are more

This forum was archived on 2017-11-26.