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

Passing script parameters with # reserved character

Solved747 views24th March 2021
2
Jon Morley10 23rd March 2021 0 Comments

Hi,

I am passing script parameters but am finding that if a parameter contains the # reserved character the script does not run and I get the error box showing that parameter as 'blank'.

My Shape Data calling the script is:-

Script:X20 MTX||Output_Port_PRI=[property:x20IRS_Output_Port_PRI];Output_Port_SEC=[property:x20IRS_Output_Port_SEC];PlayoutServer=[var:PlayoutServer[property:x20IRS_Output_Port_PRI]];PRI_ElementName=[property:x20IRS_PRI_ElementName];SEC_ElementName=[property:x20IRS_SEC_ElementName];Source=PlayoutServer;PRI_ElementName_ENC=N/A;Output_Port_PRI_ENC=N/A;SEC_ElementName_ENC=N/A;Output_Port_SEC_ENC=N/A;ServiceName=[this service]||Switch to [var:PlayoutServer[property:x20IRS_Output_Port_PRI]] Playout Server on [property:x20IRS_PRI_ElementName] and [property:x20IRS_SEC_ElementName]|CloseWhenFinished,NoConfirmation,NoSetCheck

The PlayoutServer script parameter can contain a # character, the value passed in could be:-

#BAN_TSG_1080i50_BLACK

I've tried using [Sep:#^] without any success, or I'm putting the Sep in the wrong place.

Thank you for any help.

Jon

Jon Morley Selected answer as best 24th March 2021

1 Answer

  • Active
  • Voted
  • Newest
  • Oldest
2
Leander Druwel [SLC] [DevOps Member]2.02K Posted 23rd March 2021 2 Comments

Indeed, I notice the same behavior when trying this internally. Cube also adds a log line with the message 'Value does not fall within the expected range'.

I'm not aware of a possibility to escape this, however I do notice that it only seems to happen if your parameter value starts with the '#' character. An alternative solution could be adding a prefix to the Shape Data, which could then be stripped off again, i.e. replacing 'prefix#' to '#' in the automation script that is executed. Probably not the ideal solution and most fancy solution but it is quite similar to escaping a char.

Script:Automation script||Param=prefix#test|||NoConfirmation

Jon Morley Posted new comment 24th March 2021
Miguel Obregon [SLC] [DevOps Catalyst] commented 24th March 2021

Just adding a small note. The hash character (‘#’) is reserved in this context to indicate DataMiner that the parameter is assigned to as so-called permanent memory file (i.e. an array of values). Additional information in DataMiner Help:

https://help.dataminer.services/dataminer/#t=DataMinerUserGuidepart_2visioLinking_a_shape_to_an_Automation_script.htmXREF_73954_11_2_13_Linking_a&rhsearch=overviewshape&rhsyns=

Jon Morley commented 24th March 2021

Hi Leander and Miguel, thank you for the replies. We worked around the problem by prefixing every value that would be passed to the script with a whitespace, and compensating for that in the automation script using the script params.

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

Web Applications exception in Cube due to invalid certificate 0 Answers | 0 Votes
Redundancy Groups and Alarming – Duplicate Alarms 0 Answers | 0 Votes
Correlation Engine: “Test rule” doesn’t result in a hit, despite functional rule 1 Answer | 3 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 (109) Correlation (69) Correlation rule (52) Cube (151) Dashboard (194) Dashboards (188) database (83) DataMiner Cube (57) DIS (81) DMS (71) DOM (140) driver (65) DVE (56) Elastic (83) Elasticsearch (115) elements (80) Failover (104) GQI (159) HTTP (76) IDP (74) LCA (152) low code app (166) low code apps (93) lowcodeapps (75) MySQL (53) protocol (203) QAction (83) security (88) 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