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 you 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

Is ExitSuccess needed in an automation script?

Solved82 views9 hours agoAutomation script best practices engine interactive automation script
2
Sofian Kerkhof [SLC] [DevOps Advocate]78 10 hours ago 0 Comments

Hi,

I'm currently working on my first automation script. I don't use the ExitSuccess method at the end of my script and everything works fine. (The script stops as expected, there is a log line)
That raised the question: is ExitSuccess actually needed and if so why?
(I understand that when working with interactive automation scripts, it is useful to be able to exit the script and indicate this is expected behavior)

Thanks in advance!

Thijs Vanovenacker [SLC] [DevOps Advocate] Selected answer as best 9 hours ago

1 Answer

  • Active
  • Voted
  • Newest
  • Oldest
1
Thijs Vanovenacker [SLC] [DevOps Advocate]2.37K Posted 10 hours ago 2 Comments

Hi there,

Please have a look at following related post: How is engine.ExitSuccess("reason") handled? - DataMiner Dojo

In a normal flow, You are not expected to call the ExitSuccess() method.
I believe the intend is only to use it if you have a certain scenario deeper down your code that you whish to finish early and escape.

Note that as the linked questions/answer suggests: When using this call, you also have to manage the processing of the Abort-Exception that is thrown.

Hope this helped!

Thijs Vanovenacker [SLC] [DevOps Advocate] Selected answer as best 9 hours ago
Sofian Kerkhof [SLC] [DevOps Advocate] commented 9 hours ago

Thanks!

José Silva [SLC] [DevOps Catalyst] commented 9 hours ago

To complement this, and since you also mentioned Interactive Automation Scripts, it’s worth noting that when you want to close the user interface intentionally, you should typically throw a CloseUserInteractionException instead of using ExitSuccess, which internally throws an AbortException.

This allows the UI to close gracefully and indicates that the closure is expected behavior.

A common pattern for handling this is:

try
{
// Your logic here
}
catch (CloseUserInteractionException)
{
// Expected behavior — the user closed the UI
}
catch (Exception ex)
{
// Handle other unexpected exceptions
}

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