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) »
  • Error on Import
Pages: 1 [2]

Author Topic: Error on Import  (Read 3695 times)

flug

  • I post frequently
  • ***
  • Posts: 126
  • Karma: 12
Re: Error on Import
September 12, 2012, 08:27:49 pm
Quote from: glocalwebtech on April 02, 2012, 07:07:06 am
Hi,

I am trying to import a csv file and when I click on yes Are you sure, I get this error message on the next screen:

Fatal error: Call to undefined function _civicrm_api3_deprecated_duplicate_formatted_contact() in /home/nywriter/public_html/wp-content/plugins/civicrm/civicrm/CRM/Import/Parser/Contact.php on line 552

OK, I had this same problem today trying import a bunch of organization contacts in CiviCRM 4.2 under Drupal 6.

I went in to CRM/Import/Parser/Contact.php about line 39 and added this line:

Code: [Select]
require_once 'api/v3/DeprecatedUtils.php';
I'm not sure if that is the proper way to fix the problem but it did seem to fix the problem.

When I re-tried the import it completed successfully but with this message:

Quote
CiviCRM has detected mismatched contact IDs. These records have not been updated.
You can Download Mismatched Contacts. You may then correct them, and import the new file with the corrected data.

I'm assuming it is these "mismatched contact IDs" that triggered the error on line 552 of Contact.php.

Investigating a bit further, it turns out that all the contacts I was uploading had the problem of "Mismatched or Invalid Contact SubType."
« Last Edit: September 12, 2012, 08:47:25 pm by flug »

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

This forum was archived on 2017-11-26.