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
    • Climb the leaderboard!
    • Swag Shop
  • Downloads
  • Contact
    • Sales, Training & Certification
    • DataMiner Support
    • Global Feedback Survey
  • PARTNERS
    • All Partners
    • Technology Partners
    • Strategic Partner Program
    • Solutions
    • Deal Registration
  • >> Go to dataminer.services

Service creation from QAction

Solved1.65K views25th April 2021number of elements under a service QAction service template TryCreateServiceMessage
2
Pedro Sánchez [DevOps Advocate]239 24th April 2021 0 Comments

Hi all, we are using a piece of code in a QAction to generate some services based on a service template.

It was running well but we recently note that when the number of elements are quite high the TryCreateServiceMessage is returning an error and the service is not created:

Multiple options exist for Service will contain 26 elements

Our code is the following:

TryCreateServiceMessage myServiceMessagepre = new TryCreateServiceMessage
{

ServiceTemplateID = sServiceDMATemplateID,
HostingDataMinerID = -1,
CreateAll = false,
DataMinerID = -1,
ViewIDs = new Int32[]
{
-1,
},
EditInputDataOnUpdate = false, //NEW
IsReApply = false, //NEW

ExtraData = new TCSExtraData[]
{
new TCSExtraData { Name = “serviceName”, Value = sServicename},
new TCSExtraData { IsFromOriginalService = false },
new TCSExtraData {Options = TCSExtraData.TCSExtraDataOptions.None },
new TCSExtraData { Name = “data:Service”, Value = sServiceIndex},
}
};

TryCreateServiceResult response1 = (TryCreateServiceResult)protocol.SLNet.SendMessage(myServiceMessagepre)[0];

If we try to generate the service applying service template from surveyor (right click->Apply), Dataminer asked if we are sure to continue or abort the service creation due to that number of elements included.

Do you know if there is a way to force “continue” when using TryCreateServiceMessage ?

Thanks!

Pedro Sánchez [DevOps Advocate] Selected answer as best 25th April 2021

1 Answer

  • Active
  • Voted
  • Newest
  • Oldest
4
Miguel Obregon [SLC] [DevOps Catalyst]19.60K Posted 24th April 2021 1 Comment

Hi Pedro,

This is expected behavior when the number of elements included in the service exceeds the threshold (by default set to 20).

In case you would like to change the threshold, you could proceed as follows:

  • Using the DataMiner Taskbar Utility, open the SLNetClientTest tool (Opening the SLNetClientTestTool)
  • Connect to the DMA using the SLNetClientTest Tool
  • Once connected, go to Advanced -> Options -> SLNet Options …
  • In the drop-down list select the option ServiceTemplateElementCount. In the list below, you will see the default value set on each DMA in the cluster (in case there are more than one DMA in the cluster)
  • Double click in the value and change it accordingly. Please keep the value reasonable to avoid performance issues
  • Finally, click ‘Apply’

Note:

Please be careful when changing settings using the SLNetClientTest tool. Below a warning from DataMiner Help:

Always be extremely careful when using this tool, as it can have far-reaching consequences on the functionality of your DataMiner System.

Pedro Sánchez [DevOps Advocate] Posted new comment 25th April 2021
Pedro Sánchez [DevOps Advocate] commented 25th April 2021

Hi Miguel, thank you very much! I’ve changed the value from 20 to 30 and these few services with more than 20 elements are correctly created.
Thanks again!

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