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

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
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#.