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 (Moderator: Dave Greenberg) »
  • Import says it succeeds, but gives no records
Pages: [1] 2

Author Topic: Import says it succeeds, but gives no records  (Read 5282 times)

klflote

  • I’m new here
  • *
  • Posts: 11
  • Karma: 0
Import says it succeeds, but gives no records
June 10, 2008, 08:05:03 am
I am importing data into my site using Drupal 5.7 and Civicrm 2.0.3. I have set up a mapping and go through the import, and it tells me that it successfully imported the data. But when I look at the tables (and the contacts -- I'm importing individuals), there are no new records.

Not all the data in my csv file is an individual -- some is really organizations -- so some records expectedly don't import because they don't have some required fields. That's what I expect; I mention it only in case this is somehow relevant to why the other records didn't import even though they were reported to have imported successfully.

Is there some log or debugging option that can give me some information as to what's going on?

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Import says it succeeds, but gives no records
June 10, 2008, 06:57:50 pm
There was a fix made to import between 2.0.3 and 2.0.4 to handle fatal errors in import. Can u try upgrading your codebase to 2.0.4 and see if that helps. (You could also check CiviCRM.log file - in your configured upload file directory - to see if any errors are reported there.)
Protect your investment in CiviCRM by  becoming a Member!

klflote

  • I’m new here
  • *
  • Posts: 11
  • Karma: 0
Re: Import says it succeeds, but gives no records
June 10, 2008, 10:42:32 pm
Thanks; the log file helped me realize that the format for importing data for a Yes/No radio button should be 1/0 instead of strings Yes/No.

I looked at the Error.php that dumped the backtrace, and I wonder why my import didn't end by actually giving me an error. I guess that the errors are intended to be aggregated so that the end report can show successes/failures summed per rows, but somehow this one didn't bubble up.

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Import says it succeeds, but gives no records
June 10, 2008, 10:59:27 pm
May have just been the known bug w/ the Ajax progress bar - which we fixed in 2.0.4 ... ?
Protect your investment in CiviCRM by  becoming a Member!

klflote

  • I’m new here
  • *
  • Posts: 11
  • Karma: 0
Re: Import says it succeeds, but gives no records
June 12, 2008, 05:34:46 pm
Sorry; I'd meant also to say that I tried 2.0.4 first, and still encountered the issue.

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 it succeeds, but gives no records
June 12, 2008, 06:56:46 pm
Dave - I have had numerous imports fail to give me an Error report. (That may have been during the 2.0.3 problem). But it also caught me out when firefox would freeze somewhere during the import. So I sometimes resorted to getting chris to spit me out the report from the back end. One of you explained where these were - would it be worth popping that info in the documentation on imports eg
- if your import fails to give an error report due to timing out, browsers hanging or other unidentified issues you can check here ?? to see if the import produced an Error or Duplicates report.

Just a thought.
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

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Import says it succeeds, but gives no records
June 13, 2008, 10:06:03 am
Peter - Good idea, but not sure what report Chris is pointing u too :-( Maybe he / you can add this to doc (and educate me too!).
Protect your investment in CiviCRM by  becoming a Member!

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 it succeeds, but gives no records
June 22, 2008, 03:37:58 am
Finally -

When the import is done, the import file is stored in the directory files/civicrm/uploads

If the original upload was
   Parl.csv

Then the remaining files will be named like
   Parl_MD5STRING.csv.unknown
   Parl_MD5STRING.csv.unknown.duplicates
   Parl_MD5STRING.csv.unknown.error.log
   Parl_MD5STRING.csv.unknown.errors

HTH
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

reynog

  • Guest
Re: Import says it succeeds, but gives no records
July 20, 2008, 09:21:22 am
Hello,
I am having the same issue with Import reporting success on all rows, but not actually adding/updating the rows in the database.

  • My contact matching is set to First Name and Last Name
  • My import file contains First, Last, and a Phone Number
  • I map First and Last to their respective fields, and map the Phone number to the Phone - Secondary - Phone field in CiviCRM
  • All users in the import file already exist as users (I set the import type to Update)

When I run the import it says it's successful, but no additional records are added to the civicrm_phone table in the database.

I have checked all of the log files indicated in this thread (CiviCRM.log as well as the logs associated with the csv file), and there are absolutely no errors reported in any of them.

I am absolutely at a loss and also very concerned because I REALLY need to be able to load our contact data.  I have used import before successfully when creating the Individual records, but now trying to update them is just not working.

Does anyone have ANY ideas about what could be happening?  Or any tricks for enabling additional debug statements so that I can maybe see what the import process is doing?

Any help would be greatly appreciated.

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Import says it succeeds, but gives no records
July 21, 2008, 07:07:42 am
What version of CiviCRM are you using. If not a current release (2.0.4 or 2.0.5) consider upgrading and seeing if that helps.

Other than that, simplifying the case is a decent approach to figuring out things like this. So try an update of a core field on a single record to see if that's working for you - contact Source for example. If that works, try a single record phone update to narrow down whether the matching / update is the problem or the field being updated. Assuming you find a bug, recreate it with your simple test on the public sandbox (http://sandbox.civicrm.org)  - and post it to the issue tracker w/ instructions and the sample file.
Protect your investment in CiviCRM by  becoming a Member!

reynog

  • Guest
Re: Import says it succeeds, but gives no records
July 21, 2008, 09:42:42 am
Pretty sure it's an update issue... I can't get Contact update to work no matter what I try.  I finally ended up just deleting all my contacts and reimporting them all with all fields in the same file.

As far as I'm concerned, updating existing contacts via Import is not a function that is provided by CiviCRM.

(And, yes, I upgraded to 2.0.5 during this process and still was not able to get it to work.)

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Import says it succeeds, but gives no records
July 21, 2008, 01:31:26 pm
Assuming that your case represents a bug  - it would be helpful if you took a few minutes to recreate it on the public demo and posted the exact steps with the attached sample input to this forum thread.
Protect your investment in CiviCRM by  becoming a Member!

reynog

  • Guest
Re: Import says it succeeds, but gives no records
July 21, 2008, 03:10:45 pm
I will try to find some time to do that.  I've seen numerous other posts on these forums that seem to be indicating the same probem.

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 it succeeds, but gives no records
July 21, 2008, 11:47:19 pm
@Reynog,

Yes, I'm quite sure there is a problem somewhere in the import, and it might be the update indeed, and yes, it happened previously.

However, none to my knowledge has been able to produce a reproducible error case, partly because that's probably happening on some edge case.

You seem to be close to have that silver file, if you can make it fail systematically, that will be very helpful to find the bug, and as one that has experienced problems in the import, I'd be grateful if you could find the time to reproduce it on the demo.

X+
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

reynog

  • Guest
Re: Import says it succeeds, but gives no records
July 22, 2008, 12:16:12 pm
I was able to recreate on the V2.0 demo site.  I filed a bug.

I had been trying to import Phone numbers, so that's what I recreated on demo.  I realized while recreating that it's possible the bug is specific to Phone numbers... haven't had a chance to try with other fields.  From the number of forum posts about import, though, it seems likely that the problem is not restricted to Phone fields only.

ETA: I should mention that I ran my test on the 2.1 sandbox, and the contact record WAS updated. So, import seems to be working better in 2.1... but that doesn't help all of the 2.0 users right now who need import/update functionality.
« Last Edit: July 22, 2008, 12:19:27 pm by reynog »

Pages: [1] 2
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM (Moderator: Dave Greenberg) »
  • Import says it succeeds, but gives no records

This forum was archived on 2017-11-26.