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 Errors, Times Out, or Repeats Screen for Step 3 of 4
Pages: 1 [2]

Author Topic: Import Errors, Times Out, or Repeats Screen for Step 3 of 4  (Read 17821 times)

Michael McAndrew

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1274
  • Karma: 55
    • Third Sector Design
  • CiviCRM version: various
  • CMS version: Nearly always Drupal
  • MySQL version: 5.5
  • PHP version: 5.3
Re: Import Errors, Times Out, or Repeats Screen for Step 3 of 4
February 18, 2009, 04:11:05 pm
In case this helps people, I increased my php memory limit to 128M in php.ini and now my imports are flying in :-) Fantastic!
Service providers: Grow your business, build your reputation and support CiviCRM. Become a partner today

businessbroker

  • Guest
Re: Import Errors, Times Out, or Repeats Screen for Step 3 of 4
February 19, 2009, 01:25:42 am
lying imports using civicrm 2.1 right? and how many records are you importing? with many fields eachone (dimension in kb of imported files?)

Michael McAndrew

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1274
  • Karma: 55
    • Third Sector Design
  • CiviCRM version: various
  • CMS version: Nearly always Drupal
  • MySQL version: 5.5
  • PHP version: 5.3
Re: Import Errors, Times Out, or Repeats Screen for Step 3 of 4
February 20, 2009, 08:42:29 am
largest ones were
* organisations 480kb around a 1,000 records with 31 columns including a fair amount of custom data,
* individuals 293kb with not much custom data about 5,000 records
* activities - about 4,000 simple records
on 2.1.4 they all completed in a few minutes
Service providers: Grow your business, build your reputation and support CiviCRM. Become a partner today

midloman

  • I post occasionally
  • **
  • Posts: 62
  • Karma: 1
Re: Import Errors, Times Out, or Repeats Screen for Step 3 of 4
June 11, 2009, 02:20:58 am
I get this error as well.  I'm on a shared server (BlueHost).  I'm running Civi 2.2.5 under Drupal 6.12
I have php memory set to 128M, BlueHost assures me that full amount is available to use.

I've uploaded the CSV file using FireFox, IE, and Chrome, and the import still fails.
I know there is a relationship between the number of fields imported, and the number of records successfully imported.
The fewer number of fields, the greater number of records that will succeed.

No one has been able to reproduce the problem on the demo server.  I'm willing to bet the demo server is not on a shared host.
I believe the problem arises when the server decides that you've used your allotment of database time and switches context to another user and returns a 500 error to you.

Perhaps, we could intercept that 500 error - close and reopen the database insert and continue on without the program puking.
I'm a php and mysql nube, so I don't know.  Maybe Lobo does.

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 Errors, Times Out, or Repeats Screen for Step 3 of 4
June 11, 2009, 07:07:42 am

for a shared host, i would recommend you split your import file into multiple smaller files and import them individually

the 500 error indicates either running out of memory or time (most likely). closing and opening the db connection will not help (since u've lost control of the code at that point)

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

midloman

  • I post occasionally
  • **
  • Posts: 62
  • Karma: 1
Re: Import Errors, Times Out, or Repeats Screen for Step 3 of 4
June 12, 2009, 06:01:06 am
I think I agree, mostly.  For those people here that have the problem, splitting the input file into smaller chunks does solve the problem.  However - that's a work-around that can be really unpractical depending on the size of the input file, how often you need to upload data, the size of a chunk that can be successful, and who is doing the import.  We are a chapter of a national organization that needs to import 1300 or so records each month.  Our maximum safe chunk is about 250 records, and untechnical volunteers are doing the import.  I'm willing to bet that many such smaller organizations exist that must operate on shared servers. 

What about a throttle mechanism that you can use to specify the number of records that can be safely imported, and close/open the db connection before it dies?  In other words, have a means for civi to do the file split based upon a user-supplied number of records?


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 Errors, Times Out, or Repeats Screen for Step 3 of 4
June 12, 2009, 06:22:35 am
Quote from: midloman on June 12, 2009, 06:01:06 am
What about a throttle mechanism that you can use to specify the number of records that can be safely imported, and close/open the db connection before it dies?  In other words, have a means for civi to do the file split based upon a user-supplied number of records?

Wanna submit a patch that does the above?

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

midloman

  • I post occasionally
  • **
  • Posts: 62
  • Karma: 1
Re: Import Errors, Times Out, or Repeats Screen for Step 3 of 4
June 12, 2009, 06:29:33 am
I'd love to, but I'm a php noob.  I haven't even found the place where all the magic takes place.  An alternative possibility might be a batch import process that bypasses the interactive screens and uploads all files with a specific prefix.  some_prefix_xxx.csv?

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 Errors, Times Out, or Repeats Screen for Step 3 of 4
June 12, 2009, 06:39:03 am

consider hiring a developer and/or getting a group of folks interested in the same functionality and raising the money needed to implement the feature

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

midloman

  • I post occasionally
  • **
  • Posts: 62
  • Karma: 1
Re: Import Errors, Times Out, or Repeats Screen for Step 3 of 4
June 12, 2009, 06:46:46 am
Yep, that's one of the problems of being a small non-profit org.  If we had the money to do stuff like that, we'd have the money to use a dedicated server - and not have the problem in the first place.  I'm willing to try the patch, if you're willing to point me to the appropriate chunks of code.

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 Errors, Times Out, or Repeats Screen for Step 3 of 4
June 12, 2009, 07:25:45 am

1. a group is more powerful than a single org :) hence the suggestion to group together a bunch of folks

2. time is money. Sometime the few extra dollars for a VPS is worth the saved time and effort (yours and ours)

3. you might want to read http://civicrm.org/architecture/. The import code is at CRM/Import/* The code is quite complex and very OO (object oriented). Not the easiest of code bases to understand for a php noob

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

Pages: 1 [2]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Import (Moderator: Yashodha Chaku) »
  • Import Errors, Times Out, or Repeats Screen for Step 3 of 4

This forum was archived on 2017-11-26.