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) »
  • Discussion (deprecated) »
  • Alpha and Beta Release Testing »
  • 2.2 Release Testing »
  • I Get Error Upon Successful CSV Import
Pages: [1]

Author Topic: I Get Error Upon Successful CSV Import  (Read 3233 times)

farmrchrys

  • I post occasionally
  • **
  • Posts: 92
  • Karma: 2
    • Spokane Moves to Amend the Constitution (under development)
  • CiviCRM version: CiviCRM 4.4.6
  • CMS version: Drupal 7.31
  • MySQL version: MySQL 5.5.37
  • PHP version: PHP 5.3.28
I Get Error Upon Successful CSV Import
February 08, 2009, 11:18:31 am
In civiCRM 2.2 beta I imported a csv file with basically primary contact info. The file had over 3000 records. At first I thought the import had failed because the "Step 4 of 4" page displayed no information regarding the outcome of the import and the error message "We encountered an unknown error in SetFinished", however, all indications are that all records imported successfully.

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: I Get Error Upon Successful CSV Import
February 08, 2009, 10:59:02 pm
There was a bug in Contact Import which we have fixed in v2.2 branch and it will be available in next beta release.

thanx

Kurund

Found this reply helpful? Support CiviCRM

phani

  • I’m new here
  • *
  • Posts: 28
  • Karma: 3
    • namahatta.org DB
Re: I Get Error Upon Successful CSV Import
February 10, 2009, 12:56:27 am
what i experienced when importing 184 contacts from a csv file doesn't look like the same error, but it's probably related. all steps went through fine, and the script announced that all records had been imported successfully. trying to find the records, i found that only the first one had actually been imported. neither the new group i specified for the imported contacts, nor the new tag had been created.

in the DB i found several tables called civicrm_import_job.... with all the imported records, but except for the first one they hadn't been added to the contact or other tables.

i didn't find any error in my mysql or apache logs either. i'll try this again, also importing via MySQL, but so far this looks like a bug in CiviCRM's  import system...

phani

  • I’m new here
  • *
  • Posts: 28
  • Karma: 3
    • namahatta.org DB
Re: I Get Error Upon Successful CSV Import
February 10, 2009, 03:03:29 am
after deleting the temporary tables creaed during imports (civicrm_import_job_<long random string>) and choosing no duplicate checking, 50+ of the contacts got imported via csv. then again, the script returned with the message that all 194 records had been imported, which wasn't the case. and again, no groups or tags have been created.

importing these 50+ contacts took pretty long, and i suspect that the local machine i'm using as testing server isn't up to the task, even though i didn't find errors in MySQL or apache2 logs. i'll upload my test environment to the webserver now and see what happens...

phani

  • I’m new here
  • *
  • Posts: 28
  • Karma: 3
    • namahatta.org DB
Re: I Get Error Upon Successful CSV Import
February 10, 2009, 07:49:06 am
running the same import (csv, 194 contacts, ard. one dozen custom fields, duplicate checking "skip") on my web server, the import threw the following error during the last step:

Code: [Select]
/home/phani/public_html/db/sites/all/modules/civicrm/CRM/Core/Error.php, backtrace, 260
/home/phani/public_html/db/sites/all/modules/civicrm/CRM/Core/DAO.php, fatal, 707
/home/phani/public_html/db/sites/all/modules/civicrm/CRM/Import/Parser/Contact.php, getFieldValue, 537
/home/phani/public_html/db/sites/all/modules/civicrm/CRM/Import/Parser.php, import, 366
/home/phani/public_html/db/sites/all/modules/civicrm/CRM/Import/ImportJob.php, run, 224
/home/phani/public_html/db/sites/all/modules/civicrm/CRM/Import/Form/Preview.php, runImport, 228
/home/phani/public_html/db/sites/all/modules/civicrm/CRM/Core/Form.php, postProcess, 247
/home/phani/public_html/db/sites/all/modules/civicrm/CRM/Core/StateMachine.php, mainProcess, 166
/home/phani/public_html/db/sites/all/modules/civicrm/CRM/Core/QuickForm/Action/Next.php, perform, 63
/home/phani/public_html/db/sites/all/modules/civicrm/packages/HTML/QuickForm/Controller.php, perform, 203
/home/phani/public_html/db/sites/all/modules/civicrm/packages/HTML/QuickForm/Page.php, handle, 103
/home/phani/public_html/db/sites/all/modules/civicrm/CRM/Core/Controller.php, handle, 232
/home/phani/public_html/db/sites/all/modules/civicrm/CRM/Core/Invoke.php, run, 197
/home/phani/public_html/db/sites/all/modules/civicrm/drupal/civicrm.module, invoke, 342
, civicrm_invoke,
/home/phani/public_html/db/includes/menu.inc, call_user_func_array, 348
/home/phani/public_html/db/index.php, menu_execute_active_handler, 18

