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

How to Create/Update a Service on a Remote DMA? NT_SERVICE Not Working as Documented

Solved117 views2 days ago
4
Mohamed Khalith [DevOps Member]97 2 days ago 0 Comments

Hi Team,

I am trying to create and update a service on a remote DMA from a protocol QAction.

According to the documentation:

  • NT_SERVICE (75):
    https://docs.dataminer.services/develop/api/NotifyTypes/NT_SERVICE.html
  • NT_SERVICE_REMOTE (282):
    https://docs.dataminer.services/develop/api/NotifyTypes/NT_SERVICE_REMOTE.html

It appears that setting the dmaid inside the <Service> XML should allow creating/updating the service on another DMA.

What works

Service creation works on the remote DMA when I send:

protocol.NotifyDataMiner(75, -1, serviceXml);

with:

<Service dmaid="22889" id="-1" ...>

The service is created successfully on DMA 22889.

What does NOT work

Updating the same service (reapply) fails:

protocol.NotifyDataMiner(75, serviceID, serviceXml);

I always get:

NotifyDataMiner with 10075 failed - 0x80040239 – SL_FAILED_NOT_FOUND

This happens because the call is processed on the local DMA, and the local DMA cannot find the service ID that exists on the remote DMA.

Even though the XML contains the correct dmaid, NT_SERVICE does not seem to route the update to the remote DMA.

What is the correct supported way to create and update a service on another DMA?

Many thanks!

Mohamed Khalith

Mohamed Khalith [DevOps Member] Selected answer as best 2 days ago

1 Answer

  • Active
  • Voted
  • Newest
  • Oldest
2
Dieter Degrande [SLC] [DevOps Advocate]499 Posted 2 days ago 2 Comments

Hi Mohamed,

There is an error in the code snippet in the documentation for NT_SERVICE_REMOTE. I've created a pull request internally to update the documentation.

In this case I believe the following notification can be used

protocol.NotifyDataMiner(282 /*NT_SERVICE_REMOTE*/ , new object[] { 22889, serviceID}, serviceXml);

The format for the service ID input is as follows:

object[]

{

(int) targetDmaID,

(int) serviceID

}

For completeness you can also specify the full ID of the service in case of a migrated service:

object[]

{

(int) targetDmaID,

(uint[]) fullServiceID

{

(uint) serviceID,

(uint) serviceDmaID (this is the dataminer ID configured in the service xml)

}

}

Dieter Degrande [SLC] [DevOps Advocate] Posted new comment 2 days ago
Mohamed Khalith [DevOps Member] commented 2 days ago

HI Dieter Degrande,
Thanks for the clarification – that was exactly the missing piece.
After updating my call to NT_SERVICE_REMOTE using the correct input

var input = new object[] { targetDmaID, serviceID };
protocol.NotifyDataMiner(282 /* NT_SERVICE_REMOTE */, input, serviceXml);

Remote DMA service creation and update are now working correctly.

Thanks as well for sharing the corrected code snippet and everything behaves as expected now.

Regards,
Mohamed Khalith

Dieter Degrande [SLC] [DevOps Advocate] commented 2 days ago

Hi Mohamed, in the meantime the pull request for these notifications has been merged, the documentation should now be updated to reflect the information I posted.

You are viewing 1 out of 1 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