<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Using GetDCIValue function]]></title><description><![CDATA[<p dir="auto">Hi , I am trying to do transformation scripting using GetDCIValue function<br />
like<br />
dciName = "ISTRTTS2";<br />
dciId = FindDCIByDescription($node, dciName);<br />
dciObj = GetDCIObject($node, dciId);<br />
tableOld = GetDCIValue($node, dciId);<br />
followed by<br />
for (j = 0; j &lt; tableOld-&gt;rowCount; j++)</p>
<p dir="auto">The script work fine for first time, every time when I restart netxms server and agent, I am get error 14 at line " for (j = 0; j &lt; tableOld-&gt;rowCount; j++)"</p>
<p dir="auto">As a work around, if I remove the transformation script allow the DCI to collect data and add script, the script will work.<br />
It seems script expects the last data, but when we restart the netxms server and agent, why it is not picking data from database<br />
How can I handle this problem? Any suggestion</p>
]]></description><link>https://forum.netxms.org/topic/3830/using-getdcivalue-function</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 13:08:32 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/3830.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 18 Jun 2015 13:14:43 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Using GetDCIValue function on Fri, 19 Jun 2015 07:43:06 GMT]]></title><description><![CDATA[<p dir="auto">Thank you very much.. it works now</p>
]]></description><link>https://forum.netxms.org/post/17112</link><guid isPermaLink="true">https://forum.netxms.org/post/17112</guid><dc:creator><![CDATA[Nagav]]></dc:creator><pubDate>Fri, 19 Jun 2015 07:43:06 GMT</pubDate></item><item><title><![CDATA[Reply to Using GetDCIValue function on Thu, 18 Jun 2015 16:24:00 GMT]]></title><description><![CDATA[<p dir="auto">When server first starts, the DCI has no new collected data yet.</p>
<p dir="auto">Script around it and return an error like so:</p>
<pre><code>tableOld = GetDCIValue($node, dciId);
if (tableOld == null) return 0;
</code></pre>
]]></description><link>https://forum.netxms.org/post/17110</link><guid isPermaLink="true">https://forum.netxms.org/post/17110</guid><dc:creator><![CDATA[tomaskir]]></dc:creator><pubDate>Thu, 18 Jun 2015 16:24:00 GMT</pubDate></item></channel></rss>