Hi All
Using the srm_discoverresources script to export resources I get an error " An item with the same key already exists". Full error description below:
System.ArgumentException: An item with the same key has already been added.
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 System.Linq.Enumerable.ToDictionary[TSource,TKey](IEnumerable`1 source, Func`2 keySelector)
at SolutionScripts.AutomationScripts.View.Script.ExportAction.GetElementResourcesByFunction(Element element)
at SolutionScripts.AutomationScripts.View.Script.ExportAction.ReadProtocolFunctionsData(Dictionary`2 excelData, List`1 systemFunctions, String protocolName, List`1 functions)
at SolutionScripts.AutomationScripts.View.Script.ExportAction.ReadResourcesData(Dictionary`2 excelData)
at SolutionScripts.AutomationScripts.View.Script.ExportAction.PreProcessing()
at SolutionScripts.AutomationScripts.View.Script.Run(Engine engine) (Script 'SRM_DiscoverResources')
As the script fails the export.xls file is not generated.
Any clues on how I can resolve this issue?
I do have a lot resources to add and I don't want to do this manually.
Hi Terry,
It seems that your system has some corrupted data in Generic DVE Linker Table. There should be two entries with the same value in the column Linker Generic DVE FK, can you please check if you can find it and fix it?
Otherwise please get in touch with support team that we will take a look.