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
    • Empower Replay: Limited Edition
    • Tutorials
    • Open Classroom Training
    • Agility
      • Kanban workshop
      • Agile Fundamentals
    • Certification
      • DataMiner Fundamentals
      • DataMiner Configurator
      • DataMiner Automation
      • Scripts & Connectors Developer: HTTP Basics
      • Scripts & Connectors Developer: SNMP Basics
      • Visual Overview – Level 1
      • Verify a certificate
    • 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
    • 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
      • About the DevOps Program
      • DataMiner DevOps Support
  • Downloads
  • More
    • Feature Suggestions
    • Climb the leaderboard!
    • Swag Shop
    • Contact
    • Global Feedback Survey
  • Support
  • PARTNERS
    • All Partners
    • Technology Partners
    • Strategic Partner Program
    • Deal Registration
  • >> Go to dataminer.services

API Deployment – Element not linked to dummy

Solved1.13K views7th July 2023API deployment
7
Edson Alfaro [SLC] [DevOps Advocate]1.39K 15th February 2023 0 Comments

Hi all,

Testing API Deployment for an automation script, I always get the error “Could not start script: no element linked to dummy id 1 (Router1)”

The script works fine when is executed from the Automation app, only when testing the API from Cube or Postman I get that error.

Thanks for any help provided.

Marieke Goethals [SLC] [DevOps Catalyst] Selected answer as best 7th July 2023

2 Answers

  • Active
  • Voted
  • Newest
  • Oldest
9
Thomas Ghysbrecht [SLC] [DevOps Enabler]4.91K Posted 16th February 2023 0 Comments

Hi Edson,

As suggested by the thread initiated by Ruben, the issue is indeed caused by the ‘EnableJson’ option on the deployment. This is enabled by default and cannot be overridden in the Cube UI. This means only scripts with a single input parameter for the JSON are supported when deploying via Cube. If you want to deploy a script like yours, this will have to be done in code.

I already had a deployer script lying around that you can use. It has 4 parameters for the various options on a deployment. You’ll have to reuse an existing token, the script does not make one for you. The input could look like this:

You can find the script XML here: https://github.com/Skyline-ThomasGH/DataMiner_ScriptExamples/blob/main/SLAPIDeployment_DeployerScript_NoJson.xml

Let me know if you run into issues.

Note that this implementation of custom APIs is in soft-launch and will be replaced in the very near future with a new implementation. This will require you to do changes to your scripts. Passing a dummy will not be supported in this first version. You will be able to use this old implementation for a while (at least until 10.4) before it is removed.

Marieke Goethals [SLC] [DevOps Catalyst] Selected answer as best 7th July 2023
7
Ruben Vandepitte [SLC] [DevOps Advocate]2.32K Posted 16th February 2023 2 Comments

Hi Edson,

Getting the same error when replicating your script.

Don’t have an immediate solution, but perhaps you could consider to not work with a script dummy at all, and just pass a json string in the body of the request with the element details, which can then be processed by the script. It will require some coding, but at least it’s a way forward.

Ruben Vandepitte [SLC] [DevOps Advocate] Posted new comment 16th February 2023
Jens Vandewalle [SLC] [DevOps Enabler] commented 16th February 2023

Note that you can only use 1 script parameter as mentioned by Thomas in https://community.dataminer.services/question/api-deployments-parameters/

Ruben Vandepitte [SLC] [DevOps Advocate] commented 16th February 2023

I wonder then if it will work when disabling the ‘enableJson’ flag during deployment of the script? Currently this flag is only configurable programmatically.
Perhaps someone from the development team can confirm…

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