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

Method not found IDms

Solved463 views5th December 2024GetDMS Skyline.DataMiner.Core.DataMinerSystem.Common
1
Gerwin van der Kamp [DevOps Enabler]2.91K 3rd December 2024 0 Comments

Hi,

I've run into an issue again.

I'm trying to filter an table based on a few pids so i thought of using QueryData. However i'm getting this error

Script Failure (RSTielineCrud): System.MissingMethodException: Method not found: 'Skyline.DataMiner.Core.DataMinerSystem.Common.IDms Skyline.DataMiner.Core.DataMinerSystem.Automation.IEngineExtensions.GetDms(Skyline.DataMiner.Automation.IEngine)'.
at CManagedAutomation.RunEntryPointWrapped(CManagedAutomation* , Int32 iCookie, IUnknown* pIAutomation, tagVARIANT* varParameters, tagVARIANT* varEntryPoint, tagVARIANT* pvarReturn, String scriptName, tagVARIANT* pvarEntryPointResult)
at CManagedAutomation.Run(CManagedAutomation* , Int32 iCookie, Char* bstrScriptName, IUnknown* pIAutomation, tagVARIANT* varParameters, tagVARIANT* varEntryPoint, tagVARIANT* pvarReturn, tagVARIANT* pvarEntryPointResult) (CSharp; 0x80004005h): (see comment for more details)

So i stripped the script to bare minimum but still i got the error on this script:

namespace RSTielineCrud_100
{
using System;
using System.Collections.Generic;
using System.Linq;
using Skyline.DataMiner.Automation;
using Skyline.DataMiner.Core.DataMinerSystem.Automation;
using Skyline.DataMiner.Core.DataMinerSystem.Common;
using Skyline.DataMiner.Net.Apps.DataMinerObjectModel;

/// <summary>
/// Represents a DataMiner Automation script.
/// </summary>
public class Script
{
/// <summary>
/// The script entry point.
/// </summary>
/// <param name="engine">Link with SLAutomation process.</param>
public void Run(IEngine engine)
{
engine.GenerateInformation("This script should be run from DOM CRUD");
}

[AutomationEntryPoint(AutomationEntryPointType.Types.OnDomInstanceCrudWithFullMeta)] public void OnDomInstanceCrud(IEngine engine, DomInstanceCrudMeta crudMeta)
{
try
{
IDms dms = engine.GetDms();
IDmsElement ionVmatrix = dms.GetElement(new DmsElementId(128710, 9));

List<ColumnFilter> sourcefilter = new List<ColumnFilter>
{
new ColumnFilter { Pid = 1602, Value = "ea2f6edd-7637-4b7a-b2a2-05d322f83db9", ComparisonOperator = ComparisonOperator.Equal },
new ColumnFilter { Pid = 1607, Value = "4514", ComparisonOperator = ComparisonOperator.Equal },
};
IEnumerable<object[]> sourceTable = ionVmatrix.GetTable(1600).QueryData(sourcefilter);

engine.GenerateInformation($"RS TEST  Found: {sourceTable.Count()}");
}
catch(Exception e)
{
engine.GenerateInformation($"EXEPTION: {e.Message}");
}
}
}
}

As you can see it doesn't throw an exeption it just stops directly. I've loaded the following nugets:

<PackageReference Include="Skyline.DataMiner.Core.DataMinerSystem.Automation" Version="1.1.2.1" />
<PackageReference Include="Skyline.DataMiner.Core.DataMinerSystem.Common" Version="1.1.2.1" />
<PackageReference Include="Skyline.DataMiner.Dev.Automation" Version="10.4.5" />

I don;t get compile errors or validation errors.

Target Version is 10.4.5

For anyone who want to to test this: https://github.com/Gerwin-RBM/IDMS_Issue

You might also put in in the run block i'm getting the same error.

Gerwin van der Kamp [DevOps Enabler] Selected answer as best 5th December 2024

1 Answer

  • Active
  • Voted
  • Newest
  • Oldest
1
Alija Kusur [SLC] [DevOps Advocate]437 Posted 4th December 2024 6 Comments

Hi Gerwin, can you check if all dlls are correctly referenced under the script code in dataminer? I am also posting a screenshot of section mentioned, so you can have a better representation of what I said

Gerwin van der Kamp [DevOps Enabler] Selected answer as best 5th December 2024
Gerwin van der Kamp [DevOps Enabler] commented 4th December 2024

Yes they are there:

C:Skyline DataMinerProtocolScriptsDllImportskyline.dataminer.core.dataminersystem.common1.1.2.1libnet462Skyline.DataMiner.Core.DataMinerSystem.Common.dll
C:Skyline DataMinerProtocolScriptsDllImportskyline.dataminer.core.dataminersystem.automation1.1.1.5libnet462Skyline.DataMiner.Core.DataMinerSystem.Automation.dll

Alija Kusur [SLC] [DevOps Advocate] commented 4th December 2024

I see that in package reference, you have both packages listed with version "1.1.2.1", and the version 1.1.1.5 of "Skyline.DataMiner.Core.DataMinerSystem.Automation" is listed in the dll references. Can you try to align the versions, and also confirm that mentioned dlls are found in their paths?

Gerwin van der Kamp [DevOps Enabler] commented 4th December 2024

Ah yes, i;ve updated skyline.dataminer.core.dataminersystem.automation to the latest version to see if that might fix the issue. However when the DLL is not found in the path i do get an validation error or the script. I didn't get those so there for i assumed the files most be there.

changed it back but still the same issue

Arne Maes [SLC] [DevOps Advocate] commented 4th December 2024

Hi Gerwin, you could even completely remove the reference to Skyline.DataMiner.Core.DataMinerSystem.Common as this is automatically included by having the reference to Skyline.DataMiner.Core.DataMinerSystem.Automation.

Peter Vanpoucke [SLC] [DevOps Advocate] commented 4th December 2024

Hi Gerwin, did you get this working? Otherwise, could you republish your script?
According to the previous comments it looks like the version of the Automation NuGet doesn't match the one of Common NuGet. That mismatch is known to give these kinds of issues.

Show 1 more comments
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