000031743 - Error message 'One or more errors occurred' while opening or saving a record in RSA Archer

Document created by RSA Customer Support Employee on Jun 14, 2016Last modified by RSA Customer Support Employee on Apr 21, 2017
Version 3Show Document
  • View in full screen mode

Article Content

Article Number000031743
Applies ToRSA Product Set: Archer
RSA Product/Service Type: Question Library
RSA Version/Condition: 5.4
Platform: Windows
IssueUser is getting an unexpected error while opening or saving a record. This is happening after they loaded in the updates to the question library.
User-added image
The log file displays output similar the the example below.
<ApplicationData>
        <TraceData>
            <DataItem>
                <TraceRecord Severity="Error" xmlns="http://schemas.microsoft.com/2004/10/E2ETraceEvent/TraceRecord">
                    <TraceIdentifier>Archer.Web</TraceIdentifier>
                    <LogReferenceId>100515-181939-7351</LogReferenceId>
                    <Description>One or more errors occurred.</Description>
                    <AppDomain>/LM/W3SVC/1/ROOT-1-130884400352153450</AppDomain>
                    <ContextData>
                        <BaseUrl>http://grcportalqa.medcity.net/SearchContent/Search.aspx</BaseUrl>
                        <View>Default</View>
                        <Module>ModuleId: 169, ModuleName: Question Library, ModuleStatus: ActiveInProduction, ModuleType: Application</Module>
                        <frameWidthHeight>1706,876</frameWidthHeight>
                    </ContextData>
                    <Exception>
                        <ExceptionType>System.AggregateException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</ExceptionType>
                        <Message>One or more errors occurred.</Message>
                        <Source>mscorlib</Source>
                        <StackTrace>   at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
   at System.Threading.Tasks.Task.Wait()
   at System.Threading.Tasks.Parallel.ForWorker[TLocal](Int32 fromInclusive, Int32 toExclusive, ParallelOptions parallelOptions, Action`1 body, Action`2 bodyWithState, Func`4 bodyWithLocal, Func`1 localInit, Action`1 localFinally)
   at System.Threading.Tasks.Parallel.ForEachWorker[TSource,TLocal](IEnumerable`1 source, ParallelOptions parallelOptions, Action`1 body, Action`2 bodyWithState, Action`3 bodyWithStateAndIndex, Func`4 bodyWithStateAndLocal, Func`5 bodyWithEverything, Func`1 localInit, Action`1 localFinally)
   at System.Threading.Tasks.Parallel.ForEach[TSource](IEnumerable`1 source, ParallelOptions parallelOptions, Action`1 body)
   at ArcherTech.Web.Modules.GenericContent.DataManagers.SearchResultsMetaDataLoader.ConstructReferenceFieldMetaDatas(SessionContext session, LevelMetaData levelMetaData, IList`1 fields, SearchReportBase searchReportBase)
   at ArcherTech.Web.Modules.GenericContent.DataManagers.SearchResultsMetaDataLoader.ContructFieldMetaDataContainersForEachLevel(SessionContext session, SearchReportBase searchReportBase, IEnumerable`1 levels, IEnumerable`1 fieldDefinitions, IList`1 fieldDisplays)
   at ArcherTech.Web.Modules.GenericContent.DataManagers.SearchResultsMetaDataLoader.GetMetaData(SessionContext session, SearchResultsDataContainer dataContainer)
   at ArcherTech.Web.Modules.GenericContent.SearchExecutor.SearchResultsBuildOut(SearchResultsDataContainer srdata)
   at ArcherTech.Web.Modules.GenericContent.SearchExecutor.ExecuteSearch(SearchResultViewConfiguration resultViewConfiguration, Boolean includeNoSelection)
   at ArcherTech.Web.Modules.SearchContent.Views.SearchResultsPresenter.ExecuteSearch(SearchResultViewConfiguration resultsViewConfiguration, Boolean includeNoSelection)
   at Security2000.SearchContent.SearchResults.ExecuteSearch(SearchResultViewConfiguration resultsViewConfiguration)
   at Security2000.SearchContent.Search.GetSearchResults()
   at Security2000.SearchContent.Search.Page_Load(Object sender, EventArgs e)
   at System.EventHandler.Invoke(Object sender, EventArgs e)
   at ArcherTech.Web.ArcherTechPage`2.OnLoad(EventArgs e)
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)</StackTrace>
                        <InnerException>
                            <ExceptionType>System.ArgumentException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</ExceptionType>
                            <Message>An item with the same key has already been added.</Message>
                            <Source>mscorlib</Source>
                            <StackTrace>   at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
   at ArcherTech.Web.Modules.GenericContent.DataManagers.SearchResultsMetaDataLoader.ConstructRelatedLevelMetaData(SessionContext session, Int32 referenceFieldId, IList`1 relatedLevels, IDictionary`2 relatedDisplayFieldDefinitions, IList`1 relatedDisplayFieldDisplays)
   at ArcherTech.Web.Modules.GenericContent.DataManagers.SearchResultsMetaDataLoader.&lt;&gt;c__DisplayClass2e.&lt;ConstructReferenceFieldMetaDatas&gt;b__1f(IReferenceFieldMetaData referenceFieldMetaData)
   at ArcherTech.Provider.Threading.ThreadingFactory.&lt;&gt;c__DisplayClass5`1.&lt;WrapAction&gt;b__4(T state)
   at System.Threading.Tasks.Parallel.&lt;&gt;c__DisplayClassf`1.&lt;ForWorker&gt;b__c()
   at System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask)
   at System.Threading.Tasks.Task.&lt;&gt;c__DisplayClass10.&lt;ExecuteSelfReplicating&gt;b__f(Object param0)</StackTrace>
                        </InnerException>
                    </Exception>
                </TraceRecord>
            </DataItem>
        </TraceData>
    </ApplicationData>
CauseThere was a duplicate Cross Reference field, which was created accidentally by the customer. 
ResolutionUsually these kind of issues can be fixed by identifying the field which is causing the problem. This usually is caused by a bad cross-reference field or a values list field. We need to identify it by moving the field off layout one by one and see if it is still giving the error.
In this scenario, it was an issue with the Question Library, so all the fields are locked and we can't move the fields off layout. Hence, we can deactivate the field which is causing the issue.

Attachments

    Outcomes