000034920 - RSA Archer Separate Email subscription notification fails to send with the message: "An item with the same key has already been added."

Document created by RSA Customer Support Employee on Mar 10, 2017Last modified by RSA Customer Support on Apr 26, 2019
Version 4Show Document
  • View in full screen mode

Article Content

Article Number000034920
Applies ToRSA Product Set: Archer
RSA Product/Service Type: Archer
RSA Version/Condition: 5.x, 6.1, 6.2,
Platform: Windows
IssueA notification configured as Separate Emails, that contains a user in the CC field that matches another user in the To field, will fail and generate the following error:

ArcherTech.Notifications.Workflow.SendNotification.SendNotificationJob, ArcherTech.Notifications, Version=5.5.30300.1010, Culture=neutral, PublicKeyToken=null 2016-12-15 20:57:19.913 (removed) 2016-12-15 20:57:21.163 Failed
2016-12-15 20:57:26.07 System.ArgumentException: An item with the same key has already been added.  1 1 4476 
 at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add) 
 at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable`1 source, Func`2 keySelector, Func`2 elementSelector, IEqualityComparer`1 comparer)  
 at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable`1 source, Func`2 keySelector, Func`2 elementSelector)  
 at ArcherTech.Notifications.Workflow.SendNotification.RecipientsByRenderSettingsHelper.GetPermissionedRenderSettingsByUserRecipient(IEnumerable`1 notificationUserRecipients, IList`1& baseLevelReferenceFieldIds)  
 at ArcherTech.Notifications.Workflow.SendNotification.RecipientsByRenderSettingsHelper.GetArcherContentRecipientsByRenderSettings(IEnumerable`1 notificationRecipients)  
 at ArcherTech.Notifications.Workflow.SendNotification.RecipientsByRenderSettingsHelper.GetRecipientsByRenderSettings(IEnumerable`1 notificationRecipients)  
 at ArcherTech.Notifications.Workflow.SendNotification.SendNotificationJobHandler.ProcessJob()  
at ArcherTech.Notifications.Workflow.SendNotification.SendNotificationJob.RunWorkflow_ExecuteCode(Object sender, EventArgs e) 
at System.Workflow.ComponentModel.Activity.RaiseEvent(DependencyProperty dependencyEvent, Object sender, EventArgs e)  
at System.Workflow.Activities.CodeActivity.Execute(ActivityExecutionContext executionContext) 
at System.Workflow.ComponentModel.ActivityExecutor`1.Execute(T activity, ActivityExecutionContext executionContext) 
 at System.Workflow.ComponentModel.ActivityExecutorOperation.Run(IWorkflowCoreRuntime workflowCoreRuntime)  
at System.Workflow.Runtime.Scheduler.Run()
CauseThe CC field is invalid for selection when the notification is configured for Separate Emails, but a situation has been identified where this value may remain populated after a configuration change or may be populated by a package installation, resulting in the notification's configuration to become invalid.
ResolutionThis defect was fixed in Archer versions 6.2 Patch 2, 6.3, and all later versions.
WorkaroundAs a workaround,
  1. Edit the notification
  2. Change the notification from Separate Email to One Email.
  3. Remove any visible contents of the CC field (if applicable).
  4. Save the notification.
  5. Edit the notification.
  6. Change the notification from One Email back to Separate Email.
  7. Save the notification.