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
    • 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
    • YouTube Videos
    • Solutions & Use Cases
      • Solutions
      • Use Case Library
    • Agility
      • Learn more about 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)
      • Book your Agile Fundamentals training
      • Book your Kanban workshop
    • >> Go to DataMiner Docs
  • DevOps
    • About the DevOps Program
    • Sign up for the DevOps Program
    • DataMiner DevOps Support
    • Feature Suggestions
  • Downloads
  • Swag Shop
  • PARTNERS
    • Business Partners
    • Technology Partners
  • Contact
    • Sales, Training & Certification
    • DataMiner Support
    • Global Feedback Survey
  • >> Go to dataminer.services

Usage of IDms CreateView + GetView

69 views16 hours agoGetView IDms
5
Mieke Dryepondt [SLC] [DevOps Advocate]4.01K 17 hours ago 0 Comments

I am using the IDms class to create + use Views.
I like to understand why the

  • dms.GetView(viewId);

would return a Not found exception when used right after creating it with

  • int viewId = dms.CreateView(new ViewConfiguration(newViewName, parentView));

When I add a sleep, the GetView does return the newly created view.
I rather not use a sleep and understand what we would be waiting on to ensure my logic will work regardless of cluster / system size.

Tom Waterbley [SLC] [DevOps Enabler] Answered question 16 hours ago

1 Answer

  • Active
  • Voted
  • Newest
  • Oldest
1
Tom Waterbley [SLC] [DevOps Enabler]10.08K Posted 16 hours ago 0 Comments

Hi Mieke,

The dms.CreateView() method is actually asynchronous. It instructs DataMiner to create the view, but it does not wait until the view is fully available in the system, as you’ve already noticed. As a result, calling dms.GetView(viewId) immediately afterwards can still throw a “Not found” exception because the creation has not yet been fully processed and synchronized.

Instead of using a fixed Thread.Sleep(), it’s better to implement a polling loop that checks whether the view exists every x 100 milliseconds. Make sure to also include a timeout and throw a TimeoutException when exceeded, to avoid ending up in an endless loop on slower or heavily loaded systems/clusters.

That way, your logic remains reliable regardless of cluster size or system load.

Tom Waterbley [SLC] [DevOps Enabler] Answered question 16 hours ago
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

© 2026 Skyline Communications. All rights reserved.

DOJO Q&A widget

Can't find what you need?

? Explore the Q&A DataMiner Docs