Issue | An 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>
|