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 CiviContribute (Moderator: Donald Lobo) »
  • Problem importing contributions
Pages: [1]

Author Topic: Problem importing contributions  (Read 1356 times)

randallemery

  • Guest
Problem importing contributions
August 12, 2008, 09:19:56 pm
I am trying to import contributions and keep getting "No matching Contact found for (email@domain.com)" when I map the email account to the "External ID (contact matching)" field.

The same input file has already been used to upload contacts, and that worked great.

Is there a way that I can match on email address?

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Problem importing contributions
August 13, 2008, 10:06:38 am
External ID is actually a specific field in CiviCRM. Unless you populated that field with your contacts' email addresses - mapping email address to that field won't work. If you're running 2.0.x, and have the default Contact Matching rules in place (email, or first and last name) - I think you can map the email address column in your input to the Email Address -> Primary field.
Protect your investment in CiviCRM by  becoming a Member!

randallemery

  • Guest
Re: Problem importing contributions
August 14, 2008, 02:13:37 pm
Thanks.  I double checked and didn't see the email field in the contribution import (it was there with contacts, though).  I'm using version 2.0.4.

So instead I updated the external field with the following SQL statement as suggested.  Here's the SQL statement I used if anybody is doing the same thing in the future:

Code: [Select]
UPDATE civicrm_contact c JOIN civicrm_email e ON c.id = e.contact_id  SET c.external_identifier = e.email WHERE e.is_primary = 1
Interesting side note: the contribution import then worked OK -- sort of.  It seemed to time out, or hit some error, and when it did, it directed me back to /civicrm/contribute/import instead of /en/civicrm/contribute/import (I'm using Drupal with i18n).  This resulted in a "Page Not Found" message on my Drupal site.

I tried again and more records (though still not all) were updated correctly.  I might try breaking the import into very small batches.

randallemery

  • Guest
Re: Problem importing contributions
August 15, 2008, 09:45:47 pm
Just wanted to report back that when I uploaded at a time of the day with a lighter server load and broke contributions into batches of 50, everything worked fine.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • Problem importing contributions

This forum was archived on 2017-11-26.