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) »
  • Importing from Kintera
Pages: [1]

Author Topic: Importing from Kintera  (Read 967 times)

fen

  • I post frequently
  • ***
  • Posts: 216
  • Karma: 13
    • CivicActions
  • CiviCRM version: 3.3-4.3
  • CMS version: Drupal 6/7
  • MySQL version: 5.1/5.5
  • PHP version: 5.3/5.4
Importing from Kintera
December 20, 2010, 01:42:28 pm
Has anyone migrated a Blackbaud (Kintera) database into CiviCRM?

I'm starting this process now for a client and would appreciate pointers to any similar projects.

I'll post my findings/experience/process as a Case Study to the wiki so that others may benefit.

CiviTeacher.com

  • I live on this forum
  • *****
  • Posts: 1282
  • Karma: 118
    • CiviTeacher
  • CiviCRM version: 3.4 - 4.5
  • CMS version: Drupal 6&7, Wordpress
  • MySQL version: 5.1 - 5.5
  • PHP version: 5.2 - 5.4
Re: Importing from Kintera
December 24, 2010, 12:42:55 am
Kintera!  Sweet mercy...I have worked with this software too much for one lifetime.  But anyway, to your question.

Yes you can import data from Kintera.  You can import anything from Kintera so long as you can EXPORT it from Kintera in a CSV file with column headers that make sense.

Generally speaking, I prefer to import in the following method:

1. Contact data first: name, email, address, phone, etc
2. Contact groups
3. Contributions

I try to import in batches of less than 2500 rows at a time, as the chance of an error, connection problem, or glitch is lessened, IMHO.

Good luck!
Try CiviTeacher: the online video tutorial CiviCRM learning library.

wexzone

  • I post occasionally
  • **
  • Posts: 33
  • Karma: 0
Re: Importing from Kintera
January 06, 2011, 10:06:47 am
I am going through this right now as well.  I export from Kintera into a CSV, then import to CiviCRM.  It takes a lot of work to get the field mapping working right.

I am starting to think that working with the Kintera API to generate a MySQL might be the better way to go, less hassle.

fen

  • I post frequently
  • ***
  • Posts: 216
  • Karma: 13
    • CivicActions
  • CiviCRM version: 3.3-4.3
  • CMS version: Drupal 6/7
  • MySQL version: 5.1/5.5
  • PHP version: 5.3/5.4
Re: Importing from Kintera
January 06, 2011, 10:27:39 am
Heh ;) There's a Kintera API?

I've pulled the CSV files into a mysql database manually.  If you'd like to know how I did that, let me know (and it's something I'll eventually write up in a case study...)

wexzone

  • I post occasionally
  • **
  • Posts: 33
  • Karma: 0
Re: Importing from Kintera
January 06, 2011, 10:29:30 am
Yeah, that Kintera API is pretty weak..  ;D

I would definitely be interested on how you did the CSV into the DB manually.  PM me, if you want.  Maybe we can collaborate.

fen

  • I post frequently
  • ***
  • Posts: 216
  • Karma: 13
    • CivicActions
  • CiviCRM version: 3.3-4.3
  • CMS version: Drupal 6/7
  • MySQL version: 5.1/5.5
  • PHP version: 5.3/5.4
Re: Importing from Kintera
January 06, 2011, 01:07:08 pm
It's all pretty hackish, but it got the job done.

First, I needed to get all the dates into a format mysql could easily understand, so I created and ran dateFormat.pl (as I like to say, Perl is the duct tape of the Internet) on each:
Code: [Select]
dateFormat.pl Activities_19000101_to_20110102.csv > activities.csv

Then by looking at the data I decided what fields were INT, DATE or VARCHAR(32) and manually (ugh!) created the KinteraCreateTables.sql file.  (Well, I'm an Emacs guy, so with macros, it wasn't that bad.)  I also lower-cased all the field names (I like it that way) and normalized some of them (changing e.g. addressid to address_id and supporterid to supporter_id).

As VARCHAR(32) would be too small for some text fields so I created and ran another mini-script, columnLength.pl on each .csv file:
Code: [Select]
columnLength.pl activities.csv
...increasing the '32' where reasonable and changing some big text fields into TEXT.  You'll want to check your column lengths and adjust where necessary.

Then (with another Emacs macro) I created KinteraLoadTables.sql and ran those two sql files:
Code: [Select]
mysql -e "create database kintera"
mysql kintera < KinteraCreateTables.sql
mysql kintera < KinteraLoadTables.sql

The scripts can all be found at https://svn.civicactions.net/repos/civicrm/scripts/loadcsv/

I'll contact you via PM, though probably not today.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Import (Moderator: Yashodha Chaku) »
  • Importing from Kintera

This forum was archived on 2017-11-26.