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
  • Blog
  • Questions
  • Learning
    • E-learning Courses
    • 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
    • Tutorials
    • 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
    • DataMiner Insights
      • Security
      • Integration Studio
      • System Architecture
      • DataMiner Releases & Updates
      • DataMiner Apps
    • 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
  • Downloads
  • More
    • Feature Suggestions
    • Climb the leaderboard!
    • Swag Shop
    • Contact
      • General Inquiries
      • DataMiner DevOps Support
      • Commercial Requests
    • Global Feedback Survey
  • PARTNERS
    • All Partners
    • Technology Partners
    • Strategic Partner Program
    • Deal Registration
  • >> Go to dataminer.services

Execute Automation from QAction Failing

Solved1.43K views1st March 2022Automation QAction SLNet service SLScripting
0
Blake Smethers [SLC] [DevOps Advocate]980 28th February 2022 1 Comment

I'm trying to execute a simple automation script (sending an email) from a QAction using protocol.ExecuteScript() or SLNet. Both seem to be failing. On my local machine both calls work as expected, but not on another DMA. If I manually execute the script or use a testing tool, it executes fine, using the exact same setup and variables.

My only guess is there are some permissions preventing the element to run the automation scripts. As I don't really have any response information or logs (response from SLNet is null), what could be causing my script to not run? Thanks in advance for any information.

Blake Smethers [SLC] [DevOps Advocate] Selected answer as best 1st March 2022
Geovanny Galeano [SLC] [DevOps Advocate] commented 28th February 2022

What version of dataminer is your local running? Also the other DMA?

2 Answers

  • Active
  • Voted
  • Newest
  • Oldest
3
Brent Alleweireldt [SLC]1.53K Posted 28th February 2022 6 Comments

Hey Blake,

Permission issues usually are indicated by the server throwing a DataMinerSecurityException during the call. When the script is run from an element. This exception should end up in the Element log (assuming it is properly caught by the protocol). So you could check the element-logfile to make sure this is a permissions issue.

If so the permission you are looking for is the "Execute" Permission under the automation module.

Edit/update: Upon further investigation it turned out the issue here was caused by the automation engine not being licensed. This can be verified by "clicking on your user (top right)"->About->Licenses. And check if the Automation license is present. If it is not present you will be unable to run automationscripts from any source (manually, or from protocol).

Brent Alleweireldt [SLC] Edited answer 1st March 2022
Blake Smethers [SLC] [DevOps Advocate] commented 28th February 2022

Thanks for the reply Brent!
There are no errors in the element log, so perhaps permissions aren’t an issue. When I log protocol.UserInfo (or Cookie) the information is empty so I wasn’t sure what “user” is trying to run the QAction (and therefore the automation). Is that the default DataMiner admin user?

Joey Vanhalst [SLC] [DevOps Advocate] commented 1st March 2022

This depends if your QAction is triggered by a user (click of a button parameter for example) or not.

Brent Alleweireldt [SLC] commented 1st March 2022

Blake,

A couple of questions, in the hopes of finding a lead for the answer.
1. Can you verify the Automation module is licensed on all the agents in the cluster?
2. How do you try to send the script using protocol.ExecuteScript(string name) or the protocol.ExecuteScript(ExecuteScriptMessage message)?
3. When you looked at the logging was the logging set to the highest loglevel, if not is there anything logged in the elementlogging, SLNet, SLAutomation with the higher logging.
4. Is this dma part of a cluster, if so is the target of the message (the one running the script), the same dma as the one hosting the element?

Blake Smethers [SLC] [DevOps Advocate] commented 1st March 2022

1. This might actually be the issue. Looking at the DMA (call it DMA2) that runs the element, I do not see the Automation module. Would that be why we don’t see any logging or failure?
2. I tried both ways and saw the same result.

The other two questions I believe are answered with the first point. Basically guessing that since the automation module isn’t on the DMA2, that means the script is not detected or runs. When I tried to look at the Automation logging on DMA2, it didn’t show anything.

I’ll communicate this to my squad and test on DMA1 today to see if that was indeed the case. Thanks!

Blake Smethers [SLC] [DevOps Advocate] commented 1st March 2022

That was it! Basically since the other DMA wasn’t licensed for automation it wasn’t working. I’ll mark this as best answer but if you want to provide a separate answer with more information, let me know and I can move the mark as best answer.
Thanks!

Show 1 more comments
0
Joey Vanhalst [SLC] [DevOps Advocate]1.80K Posted 1st March 2022 1 Comment

Hi Blake,

Did you verify already if you can find any logging in the SLAutomation.txt file indicating the script actually started (or not)?

Blake Smethers [SLC] [DevOps Advocate] Posted new comment 1st March 2022
Blake Smethers [SLC] [DevOps Advocate] commented 1st March 2022

Hi Joey, looks like you were onto the answer, to which you can find in the comments of the selected answer.

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

Recent questions

DOM Definition relations returned in Definition query 0 Answers | 0 Votes
Alarm Dashboard PDF/CSV Export 1 Answer | 0 Votes
Is the Microsoft SharePoint Connector Still Usable 0 Answers | 0 Votes

Question Tags

adl2099 (115) alarm (62) Alarm Console (82) alarms (100) alarm template (83) Automation (223) automation scipt (111) Automation script (167) backup (71) Cassandra (180) Connector (108) Correlation (68) Cube (150) Dashboard (194) Dashboards (188) database (83) DataMiner Cube (57) DIS (81) DMS (71) DOM (140) driver (65) DVE (55) Elastic (83) Elasticsearch (115) elements (80) Failover (104) GQI (159) HTTP (76) IDP (74) LCA (152) low code app (166) low code apps (93) lowcodeapps (75) MySQL (53) protocol (203) QAction (83) security (88) services (51) SNMP (86) SRM (337) table (54) trending (87) upgrade (62) Visio (539) Visual Overview (345)
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