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.
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.

Hi Miguel,
Its working using FillArrayWithColumn, thanks for you help!