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) »
  • data cleaning; notes export/import
Pages: [1]

Author Topic: data cleaning; notes export/import  (Read 807 times)

daveatkins

  • I post occasionally
  • **
  • Posts: 68
  • Karma: 2
  • CiviCRM version: 4.1.6
  • CMS version: Drupal 6.28
  • MySQL version: 5.1.41
  • PHP version: 5.2.10
data cleaning; notes export/import
October 07, 2011, 07:33:22 am
I am migrating data from an ACT! database to CiviCRM. A previous data migration was done with information from notes in ACT concatenated into a single row/notes field for Civi. But now I need to redo this with changed data.

What I want to do now is re-import cleaned up data to update the information already in CiviCRM. (I cannot start over; the Civi database has been in use for a year).

What I would like to do is perform a field-by-field clean and update. For most fields, I think I can just do an import with duplicates set to update. But when I included the notes field, I ended up with a second notes row for every contact. My solution now is that I would like to blow away all the notes (this field has not been used in the live CiviCRM installation) and re-import them. I would create a spreadsheet with email address and the new notes field information, then do an import/fill.

How do I remove the existing notes from contact records? Can I (is it safe to) just go into the database and delete * from civicrm_note? I cannot find any way to manage this information from the interface and I am not going to go through 12,000 contact records to individually delete their notes.

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: data cleaning; notes export/import
October 10, 2011, 04:27:02 pm
deleting from civicrm_note table can work.

the best way to find out if it is safe (in your case) is to make a development site, then try it.   if you can't do that, make a full backup, then try it.  if it broke everything, then restore from backup.  take the site down in the evening for 1 hour if you have to.
Try CiviTeacher: the online video tutorial CiviCRM learning library.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Import (Moderator: Yashodha Chaku) »
  • data cleaning; notes export/import

This forum was archived on 2017-11-26.