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

ErrorCode 12 on GET Request

231 views8th September 2025user defined API
0
Felix Hoven [DevOps Advocate]50 3rd September 2025 0 Comments

We want to trigger an automation built in Dataminer via API but get an error code 12 as response.

This is from the Automation logs:

2025/09/02 09:42:13.013|SLAutomation.exe 10.5.2443.11256|35268|22884|CScriptRunInfo::CheckElementStates|DBG|-1|(Script IRD 24 IP GEO Television HD Main VLAN301) Could not start script: no element linked to dummy id 2 (sawd-dist3)
2025/09/02 09:42:13.013|SLAutomation.exe 10.5.2443.11256|35268|22884|CScriptLoader::StartScript|DBG|-1|Script execution could not be started (IRD 24 IP GEO TELEVISION HD MAIN VLAN301)
**********

The script works when using the “Execute” button in Dataminer and also when integrated in Visio.
I also tried another script. There, we also get the message “no element linked to dummy XXX.”

Best regards, Felix

Wouter Van Robays [SLC] [DevOps Enabler] Answered question 8th September 2025

3 Answers

  • Active
  • Voted
  • Newest
  • Oldest
1
Wouter Van Robays [SLC] [DevOps Enabler]1.30K Posted 8th September 2025 2 Comments

Hi Felix,

As mentioned by Gerwin, script dummies are indeed not set on the API script using User-Defined APIs. What you can do, is remove the dummy from your API script, and separate the logic that uses the dummy to a different script, and then run that script as a subscript from your User-Defined API script.

Wouter Van Robays [SLC] [DevOps Enabler] Posted new comment 8th September 2025
Felix Hoven [DevOps Advocate] commented 8th September 2025

Hi Wouter,

Just so I understand correctly: it is not possible to execute scripts that are built with your internal UX and use dummies in the first section via the API. Most of our scripts are built this way and some use C#.

Wouter Van Robays [SLC] [DevOps Enabler] commented 8th September 2025

Hi Felix,
Correct, I see that your script has multiple action blocks, for User-Defined APIs, you can only have one C# code block, which uses the entry point for User-Defined APIs. You will have to rework your scripts to have a script with one C# block as entry point for the API, which can then either do the logic you want it do in C# code, or you can call your existing scripts from within your API script.

Docs to create a User-Defined API script: https://docs.dataminer.services/dataminer/Functions/User-Defined_APIs/Defining_an_API/UD_APIs_Defining_a_new_API.html
Example of an API script executing a subscript: https://docs.dataminer.services/dataminer/Functions/User-Defined_APIs/Defining_an_API/UD_APIs_Examples.html#starting-long-running-actions-asynchronously

1
Gerwin van der Kamp [DevOps Enabler]3.29K Posted 3rd September 2025 1 Comment

Does the script require the input of an element that you try to change?

Felix Hoven [DevOps Advocate] Posted new comment 4th September 2025
Felix Hoven [DevOps Advocate] commented 4th September 2025

Hi Gerwin, if i understand it correctly we do not add input parameters to the script. Everything is fix.
Here is an export of the Code for the Automation. Is there something im missing ?

<DMSScript options="272" xmlns="http://www.skyline.be/automation"&gt;
<Name>IRD 24 IP GEO Television HD Main VLAN301</Name>
<Description>
</Description>
<Type>Automation</Type>
<Author>XXXX</Author>
<CheckSets>FALSE</CheckSets>
<Folder>IRD 24/IP-Kabelmux/Bedrock VLAN 301 404</Folder>
<Protocols>
<Protocol id="2">
<Description>sawd-dist3</Description>
<Name>Arista Manager</Name>
<Version>Production</Version>
<DefaultElement>191301/256</DefaultElement>
</Protocol>
<Protocol id="1">
<Description>IRD24</Description>
<Name>CISCO D9800</Name>
<Version>Production</Version>
<DefaultElement>191301/257</DefaultElement>
</Protocol>
</Protocols>
<Memory>
</Memory>
<Parameters>
</Parameters>
<Script>
<Exe id="2" type="csharp">
<Value><![CDATA[// Find the script dummy
ScriptDummy dummyArista = engine.GetDummy("sawd-dist3");

// Define the command to configure the interface and VLAN
string cmd1 = "interface Ethernet46;switchport access vlan 301;";

// Kopiert den string in das Commands Feld im Explorer
dummyArista.SetParameter("Commands", cmd1);

// Drückt den Submit Knopf im Explorer
dummyArista.SetParameter(6010, 1);]]></Value>
<Message>
</Message>
</Exe>
<Exe id="3" type="set">
<Param protocol="1">6055:1/1/1</Param>
<Value>239.XXX.XX.XX</Value>
</Exe>
<Exe id="4" type="set">
<Param protocol="1">6056:1/1/1</Param>
<Value>1XXXX</Value>
</Exe>
<Exe id="5" type="set">
<Param protocol="1">6051:1/1/1</Param>
<Value>Yes</Value>
</Exe>
<Exe id="6" type="set">
<Param protocol="1">6061:1/1/1</Param>
<Value>Data1</Value>
</Exe>
</Script>
</DMSScript>

Best regards Felix

0
Gerwin van der Kamp [DevOps Enabler]3.29K Posted 4th September 2025 0 Comments

Ah yes, it takes an scripts dummy:

ScriptDummy dummyArista = engine.GetDummy("sawd-dist3");

That one does not get set through by calling the script through the api route.

Gerwin van der Kamp [DevOps Enabler] Answered question 4th September 2025
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