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
    • 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
      • Book your Agile Fundamentals training
      • Book you Kanban workshop
      • 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)
    • >> Go to DataMiner Docs
  • DevOps
    • About the DevOps Program
    • Sign up for the DevOps Pogram
    • DataMiner DevOps Support
    • Feature Suggestions
  • Swag Shop
  • Downloads
  • PARTNERS
    • All Partners
    • Technology Partners
    • Strategic Partner Program
    • Solutions
    • Deal Registration
  • Contact
    • Sales, Training & Certification
    • DataMiner Support
    • Global Feedback Survey
  • >> Go to dataminer.services

500 error in API with Dataminer Automation

Solved920 views25th May 2023
1
Yuki Arakawa(3496) 荒川 祐貴 [DevOps Advocate]867 25th May 2023 0 Comments

Hi Skyline Team

The API in DataMiner Automation added in 10.3.6.0 is interesting to me.

I tested it immediately.
I created a simple script to Pause and Start an element as Automation.

Created an endpoint in User-defined API
Of course, the token is created.

When I posted with Postman, it returned a 500 error.

I think this is a simple API that does not require an output, am I doing something wrong?

Wouter Van Robays [SLC] [DevOps Enabler] Answered question 25th May 2023

2 Answers

  • Active
  • Voted
  • Newest
  • Oldest
2
Stacey Van Colen [SLC] [DevOps Advocate]2.59K Posted 25th May 2023 2 Comments

Hi Yuki,

We can see in the response that you get errorCode:12. This indicates the following:

AutomationActionError: An error occurred while trying to execute an Automation script action.

The full list of error codes can be found here: https://docs.dataminer.services/user-guide/Advanced_Modules/User%20Defined%20APIs/UD_APIs_Triggering_an_API.html

So it looks like your automation script has an error. My suggestion would be to look inside the C# Code of your automation script, and validate the code.

If you would like to have more information on the User-Defined API, this can be found here: https://docs.dataminer.services/user-guide/Advanced_Modules/User%20Defined%20APIs/Defining_an_API/UD_APIs_Defining_a_new_API.html

On the above link you'll find an example of a script that you can copy into your code.

Hope this helps you with debugging your issue.

Kind regards,

Yuki Arakawa(3496) 荒川 祐貴 [DevOps Advocate] Edited comment 25th May 2023
Ive Herreman [SLC] [DevOps Enabler] commented 25th May 2023

Additionally, I believe the root cause of the problem here is that your automation script was not built using a c# code block.

This Automation script needs the OnApiTrigger entry point method defined in a c# code block to function.

Yuki Arakawa(3496) 荒川 祐貴 [DevOps Advocate] commented 25th May 2023

Thanks for the reply.
I read what was presented.
I understood that this is not a simple call to Automation, but an API that calls the C# code described in Automation.
Unfortunately, I no longer have use to this functionality as I am not in an environment where I can develop.

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