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
    • Agility
      • Kanban workshop
      • Agile Fundamentals
    • Certification
      • DataMiner Fundamentals
      • DataMiner Configurator
      • DataMiner Automation
      • Scripts & Connectors Developer: HTTP Basics
      • Scripts & Connectors Developer: SNMP Basics
      • Visual Overview – Level 1
      • Verify a certificate
    • 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
      • OSS/BSS
    • 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
      • About the DevOps Program
      • DataMiner DevOps Support
  • Downloads
  • More
    • Feature Suggestions
    • Climb the leaderboard!
    • Swag Shop
    • Contact
    • Global Feedback Survey
  • Support
  • PARTNERS
    • All Partners
    • Technology Partners
    • Strategic Partner Program
    • Solutions
    • Deal Registration
  • >> Go to dataminer.services

Issues fill table on custom protocol

Solved115 views24th May 2025#cprotocol driver load protocol failed protocol.clear
2
Jose Araujo [DevOps Advocate]602 24th May 2025 0 Comments

Hi, I have issues when try to fill my table in my custom protocol

Table code

<Paramid="1101">

<Name>ServiceTableUUID</Name>

<Description>UUID</Description>

<Type>read</Type>

<Interprete>

<RawType>other</RawType>

<Type>string</Type>

<LengthType>next param</LengthType>

</Interprete>

<Display>

<RTDisplay>true</RTDisplay>

</Display>

<Measurement>

<Type>string</Type>

</Measurement>

</Param>

<Paramid="1102">

<Name>ServiceTableService</Name>

<Description>Service Name</Description>

<Type>read</Type>

<Interprete>

<RawType>other</RawType>

<Type>string</Type>

<LengthType>next param</LengthType>

</Interprete>

<Display>

<RTDisplay>true</RTDisplay>

</Display>

<Measurement>

<Type>string</Type>

</Measurement>

</Param>

<Paramid="1103">

<Name>ServiceTableStateService</Name>

<Description>Service Status</Description>

<Type>read</Type>

<Interprete>

<RawType>other</RawType>

<Type>string</Type>

<LengthType>next param</LengthType>

</Interprete>

<Display>

<RTDisplay>true</RTDisplay>

</Display>

<Measurement>

<Type>string</Type>

</Measurement>

</Param>

<Paramid="1104">

<Name>ServiceTablechunk</Name>

<Description>Chunk</Description>

<Type>read</Type>

<Interprete>

<RawType>other</RawType>

<Type>string</Type>

<LengthType>next param</LengthType>

</Interprete>

<Display>

<RTDisplay>true</RTDisplay>

</Display>

<Measurement>

<Type>string</Type>

</Measurement>

</Param>

<Paramid="1100"trending="true">

<Name>ServiceTable</Name>

<Description>Table Of Services</Description>

<Type>array</Type>

<ArrayOptionsindex="0">

<ColumnOptionidx="0"pid="1101"type="retrieved"options=";save" />

<ColumnOptionidx="1"pid="1102"type="retrieved"options=";save" />

<ColumnOptionidx="2"pid="1103"type="retrieved"options=";save" />

<ColumnOptionidx="3"pid="1104"type="retrieved"options=";save" />

</ArrayOptions>

<Information>

<Subtext>

<![CDATA[Table Of Services]]>

</Subtext>

</Information>

<Display>

<RTDisplay>true</RTDisplay>

<Positions>

<Position>

<Page>Services</Page>

<Column>0</Column>

<Row>0</Row>

</Position>

</Positions>

</Display>

<Measurement>

<Typeoptions="tab=columns:1101|0-1102|1-1103|2-1104|3,width:350-220-112-100,sort:STRING-STRING-STRING-STRING,lines:10,filter:true">table</Type>

</Measurement>

</Param>

QAction code

using System;

using Skyline.DataMiner.Scripting;

public class Script

{

    public void Run(SLProtocol protocol)

    {

        try

        {

            object[][] table = new object[][]

            {

                new object[] { Guid.NewGuid().ToString(), "Servicio A", "Activo", "true" },

                new object[] { Guid.NewGuid().ToString(), "Servicio B", "Inactivo", "false" },

            };

            protocol.SetParameter(1100, table);

            protocol.Log("Table load", LogType.Information);

        }

        catch (Exception ex)

        {

            protocol.Log("ERROR loading table " + ex.Message, LogType.Error);

        }

    }

}

Log error

2025/05/24 06:02:38.964|SLManagedScripting.exe|ManagedInterop|ERR|-1|14|ERROR loading table Specified array was not of the expected type.
2025/05/24 06:02:38.964|SLProtocol - 15024 - sdfsdfs|17308|CParameter::RunQActions|DBG|5|QAction 106 finished
2025/05/24 06:02:39.141|SLProtocol - 15024 - sdfsdfs|17308|CGroup::Execute|DBG|6|Finished executing group 50
2025/05/24 06:02:39.142|SLProtocol - 15024 - sdfsdfs|1892|CTimer::TimerThreadFunc|DBG|6|Last group finished.

Jose Araujo [DevOps Advocate] Selected answer as best 24th May 2025

1 Answer

  • Active
  • Voted
  • Newest
  • Oldest
1
Miguel Obregon [SLC] [DevOps Catalyst]19.32K Posted 24th May 2025 1 Comment

Hi Jose,

I believe that the method that you are using to the update the content of the table is not correct.

Can you try using the method FillArrayWithColumn?

Hope it helps.

Jose Araujo [DevOps Advocate] Selected answer as best 24th May 2025
Jose Araujo [DevOps Advocate] commented 24th May 2025

Hi Miguel,

Its working using FillArrayWithColumn, thanks for you help!

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