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
    • YouTube Videos
    • Solutions & Use Cases
      • Solutions
      • Use Case Library
    • Agility
      • Book your Agile Fundamentals training
      • Book you Kanban workshop
      • Learn more about 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)
    • >> Go to DataMiner Docs
  • DevOps
    • About the DevOps Program
    • Sign up for the DevOps Pogram
    • DataMiner DevOps Support
    • Feature Suggestions
  • Swag Shop
  • Downloads
  • PARTNERS
    • All Partners
    • Technology Partners
    • Strategic Partner Program
    • Solutions
    • Deal Registration
  • Contact
    • Sales, Training & Certification
    • DataMiner Support
    • Global Feedback Survey
  • >> Go to dataminer.services

SLManagedAutomation dll: System cannot find the file specified.

38 views6 hours agoadhoc GQI DxM LCA SLAutomation
0
João Azevedo285 24 hours ago 0 Comments

Hello everyone, hope you're all well! Can someone help me with the following erro when using an adhoc in LCA?

Steps that i already have take:
- enabled the GQI DxM as mentioned in the documentation(GQI DxM | DataMiner Docs).
- verified if the SLManagedAutomation.dll was correctly located in the path C:\Skyline DataMiner\Files, and it was there, as mentioned in another similar question(Kata 62 - could not load assembly - DataMiner Dojo).

I will make the code available here in case the error may be in it, I would be grateful if you could check it.
namespace Web_Services___Get_Bookings_1
{
using System;
using System.Linq;
using System.Collections.Generic;
using Skyline.DataMiner.Automation;
using Skyline.DataMiner.Core.DataMinerSystem.Common;
using Skyline.DataMiner.Analytics.GenericInterface;
using Skyline.DataMiner.Net.Messages;
using Skyline.DataMiner.Net.ManagerStore;
using Skyline.DataMiner.Net.ResourceManager.Objects;
using Skyline.DataMiner.Net.Messages.SLDataGateway;

[GQIMetaData(Name = "Booking History")] public class GetBookingHistory : IGQIDataSource, IGQIOnInit
{
    private ReservationInstance[] _bookingsArray;
private Engine engine;
private GQIDMS gqiDms;
public OnInitOutputArgs OnInit(OnInitInputArgs args)
{
gqiDms = args.DMS;
var helper = new ResourceManagerHelper(gqiDms.SendMessage);
engine.GenerateInformation("Iniciando paginação de bookings...");

var list = new List<ReservationInstance>();

try
{
var pager = helper.PrepareReservationInstancePaging(
(SLDataGateway.API.Types.Querying.IQuery<ReservationInstance>)ResourceExposers.CreatedAt.LessThanOrEqual(DateTime.Today),
preferredPagingSize: 200);

while (pager.MoveToNextPage() && list.Count < 1000)
{
list.AddRange(pager.GetCurrentPage());
}
}
catch (CrudFailedException ex)
{
engine.GenerateInformation($"Erro ao buscar bookings: {ex.TraceData}");
}

_bookingsArray = list.Take(1000).ToArray();
engine.GenerateInformation($"Total bookings carregados: {_bookingsArray.Length}");

return new OnInitOutputArgs();
}

public GQIColumn[] GetColumns() => new GQIColumn[] {
new GQIStringColumn("Name"),
new GQIStringColumn("CreatedBy"),
new GQIDateTimeColumn("CreatedAt"),
new GQIStringColumn("LastModifiedBy"),
new GQIDateTimeColumn("LastModifiedAt"),
};

public GQIPage GetNextPage(GetNextPageInputArgs args)
{
var rows = _bookingsArray.Select(b => new GQIRow(new GQICell[] {
new GQICell { Value = b.Name },
new GQICell { Value = b.CreatedBy },
new GQICell { Value = b.CreatedAt },
new GQICell { Value = b.LastModifiedBy },
new GQICell { Value = b.LastModifiedAt },
})).ToArray();

return new GQIPage(rows);
}
}
}

Thomas Ghysbrecht [SLC] [DevOps Enabler] Answered question 6 hours ago

1 Answer

  • Active
  • Voted
  • Newest
  • Oldest
1
Thomas Ghysbrecht [SLC] [DevOps Enabler]4.94K Posted 6 hours ago 0 Comments

Hi João,

In an ad-hoc data source, you do not have access to the Automation's 'Engine' object since this code is not executed as an Automation script. It is thus not really possible to use the SLManagedAutomation.dll. To get some output/logging in your ad-hoc data source, it is recommended to use the logging functionality that is built into the ad-hoc data source framework: https://docs.dataminer.services/develop/devguide/GQI%20Extensions/GQI_Extensions_Logging.html?tabs=tabid-1

Thomas Ghysbrecht [SLC] [DevOps Enabler] Answered question 6 hours ago
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

[ Placeholder content for popup link ] WordPress Download Manager - Best Download Management Plugin