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

Weird problem with C# Automation scripts and validation

Solved111 views11 hours agoAutomation script validation
0
Chris Glover [DevOps Advocate]1.91K 12 hours ago 0 Comments

Hi,

I've created an automation script in DIS, which I've published to a DMA, this script fails validation, but Visual Studio is happy. Validation is failing on the first line of the script

using System;

I don't understand why it is failing there. We have lots of scripts that start way. I tried to create a new script directly in the Cube editor, containing only the using System; with nothing else and that also fails validation.

As you can see, there really is nothing in this script, so I don't understand why validation is failing at this point. Any help will be greatly appreciated.

If it's of relevance, the machine running Cube is running Server 2025

Chris Glover [DevOps Advocate] Selected answer as best 12 hours ago

2 Answers

  • Active
  • Voted
  • Newest
  • Oldest
2
Pedro Debevere [SLC] [DevOps Enabler]3.07K Posted 12 hours ago 0 Comments

Hi Chris,

When creating the script, SLAutomation will look for a string "class Script" in the code. If that is not present, it will take the provided content and put it inside such a class (for more info, see Script class).

This behavior is done unless the script is marked to be compiled as a library.

Chris Glover [DevOps Advocate] Selected answer as best 12 hours ago
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

© 2026 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