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

This type of ValueWrapper is not supported – Creating DOM instance

Solved389 views26th November 2024DOM dom instances valuewrapper
3
Ana Pinho [SLC] [DevOps Advocate]1.33K 15th November 2024 0 Comments

Hi Dojo,

I'm trying to create a dom instance through a QAction. I'm getting the following error:

Error creating DomInstance. System.NotSupportedException: This type of ValueWrapper is not supported (ValueWrapper`1)

Which is not very descriptive.

Anyway, I've tried a lot of different things. But I suspect this is due to having a FieldDescriptor of type List<GenericEnum<int>> with multiple options allowed.

private FieldValue HandleFieldDescriptor<T>(FieldDescriptorID fieldDescriptorId, T value, bool wrapAsList = false)
{
// Determine the wrapper type based on the wrapAsList flag
var wrapper = wrapAsList
? (IValueWrapper)new ListValueWrapper<T>(new List<T> { value })
: new ValueWrapper<T>(value);

// Return the FieldValue with the appropriate wrapper
return new FieldValue(fieldDescriptorId, wrapper);
}

And I'm using it like this:
var fieldValue = HandleFieldDescriptor(fieldDescriptor.ID, property, isList);
section?.AddOrReplaceFieldValue(fieldValue);

I've also tried to use section?.AddOrUpdateListValue() and section?.AddOrUpdateValue. I keep getting the same.

Any idea how can I troubleshoot this?

Ana Pinho [SLC] [DevOps Advocate] Selected answer as best 26th November 2024

2 Answers

  • Active
  • Voted
  • Newest
  • Oldest
1
Thomas Ghysbrecht [SLC] [DevOps Enabler]4.84K Posted 18th November 2024 0 Comments

Hi Ana,

If you are using a GenericEnumFielDescriptor of type 'int', make sure that the values you store on the DOM instance are of type 'int'. Here you can find an example: https://docs.dataminer.services/user-guide/Advanced_Modules/DOM/DOM_objects/DOM_FieldDescriptors/DOM_GenericEnumFieldDescriptor.html?q=GenericEnumFieldDescriptor#int-enum-1

Thomas Ghysbrecht [SLC] [DevOps Enabler] Answered question 18th November 2024
You are viewing 1 out of 2 answers, click here to view all answers.
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

[ Placeholder content for popup link ] WordPress Download Manager - Best Download Management Plugin