Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-1926

Import of contribution with unmatched Contribution Type will report success incorrectly


    • Type: Bug
    • Status: Done/Fixed
    • Priority: Major
    • Resolution: Fixed/Completed
    • Affects Version/s: 1.7
    • Fix Version/s: 1.8
    • Component/s: CiviContribute
    • Labels:


      Contribution import is NOT validating the Contribution Type field. Currently, if an import row has an "unmatched" Contribution Type string, we insert a contribution record with a NULL contribution_type_id value. These contribution records are invalid, they don't show up on the Contribution tab and are not returned by searches.

      We should be checking for valid contribution types when we validate other input file properties between the mapping and preview step. AND, if they continue and do the import - we should write an error to the error file and skip the record.

      — Original Post from Chris Mott --------
      When a contribution record is imported with an unmatched "Contribution Type", the import will report that the row was successfully imported on the final count of imported records, but it will not appear subsequently in any searches.

      To recreate this:
      1. Create a CSV file with two contribution records, one with type "Donation" and one with type "Donations" (or any different spelling)
      2. Import the file, The final report will indicate that 2 rows were successfully imported.
      3. Search for all contribution records and observe that only the row with correctly spelled "Donation" will appear.

      Fix should include a check on this Contribution Type matching so that an error to the user will be presented.




            • Assignee:
              sunil Sunil Pawar
              chrism Chris Mott
            • Votes:
              0 Vote for this issue
              0 Start watching this issue


              • Created: