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

Init QAction 6 failed with Invalid data. (hr = 0x80040221)

Solved1.04K views30th June 2023QActions
1
Tyler Brown [DevOps Member]299 20th June 2023 0 Comments

Hi there,

I am unable to initialize a QAction in a driver that I am building with an error message stating that the data is invalid. I am simply trying to log an error message with a button press as I am just figuring out how to use this functionality.

Here is the quick action in question:

using System;
using System.Collections.Generic;
using System.Globalization;
using System.Text;

using Skyline.DataMiner.Scripting;

/// <summary>
/// DataMiner QAction Class: Test Button.
/// </summary>
public static class QAction
{
/// <summary>
/// The QAction entry point.
/// </summary>
/// <param name="protocol">Link with SLProtocol process.</param>
public static void Run(SLProtocol protocol)
{
try
{
protocol.Log("Testing button click");
}
catch (Exception ex)
{
protocol.Log("QA" + protocol.QActionID + "|" + protocol.GetTriggerParameter() + "|Run|Exception thrown:" + Environment.NewLine + ex, LogType.Error, LogLevel.NoLogging);
}
}
}

</QAction>
<QAction id="6" name="Test Button" encoding="csharp" triggers="55">
</QAction>

And here is the parameter that is triggering it:

<Param id="55">
<Name>Update Table</Name>
<Type>write</Type>
<Information>
<Subtext>Manually send out the request.</Subtext>
</Information>
<Interprete>
<RawType>other</RawType>
<Type>string</Type>
<LengthType>next param</LengthType>
</Interprete>
<Display>
<RTDisplay>true</RTDisplay>
<Positions>
<Position>
<Page>Schedule</Page>
<Column>0</Column>
<Row>0</Row>
</Position>
</Positions>
</Display>
<Measurement>
<Type width="110">button</Type>
<Discreets>
<Discreet>
<Display>Generate Table</Display>
<Value>Generate Table</Value>
</Discreet>
</Discreets>
</Measurement>
</Param>

Any help with this would be much appreciated as I am very new to this functionality.

Thank you

Marieke Goethals [SLC] [DevOps Catalyst] Selected answer as best 30th June 2023

2 Answers

  • Active
  • Voted
  • Newest
  • Oldest
0
Floris Cockaerts [SLC] [DevOps Advocate]2.43K Posted 21st June 2023 2 Comments

Hi Tyler,

I recreated the setup you provided in your post, but didn't get the error. I've pushed my resulting protocol, which was started from the DIS protocol template, to github: FlorisCO/Dojo_QActionLog (github.com)

This was tested on an internal build of 10.3.8, but I see no reason why this would fail on earlier versions.

Do you see any significant difference between my version and yours? Can you share the actual protocol where you encounter this problem? What is your DataMiner version?

Marieke Goethals [SLC] [DevOps Catalyst] Selected answer as best 30th June 2023
Tyler Brown [DevOps Member] commented 22nd June 2023

Hey Floris,

Thank you for your help, I was able to figure it out. For some reason DIS was not embedding my code for the qaction into the XML. I was able to get around this by doing it manually.

Thank you again
Tyler

Floris Cockaerts [SLC] [DevOps Advocate] commented 23rd June 2023

Hi Tyler,

When using a protocol solution, the QAction code is stored in separate .cs files whereas this used to be part of the XML while editing. With a solution, the protocol needs to be uploaded using the “publish” button, or exported through the File menu. Perhaps the XML without the code was copy-pasted, or uploaded through cube?

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

Recent questions

How to implement bearer token refresh? 0 Answers | 0 Votes
Web Applications exception in Cube due to invalid certificate 0 Answers | 0 Votes
Redundancy Groups and Alarming – Duplicate Alarms 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 (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