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) »
  • Bug with importing contributions.
Pages: [1]

Author Topic: Bug with importing contributions.  (Read 1223 times)

tbruce

  • Guest
Bug with importing contributions.
January 14, 2008, 06:13:30 am
Folks:
I realize that the preferred method for bug reporting is to attempt duplication in the sandbox.  I'm wilfully and obstinately evading that ;D.

Imported records appear as they should in the preview mode after my custom field mapping is loaded.  At step 4 (the actual import) all the records fail, ostensibly because the ID matches multiple records.  In fact, the id (and all the other data) being passed into the actual import function is null.

Running debugging statements at various places in /modules/civicrm/CRM/Contribute/Import/Parser/Contribution.php  would seem to show that the values in the activeFields array within the Contribution object are never getting set.  To my ignorant eyes this is puzzling, because they show up just fine in the preview tables on the web page, but maybe it doesn't get them from the Contribution object.  Inspecting the code, I can't seem to find anyplace where those attributes get set in the code (which looks like it ought to be happening in the summary() function, but I can't see where).   It is entirely possible that this is being done in some elegant way that I am overlooking.  Dumping the $values variable passed into summary shows all the values that should be coming in from the CSV file, just as they should be, but dumping $this after summary() is called from the import() function shows no values being assigned.

I'm really confused.  Any help in dealing with this tangle would be greatly appreciated.  Version is 1.9.11960

t.

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Bug with importing contributions.
January 14, 2008, 06:20:12 am
Can you replicate this on http://demo.civicrm.org. If you are able to replicate file an issue in jira and also attached sample csv file.

thanx

kuurnd
Found this reply helpful? Support CiviCRM

tbruce

  • Guest
Re: Bug with importing contributions.
January 14, 2008, 07:15:26 am
You're right.  I should know better than to expect help here unless I first do the Ritual Dance of CSV Submission. 

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

This forum was archived on 2017-11-26.