i'll try to figure out what this means, but on first sight i can't make much sense of it. BUT ALL CONTACTS have actually been IMPORTED. new group & tag were NOT created, and the temp. import_job table is still there. so overall it seems to be working.

(i suspect the failure on my local machine was due to it being rather slow, mysql not tuned at all, and me running KDE 4.3, which is at present in alpha-testing.)

if this helps anybody figuring out what's not working properly good; otherwise i can live happily with how importing works now.
« Last Edit: February 10, 2009, 08:01:15 am by phani »

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: I Get Error Upon Successful CSV Import
February 10, 2009, 09:16:49 am
phani:

Quote
/home/phani/public_html/db/sites/all/modules/civicrm/CRM/Import/Parser/Contact.php, getFieldValue, 537
Actually there was bug in import which now fixed and will be part of next beta. I think you get this error when you have empty external Id.

Thanx

Kurund
Found this reply helpful? Support CiviCRM

phani

  • I’m new here
  • *
  • Posts: 28
  • Karma: 3
    • namahatta.org DB
Re: I Get Error Upon Successful CSV Import
February 11, 2009, 12:13:50 am
that wasn't the case, i provided an external ID. but i'll wait for the next beta release. until then importing works good enough. i also imported activity history, providing the internal ID, and that works fine, too.

two things i noticed: that a subject is still required--even though i read somewhere that subject field wasn't required anymore since 2.whatever. this isn't a problem, of course.

and then the external ID doesn't seem to be available for synchronization of activity imports. i had to export the contacts to get the internal ID and provide that; also something that's supposed to be fixed in 2.1, i think.

thanks, phani.

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: I Get Error Upon Successful CSV Import
February 11, 2009, 02:35:40 am
External ID seems to be available for Activity Import in v2.2, so might have been missing feature or bug in v2.1

Kurund
Found this reply helpful? Support CiviCRM

phani

  • I’m new here
  • *
  • Posts: 28
  • Karma: 3
    • namahatta.org DB
Re: I Get Error Upon Successful CSV Import
February 11, 2009, 10:25:07 pm
i _am_ using 2.2 here, and couldn't find external ID for matching imported activities. i'll look again the next time, which will be in a couple hours, but am pretty sure there's only internal ID in the drop-down list.

thanks, phani.

phani

  • I’m new here
  • *
  • Posts: 28
  • Karma: 3
    • namahatta.org DB
Re: I Get Error Upon Successful CSV Import
February 13, 2009, 11:45:10 am
after upgrading to beta-2 i didn't notice any of the above mentioned problems anymore. great job!

(i did find that supplying a soucre-ID doesn't seem to have any effect, but i'll post that as a separate topic.)

thanks a lot, phani.


PS: external ID is available to map imported activities; don't know now if it was already available in beta-1, but it's definitely available in beta-2.
« Last Edit: February 13, 2009, 12:05:44 pm by phani »

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Discussion (deprecated) »
  • Alpha and Beta Release Testing »
  • 2.2 Release Testing »
  • I Get Error Upon Successful CSV Import

This forum was archived on 2017-11-26.