Error: An item with the same key has already been added

When clicking into the Online Express plugin after enabling Consent Tracking, users notice that Online Express will automatically attempt to add opt-out Consent records into the Raiser's Edge database and then generate the error "An item with the same key has already been added".
This error occurs when there is an opt-out consent targeting an email addresses whose Constituent/Relationship record has duplicate instances of the email address. For example, let's say we have two Constituents with the following contact information on their Constituent record:

Joseph Diresta (Constituent ID: 1)
Phone TypePhone Number
Robert Hernandez (Constituent ID: 2)
Phone TypePhone Number

Let's say and click the "Unsubscribe" link in an email sent from Online Express.

Joseph Diresta's opt-out would successfully write a Consent record to his Constituent record.
Robert Hernandez, on the other hand, would result in the "An item with the same key has already been added" error due to the duplicate email address.

The error can be resolved by removing the duplicate emails from all affected records and navigating back to the plugin. If you need assistance identifying which Constituent records and Phone Numbers are causing this error, please contact Support.

A permanent resolution will be included in an upcoming release of Online Express. Tentatively, the expected release date for the upcoming release is 4/26/18. 

To receive updates regarding upcoming releases for Online Express, please refer to How to determine who receives system updates for Online Express (includes video demo).

Steps to Duplicate

  1. Log into RE with any RE Username
  2. Click on the Online Express plugin
  3. Notice the "Updating.....Adding opt-out consents to records" prompt
  4. Error appears
  5. Click OK to the error
  6. OLX plugin is blank

Was this article helpful?