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
  • Blog
  • Questions
  • Learning
    • E-learning Courses
    • 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
    • Tutorials
    • 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
    • DataMiner Insights
      • Security
      • Integration Studio
      • System Architecture
      • DataMiner Releases & Updates
      • DataMiner Apps
    • 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
  • Downloads
  • More
    • Feature Suggestions
    • Climb the leaderboard!
    • Swag Shop
    • Contact
      • General Inquiries
      • DataMiner DevOps Support
      • Commercial Requests
    • Global Feedback Survey
  • PARTNERS
    • All Partners
    • Technology Partners
    • Strategic Partner Program
    • Deal Registration
  • >> Go to dataminer.services

Visio Button: String with space

347 views17th February 2025visio automation
1
edward.smith@fox.com Smith200 14th February 2025 0 Comments

I'm trying to pass a table index that has a space in it to an automation script to populate a variable.  Here is an example...

Script:webclick||dmaID=222741;elementID=15;parameterNumber=406;tableIndex=Contol 32;parameterValue=1|||NoConfirmation,CloseWhenFinished,NoSetCheck

In the above - Control 32 - is the problem.  I've tried to add double and single quotes around it but when I save they seem to get dropped leaving the above string that doesn't work.

Toon Casteele [SLC] [DevOps Enabler] Answered question 17th February 2025

2 Answers

  • Active
  • Voted
  • Newest
  • Oldest
0
Toon Casteele [SLC] [DevOps Enabler]6.97K Posted 17th February 2025 2 Comments

Is it possible that your value is "Control 32" rather than "Contol 32" as the shape data would suggest?

Other than that I also see no problem with the shape data, other than the possible typo and also that I would suggest using the prefixes for the different parts as can be seen in one of the bullet points of our documentation.

Toon Casteele [SLC] [DevOps Enabler] Posted new comment 21st February 2025
edward.smith@fox.com Smith commented 20th February 2025

I updated the typo and received the same error and it did not perform the set either. This was from Cube. I'm sure the web would have the same result.

Element name Parameter description Value Time Root time
Script execution failure Script Failure (webclick): Last of 2 errors: (Code: 0x80131500) Skyline.DataMiner.Net.Exceptions.DataMinerException: Set Parameter ('_195***_15':406/*Control 32*) Failed: 0x80004005
at CManagedAutomation.RunWrapped(CManagedAutomation* , Int32 iCookie, IUnknown* pIAutomation, tagVARIANT* varParameters, tagVARIANT* pvarReturn, String scriptName)
at CManagedAutomation.Run(CManagedAutomation* , Int32 iCookie, Char* bstrScriptName, IUnknown* pIAutomation, tagVARIANT* varParameters, tagVARIANT* varEntryPoint, tagVARIANT* pvarReturn, tagVARIANT* pvarEntryPointResult) (CSharp; 0x80131500h): (see comment for more details) Today 1:34:10 PM Today 1:34:10 PM

Toon Casteele [SLC] [DevOps Enabler] commented 21st February 2025

From what I can tell in your exception, everything seems to be passed through to the script. So likely something is going wrong in the processing there rather than in Visio.

0
Miguel Obregon [SLC] [DevOps Catalyst]18.56K Posted 14th February 2025 0 Comments

Hi Edward,

I tried to reproduce the issue that you reported but without success. Below the description of the small test performed:

Element:

For this test I will change the value of 'Column Parameter B3' from 61 to 25. Notice that the index of the table is 'Contol 32' (similar as your use case)

Overview:

Below you can find the content of the data shape 'Execute'

Script:test_execute_script||dmaID=107;elementID=21;parameterNumber=2003;tableIndex=Contol 32;parameterValue=61|||NoConfirmation,CloseWhenFinished,NoSetCheck

Note that I had to change the name of the script, IDs, and values.

Script:

ScriptParam spDmaId = engine.GetScriptParam("dmaID");
ScriptParam spElementId = engine.GetScriptParam("elementID");
ScriptParam spParameterNumber = engine.GetScriptParam("parameterNumber");
ScriptParam spTableIndex = engine.GetScriptParam("tableIndex");
ScriptParam spParameterValue = engine.GetScriptParam("parameterValue");

engine.GenerateInformation("[INFO]|Run|dmaID=" + spDmaId.Value);
engine.GenerateInformation("[INFO]|Run|elementID=" + spElementId.Value);
engine.GenerateInformation("[INFO]|Run|parameterNumber=" + spParameterNumber.Value);
engine.GenerateInformation("[INFO]|Run|tableIndex=" + spTableIndex.Value);
engine.GenerateInformation("[INFO]|Run|parameterValue=" + spParameterValue.Value);

Element element = engine.FindElement(Convert.ToInt32(spDmaId.Value), Convert.ToInt32(spElementId.Value));

if (element != null)
{
element.SetParameter(Convert.ToInt32(spParameterNumber.Value), spTableIndex.Value, spParameterValue.Value);
}
else
{
engine.ExitFail("[ERROR]|Run|Element does not exist.");
}

Once the overview is loaded, I was able to change the value:

Hope it helps.

Miguel Obregon [SLC] [DevOps Catalyst] Answered question 14th February 2025
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

Recent questions

Alarm Dashboard PDF/CSV Export 1 Answer | 0 Votes
Is the Microsoft SharePoint Connector Still Usable 0 Answers | 0 Votes
Is the Microsoft SharePoint Connector Still Usable 0 Answers | 0 Votes

Question Tags

adl2099 (115) alarm (62) Alarm Console (82) alarms (100) alarm template (83) Automation (223) automation scipt (111) Automation script (167) backup (71) Cassandra (180) Connector (108) Correlation (68) Cube (150) Dashboard (194) Dashboards (188) database (83) DataMiner Cube (57) DIS (81) DMS (71) DOM (139) driver (65) DVE (55) Elastic (83) Elasticsearch (115) elements (80) Failover (104) GQI (159) HTTP (76) IDP (74) LCA (151) low code app (166) low code apps (93) lowcodeapps (75) MySQL (53) protocol (203) QAction (83) security (88) services (51) SNMP (86) SRM (337) table (54) trending (87) upgrade (62) Visio (539) Visual Overview (345)
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