SalesforceFoundation / NPSP

The current version of the Salesforce.org Nonprofit Success Pack
http://www.salesforce.org/nonprofit/nonprofit-success-pack/
BSD 3-Clause "New" or "Revised" License
16 stars 3 forks source link

BDI/NPSP Data Import: Duplicate Opportunities when importing Recurring Donations with Campaigns via BDI #6695

Closed jamesbsfdc closed 2 years ago

jamesbsfdc commented 3 years ago

Background

The Summer 2021 release of NPSP (v3.202) introduced functionality to allow a user to import Recurring Donations via Batch Data Import (if Enhanced Recurring Donations is enabled).

Issue Summary

A user who is importing Recurring Donation records with NPSP Data Import will notice that if they populate the Campaign Name (npspDonation_Campaign_Namec) or the Donation Campaign Source (npspDonationCampaignImportedc) fields but none of the Opportunity fields on NPSP Data Import, that two opportunity records are created instead of one when processing the record. Both opportunities will be associated to the imported recurring donation record.

One of the opportunities will have an amount that matches what the user entered in the Recurring Donation Amount field (npspRecurring_Donation_Amountc) whereas the other opportunity will not have an amount.

Steps to Replicate

  1. Ensure Enhanced Recurring Donations is enabled
  2. Create an NPSP Data Import with the following field values: Contact1 First Name: John Contact1 Last Name: Smith Campaign Name: Test Recurring Donation Amount: 5 Recurring Donation Day of Month: (Today's day in month) Recurring Donation Installment Period: Monthly Recurring Donation Installment Frequency: 1 Recurring Donation Name: Test
  3. Process the NPSP Data Import record
  4. Notice that two opportunities are created instead of one and the NPSP Data Import record has populated the Donation Imported, Donation Imported Status and associated fields

Workaround

If a user is importing Recurring Donation records they should populate opportunity data as well as recurring donation data in the NPSP Data Import record. These opportunity values will be used to create the opportunity record as an "open" or closed-won" stage depending on the value in the Donation Stage field. This will result in only one opportunity being created, with the opportunity being linked to the importing recurring donation via the Recurring Donation lookup field on the opportunity.

Another workaround would be to ensure the campaign fields are blank, however this means the Recurring Donation will not have a value in the Campaign lookup field

jamesbsfdc commented 3 years ago

W-10034496

melissabarber commented 2 years ago

Manually closing issue because PR to fix was already merged.