Skip to content
DataMiner DoJo

More results...

Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors
Search in posts
Search in pages
Search in posts
Search in pages
Log in
Menu
  • Updates & Insights
  • Questions
  • Learning
    • E-learning Courses
    • Empower Replay: Limited Edition
    • Tutorials
    • Open Classroom Training
    • Certification
      • DataMiner Fundamentals
      • DataMiner Configurator
      • DataMiner Automation
      • Scripts & Connectors Developer: HTTP Basics
      • Scripts & Connectors Developer: SNMP Basics
      • Visual Overview – Level 1
      • Verify a certificate
    • Video Library
    • Books We Like
    • >> Go to DataMiner Docs
  • Expert Center
    • Solutions & Use Cases
      • Solutions
      • Use Case Library
    • Markets & Industries
      • Media production
      • Government & defense
      • Content distribution
      • Service providers
      • Partners
      • OSS/BSS
    • Agile
      • Agile Webspace
      • Everything Agile
        • The Agile Manifesto
        • Best Practices
        • Retro Recipes
      • Methodologies
        • The Scrum Framework
        • Kanban
        • Extreme Programming
      • Roles
        • The Product Owner
        • The Agile Coach
        • The Quality & UX Coach (QX)
    • DataMiner DevOps Professional Program
      • About the DevOps Program
      • DataMiner DevOps Support
  • Downloads
  • More
    • DataMiner Releases & Updates
    • Feature Suggestions
    • Climb the leaderboard!
    • Swag Shop
    • Contact
    • Global Feedback Survey
  • PARTNERS
    • All Partners
    • Technology Partners
    • Strategic Partner Program
    • Deal Registration
  • >> Go to dataminer.services

SRM Resource Export Error

Solved475 views5th July 2023
1
Terry Barton [DevOps Member]115 18th May 2023 0 Comments

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.

Marieke Goethals [SLC] [DevOps Catalyst] Selected answer as best 5th July 2023

1 Answer

  • Active
  • Voted
  • Newest
  • Oldest
3
Jorge Dias [SLC] [DevOps Enabler]4.79K Posted 18th May 2023 0 Comments

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.

Marieke Goethals [SLC] [DevOps Catalyst] Selected answer as best 5th July 2023
Please login to be able to comment or post an answer.

My DevOps rank

DevOps Members get more insights on their profile page.

My user earnings

0 Dojo credits

Spend your credits in our swag shop.

0 Reputation points

Boost your reputation, climb the leaderboard.

Promo banner DataMiner DevOps Professiona Program
DataMiner Integration Studio (DIS)
Empower Katas
Privacy Policy • Terms & Conditions • Contact

© 2025 Skyline Communications. All rights reserved.

DOJO Q&A widget

Can't find what you need?

? Explore the Q&A DataMiner Docs