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

Error with ConnectMatrixCrosspoint()

154 views18th April 2025Automatoin ConnectMatrixCrosspoint()
5
Ross Elliott [DevOps Advocate]819 16th April 2025 0 Comments

Hi, I'm running a script to connect a matrix crosspoint and my info event below is working as expected, but then the set isn't working and I get the following error..

Script Failure EXIT: "Error initialising script inputs|Set Parameter ('xxx':1000/) Failed: 0x80004005"

Script:

if (isRouting)
{
if(finalRouterChosenInputLocked)
{
engine.GenerateInformation($"SETTING {router.ElementName}, In:{currentRouterInput} to unlocked");
sb.AppendLine($"-{router.ElementName} In:{currentRouterInput}, Unlocked-{Environment.NewLine}");
router.MatrixSetInputLockMode(1000, currentRouterInput, false);
}

if(finalOutputLocked)
{
engine.GenerateInformation($"SETTING {router.ElementName}, Out:{finalOutput} to unlocked");
sb.AppendLine($"-{router.ElementName} Out:{finalOutput}, Unlocked-{Environment.NewLine}");
router.MatrixSetOutputLockMode(1000, finalOutput, false);
}

sb.AppendLine($"-SET {router.ElementName} In:{currentRouterInput}, Out:{finalOutput}-{Environment.NewLine}");

engine.GenerateInformation($"SETTING Final Router {router.ElementName} (1000, {currentRouterInput}, {finalOutput})");
router.ConnectMatrixCrosspoint(1000, currentRouterInput, finalOutput);

My info event as follows

SETTING Final Router myRouter (1000, 2, 9)

But then I get the error when it's setting to the Element.

What does '0x80004005' mean exactly? Is there anything I can do to get this working?

Thanks,

Ross

Benjamin Hodžić [SLC] [DevOps Advocate] Answered question 18th April 2025

1 Answer

  • Active
  • Voted
  • Newest
  • Oldest
0
Benjamin Hodžić [SLC] [DevOps Advocate]1.12K Posted 18th April 2025 2 Comments

Hello Ross,

What I would suggest is to try and perform a direct set to the Output table of the corresponding matrix. That's similar to what the "ConnectMatrixCrosspoint" method does in the background.

You can use the SetParameterByPrimaryKey method for that.
Make sure to put the correct parameter ID as the first method param - that would be the column which is probably named "Connected input label/port". Setting that cell manually will also reflect in the matrix.

Your code would look something like this:
...
int columnPidConnectedInputLabelPort = 1005; // Put in your column PID here.
router.SetParameterByPrimaryKey(columnPidConnectedInputLabelPort, Convert.ToString(finalOutput), Convert.ToString(currentRouterInput));

Note: currentRouterInput can be a port or a label of the input you want to set, make sure to double check what you are setting.

Hope this helps. Let me know if you need any further help!

Ross Elliott [DevOps Advocate] Posted new comment 22nd April 2025
Jeroen Geldhof [SLC] [DevOps Enabler] commented 22nd April 2025

In this case there is no separate table. There's only the matrix component.

Ross Elliott [DevOps Advocate] commented 22nd April 2025

Hi, thanks for your answer it's very much appreciated. There's no column IDs defined for the matrix array. I'm not sure which parameter you're referring to. It's the SLC driver Pro-Bel SW-P-02 v2.1.1.3.

<Param id="1000" trending="false">
<Name>Matrix</Name>
<Description>Matrix</Description>
<Type options="dimensions=1024,1024;columntypes=1001:0-1023">array</Type>
<Information>
<Subtext><![CDATA[Contains the crosspoint information from the router.]]></Subtext>
</Information>
<!–
help on options:
the different options are separated with a ';'
– dimensions: row,column
– columntype: 2:0-20,35|3:21-34,36
where the number before the : specifies the parameter id and the numbers behind the columns (0 based)
–>
<Interprete>
<RawType>other</RawType>
<LengthType>next param</LengthType>
<Type>double</Type>
</Interprete>
<Display>
<RTDisplay>true</RTDisplay>
<Positions>
<Position>
<Page>Matrix</Page>
<Row>0</Row>
<Column>0</Column>
</Position>
</Positions>
</Display>
<Alarm>
<Monitored>true</Monitored>
</Alarm>
<Measurement>
<!– Sequence for matrix options Number Inputs/Number Outputs/COMin/COMax/CIMin/CIMax –>
<Type link="labels.xml" options="matrix=1024,1024,0,1,0,1024,pages;tab=lines:20,filter:false">matrix</Type>
<Discreets>
<Discreet>
<Display>Input 1</Display>
<Value>1</Value>

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