000039190 - Unexpected error saving record when MRDC and Calculated Cross-Reference/Related Records fields are on Layout at same time in RSA Archer

Document created by RSA Customer Support Employee on Aug 6, 2020
Version 1Show Document
  • View in full screen mode

Article Content

Article Number000039190
Applies ToRSA Product Set: RSA Archer
RSA Version/Condition: 6.x
IssueAn unexpected error occurs saving record: An item with the same key has already been added.

Sample exception from Archer w3wp log file.

<ApplicationData>
  <TraceData>
    <DataItem>
      <TraceRecord Severity="Error">
        <Description>An item with the same key has already been added.</Description>
        <ContextData>
          <BaseUrl>https://web68/RSAarcher/GenericContent/Record.aspx</BaseUrl>
          <id>0</id>
          <Module>ModuleId: 69, ModuleName: Facilities, ModuleStatus: ActiveInProduction, ModuleType: Application</Module>
        </ContextData>
        <Exception>
          <Message>An item with the same key has already been added.</Message>
          <StackTrace>   at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
   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 Security2000.GenericContent.Record.ReloadCalculatedCrossReferenceFields()
   at ArcherTech.Web.Modules.GenericContent.Views.RecordPresenter.ApplyRecordChanges()
   at Security2000.GenericContent.Record.SaveApplyButton_Click(Object sender, EventArgs e)
   at ArcherTech.Web.UI.Controls.ToolbarButton_UI.RaisePostBackEvent(String eventArgument)
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
          </StackTrace>
        </Exception>
      </TraceRecord>
    </DataItem>
  </TraceData>
</ApplicationData>
CauseA Multiple Reference Display Control (MRDC) field and a Calculated Cross-Reference/Related Records field are on the Layout at same time.  The MRDC field also has the Calculated Cross-Reference/Related Records added to the Selected References option and the Suppress option is not enabled.
ResolutionUpgrade to RSA Archer 6.8 P4 or higher.
WorkaroundChoose one of the following workarounds:
  1. Remove the MRDC or Calculated Cross-Reference/Related Records from the Layout.
  2. Edit the MRDC field's Selected References option and enable the Suppress option for Calculated Cross-Reference/Related Records field.

User-added image
NotesDefect is logged as ARCHER-96478.

Attachments

    Outcomes