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

How to solve DataMinerSecurityException: No such remote connection, when script starts from QAction?

Solved648 views3rd May 2024Automation Script DOM dataminer connection domhelper exception QAction
4
Michiel Clepkens [SLC] [DevOps Advocate]1.29K 30th April 2024 0 Comments

Hi Dojo

It seems that I'm not able to run an automation script that was launched from a QAction without user interaction.

A web service sets the value of a specific parameter. The value change of that parameter triggers a QAction which launches the automation script. This works fine up until the point where an interaction is needed with the DomHelper class. At that point, a DataMinerSecurityException is thrown. The stack trace is listed down below. Skyline.DataMiner.Net.Exceptions.DataMinerSecurityException: No such remote connection (17fd22f11d). Retried.

Element log
protocol.UserCookie 17FD22F11DDA4B7C8D00DF7CD9C76CF9
protocol.UserInfo Admin

(protocol.GetUserConnection() throws a DataMinerSecurityException: No such remote connection)

Script log

engine.UserLoginName (Script 'Set Request Status')
engine.UserDisplayName Unknown User
engine.UserCookie 17FD22F11DDA4B7C8D00DF7CD9C76CF9

On the other hand, if that automation script gets launched by pressing a button on the element, it executes without any issues.

Element log
protocol.UserCookie 202B80721E6A4BB39E352BCE3D2609CA
protocol.UserInfo MCS
protocol.GetUserConnection().ConnectionID 202b8072-1e6a-4bb3-9e35-2bce3d2609ca

Script log
engine.GetUserConnection().ConnectionID 202b8072-1e6a-4bb3-9e35-2bce3d2609ca
engine.UserLoginName SkylineMCS
engine.UserDisplayName MCS
engine.UserCookie 202B80721E6A4BB39E352BCE3D2609CA

How can I make sure a valid connection gets established to run the script successfully in both cases?

Thank you in advance!

Kind regards

Skyline.DataMiner.Net.Exceptions.DataMinerSecurityException: No such remote connection (17fd22f11d). Retried.

Server stack trace:
at Skyline.DataMiner.Net.Facade.HandleImpersonateMessage(IConnectionInfo originalConnInfo, ImpersonateMessage im)
at Skyline.DataMiner.Net.Facade.HandleMessageInternal(IConnectionInfo connInfo, DMSMessage oneMsg, Int32 groupID, Int32 groupTotal)
at Skyline.DataMiner.Net.Facade.HandleMessage(IConnectionInfo connInfo, DMSMessage oneMsg, Int32 groupID, Int32 groupTotal)
at Skyline.DataMiner.Net.BaseFacade.HandleMessages(IConnectionInfo connInfo, DMSMessage[] msgs)
at Skyline.DataMiner.Net.Facade.HandleMessagesForClient(IConnectionInfo connInfo, DMSMessage[] messages)
at Skyline.DataMiner.Net.Transport.Remoting.InternalHandleMessages(ConnectionToken token, DMSMessage[] inputMessages, ConnectionTransportType ctt)
at Skyline.DataMiner.Net.Transport.Remoting.HandleMessages(ConnectionToken token, DMSMessage[] inputMessages, ConnectionTransportType ctt)
at Skyline.DataMiner.Net.Transport.Remoting.HandleMessages(ConnectionToken token, DMSMessage[] inputMessages)
at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Object[]& outArgs)
at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg)

Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at Skyline.DataMiner.Net.ISLNet.HandleMessages(ConnectionToken token, DMSMessage[] inputMessages)
at Skyline.DataMiner.Net.LegacyRemotingConnection.TransportSpecificHandleMessage(ConnectionToken tok, DMSMessage[] msgs, Int32 timeout)
at Skyline.DataMiner.Net.Connection.InternalHandlePackedMessages(ConnectionToken tok, DMSMessage[] msgs, Int32 timeout)
at Skyline.DataMiner.Net.Connection.InternalHandleUnpackedMessages(DMSMessage[] msgs, Int32 timeout)
at Skyline.DataMiner.Net.Connection.HandleMessages(DMSMessage[] msgs, Int32 timeout)
at Skyline.DataMiner.Net.PersistentConnectionContainer.SendMessages(DMSMessage[] messages)
at Skyline.DataMiner.Automation.Engine.SendSLNetMessages(DMSMessage[] messages)
at Skyline.DataMiner.Net.ManagerStore.CrudHelperComponent`1.<>c__DisplayClass45_0.<WrapWithExtraInfoInjection>b__0(DMSMessage[] messages)
at Skyline.DataMiner.Net.ManagerStore.CrudHelperComponent`1.RetrieveResponse(DMSMessage request)
at Skyline.DataMiner.Net.ManagerStore.CrudHelperComponent`1.RetrieveResponse[TResp](DMSMessage request)
at Skyline.DataMiner.Net.ManagerStore.CrudHelperComponent`1.RetrieveCrudResponse(DMSMessage request)
at Skyline.DataMiner.Net.ManagerStore.CrudHelperComponent`1.InnerRead(IQuery`1 query, IAdditionalOperationMeta operationMeta)
at Skyline.DataMiner.Net.ManagerStore.CrudHelperComponent`1.Read(IQuery`1 query)
at Skyline.DataMiner.Net.ManagerStore.CrudHelperComponent`1.Read(FilterElement`1 filter)
at Set_Request_Status_1.Script.Run(Engine engine) (Script 'Set Request Status')

Michiel Clepkens [SLC] [DevOps Advocate] Selected answer as best 3rd May 2024

1 Answer

  • Active
  • Voted
  • Newest
  • Oldest
1
Tom Waterbley [SLC] [DevOps Catalyst]8.86K Posted 2nd May 2024 2 Comments

Hi Michiel,

Are you passing the user cookie from the QAction to the automation script? If not, you could try executing your script as follows:

var dms = protocol.GetDms();

var parameters = Enumerable.Empty<DmsAutomationScriptParamValue>();
var dummies = Enumerable.Empty<DmsAutomationScriptDummyValue>();

dms.GetScript("My Script").Execute(parameters, dummies, userCookie: protocol.UserCookie);

If that still doesn't work you could maybe try to use the static Engine.SLNetRaw property when setting up the DomHelper instance in your script.

Tom Waterbley [SLC] [DevOps Catalyst] Posted new comment 3rd May 2024
Michiel Clepkens [SLC] [DevOps Advocate] commented 3rd May 2024

Hi Tom. Thank you very much for checking the question. I was able to make it work by passing the Engine.SLNetRaw.SendAsyncOverConnection delegate to the constructor of the DomHelper class in the script: DomHelper domHelper = new DomHelper(Engine.SLNetRaw.SendAsyncOverConnection, moduleId); Thanks for the tip! Much appreciated!

Tom Waterbley [SLC] [DevOps Catalyst] commented 3rd May 2024

Great, glad to hear the problem is resolved!

You are viewing 1 out of 1 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

Recent questions

Web Applications exception in Cube due to invalid certificate 0 Answers | 0 Votes
Redundancy Groups and Alarming – Duplicate Alarms 0 Answers | 0 Votes
Correlation Engine: “Test rule” doesn’t result in a hit, despite functional rule 1 Answer | 3 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 (109) Correlation (69) Correlation rule (52) Cube (151) Dashboard (194) Dashboards (188) database (83) DataMiner Cube (57) DIS (81) DMS (71) DOM (140) driver (65) DVE (56) 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) 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