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
    • 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
    • DataMiner Releases & Updates
    • Feature Suggestions
    • Climb the leaderboard!
    • Swag Shop
    • Contact
    • Global Feedback Survey
  • PARTNERS
    • All Partners
    • Technology Partners
    • Strategic Partner Program
    • Deal Registration
  • >> Go to dataminer.services

Automation: Handle “Could not verify that parameter was correctly set (50 retries).”

Solved1.00K views25th May 2022Automation
2
Robin Becker [DevOps Advocate]1.40K 23rd May 2022 0 Comments

Hi,

What’s the best way to handle the catch and handle the error “Could not verify that parameter XXXX was correctly set (50 retries).” in an automation script?

Robin Becker [DevOps Advocate] Selected answer as best 25th May 2022

1 Answer

  • Active
  • Voted
  • Newest
  • Oldest
2
Joey Vanhalst [SLC] [DevOps Advocate]1.80K Posted 23rd May 2022 4 Comments

Hi Robin,

By default, when doing a set on a parameter, DataMiner will check if the value changed in the corresponding read parameter. The error you encounter is because this check failed (will internally verify 50 times).

This setting can also be disabled, by disabling the following option (when executing the script from Cube):

Robin Becker [DevOps Advocate] Posted new comment 25th May 2022
Robin Becker [DevOps Advocate] commented 23rd May 2022

Hi Joey,

Sorry for being unclear. I’m actually looking for how to catch the error in the script and execute C# code if the script throws the errors. As of now a script would continue after the SetParameter call without knowing if it failed or not, which might lead to unwanted consequences. Because the method seems to be executing asynchronously, a normal try-catch is not possible.

Jochen Dewachter [SLC] [DevOps Advocate] commented 23rd May 2022

Hi Robin, it’s not async. It doesn’t throw an exception because the SET as such succeeded and there’s no check done after the SET (if you uncheck that checkbox Joey mentioned). So there’s no exception to catch in that case.
If you uncheck the checkbox that Joey mentioned, it’s only going to raise an exception if the SET itself (not the check after SET) fails. E.g. if your parameter doesn’t exist.

Jeroen Geldhof [SLC] [DevOps Enabler] commented 23rd May 2022

It will indeed be necessary to add a checking mechanism.
Typically this is done in a for loop in which a engine.sleep is added and a parameter read action. The for loop makes sure there’s a maximum amount of read actions and is exited early when the set succeeded.

ScriptDummy dummy = engine.GetDummy(“dummy1”);

bool setSucceeded = false;

dummy.SetParameter(8,15);

for (int i = 0;i<10;i++)
{
engine.Sleep(1000);
int iValue = Convert.ToInt32(dummy.GetParameter(8));

if (iValue == 15)
{
setSucceeded = true;
break;
}
}

if (setSucceeded)
engine.GenerateInformation("the set succeeded");
else
engine.GenerateInformation("the didn't succeed");

Robin Becker [DevOps Advocate] commented 25th May 2022

@Jeroen: I see. Would this require the write param to be setter=”false” and update the read param programmatically?

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