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

Does QActionTable support LINQ?

Solved890 views23rd November 2023C++ protocols SLProtocolExt
4
Robin Becker [DevOps Advocate]1.40K 23rd November 2023 2 Comments

Hi,

Does the class QActionTable, which implements IEnumerable, support LINQ functions? I get errors like the following when trying to use them and wondering if I’m doing something wrong:

System.InvalidCastException: Object must implement IConvertible.
   at System.Convert.ChangeType(Object value, Type conversionType, IFormatProvider provider)
   at System.Convert.ChangeType(Object value, Type conversionType)
   at Skyline.DataMiner.Scripting.QActionTableEnumerator`1.get_Current()
   at Skyline.DataMiner.Net.Helper.EnumerableExtensions.ForEach[T](IEnumerable`1 value, Action`1 action)
   ...
   at QAction.Run(SLProtocolExt protocol)

EDIT: Example code, where streamusage is a table:

protocol.streamusage.ForEach(su => protocol.Log($”QA{protocol.QActionID}|Test|{su}”, LogType.DebugInfo, LogLevel.NoLogging));

Robin Becker [DevOps Advocate] Selected answer as best 23rd November 2023
Jorge Dias [SLC] [DevOps Enabler] commented 23rd November 2023

Hi Robin, can you please add the code that you are trying to execute?

Robin Becker [DevOps Advocate] commented 23rd November 2023

Jorge see edit.

1 Answer

  • Active
  • Voted
  • Newest
  • Oldest
4
Pedro Debevere [SLC] [DevOps Enabler]1.80K Posted 23rd November 2023 1 Comment

Hi Robin, this currently is not supported due to an issue in the QActionTable class of the helper code. We have a task in our backlog to fix this 185850.

Robin Becker [DevOps Advocate] Posted new comment 23rd November 2023
Robin Becker [DevOps Advocate] commented 23rd November 2023

Thanks for the answer. Consider this a +1 vote for that task. I find it much cleaner and simpler than going the DMS route.

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