Import contributions: Contact matching by email no longer available
Overview
When importing contributions, step 2 of 3 defines matching fields.
Hereby, we also have to define how to match the contact, for which the contributions should be attached. Matching of contacts is possible by contact ID, external identifier or by email.
However, starting with CiviCRM 5.54.0, email is no longer available for contact matching!
Also, if we select email and check "update this field mapping", the field "email" won't be saved anymore.
Reproduction steps
- Click on Contributions -> Import contributions.
- Select a file with emails and the other mandatory fields for contribution import
- Within "Match Fields (step 2 of 3)": select email as contact match
-> error "Missing required contact matching fields. email(weight 10) (Sum of all weights should be greater than or equal to threshold: 10)"
.
Current behaviour
Importing contributions seems to be based on the unsupervised de-dupe rule. However, matching on email is not accepted anymore.
This issue started with 5.54.0. The previous version, 5.53.0 was still working as expected.
Expected behaviour
As in previous versions, it should be possible to identify contacts by using the email as contact matcher
Environment information
- Browser: _Firefox 105.0.3
- CiviCRM: _5.54.0 (was working well with 5.52.x)
- PHP: _7.4
- CMS: _Drupal 7.52
- Database: MariaDB 10.5.15
Comments
There is a workaround to import contributions using email as contact identifier:
- Add an empty column to the csv file, that shall be imported
- Use "External Identifier (match to contact)" as field match for that column
- Select email as field match
- make sure to have a unsupervised de-dupe rule that only uses email
-> this will import contributions based on the mail.
However, this workaround doesn't solve that part of the issue, that email is not saved in the field mapping.