<?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[Function GetDCIValueByDescription returns (once) an empty string]]></title><description><![CDATA[<p dir="auto">I set up an DCI with: origin-script, data type-string, polling intervall-300<br />
The script returns possible node problems as string - amongst other things using the function GetDCIValueByDescription.<br />
While NetXMS is constantly running, I get the last value (not empty as expected).<br />
<strong>If the Core Server has been restarted, the function GetDCIValueByDescription returns (once) an empty string.</strong>  :-<br />
I checked in the history that the last value was not empty.</p>
<p dir="auto">I would call it a bug ::) , observed in version 2.0-RC1 and 2.0-RC2.</p>
<p dir="auto">Best Regards.</p>
]]></description><link>https://forum.netxms.org/topic/4047/function-getdcivaluebydescription-returns-once-an-empty-string</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 09:44:31 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/4047.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 18 Oct 2015 23:40:55 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Function GetDCIValueByDescription returns (once) an empty string on Mon, 19 Oct 2015 20:32:13 GMT]]></title><description><![CDATA[<p dir="auto">Many thanks for your answers.</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/victor" aria-label="Profile: victor">@<bdi>victor</bdi></a> said in <a href="/post/18019">Function GetDCIValueByDescription returns (once) an empty string</a>:</p>
<blockquote>
<p dir="auto">..<br />
GetDCIValueByDescription reads last value from cache. It can happen that it was called faster then cache for queried DCI was populated (either by poll or from database). I'll think what I can do with that.<br />
..</p>
</blockquote>
<p dir="auto">It would be nice if the behavior could be changed. <img src="https://forum.netxms.org/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=72b86a538fc" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:1.4em;width:auto;vertical-align:middle" title=":)" alt="🙂" /><br />
(Although a restart is a special situation ..)</p>
<p dir="auto">Best Regards.</p>
]]></description><link>https://forum.netxms.org/post/18040</link><guid isPermaLink="true">https://forum.netxms.org/post/18040</guid><dc:creator><![CDATA[CURuser]]></dc:creator><pubDate>Mon, 19 Oct 2015 20:32:13 GMT</pubDate></item><item><title><![CDATA[Reply to Function GetDCIValueByDescription returns (once) an empty string on Mon, 19 Oct 2015 15:24:59 GMT]]></title><description><![CDATA[<p dir="auto">I dont think this is a bug, its normal to get no value if the value has not been read from the node yet (due to server just starting up).</p>
<p dir="auto">Simply code around it in your script... either return error, or something similiar.<br />
(we do it like that in all our scripts)</p>
]]></description><link>https://forum.netxms.org/post/18034</link><guid isPermaLink="true">https://forum.netxms.org/post/18034</guid><dc:creator><![CDATA[tomaskir]]></dc:creator><pubDate>Mon, 19 Oct 2015 15:24:59 GMT</pubDate></item><item><title><![CDATA[Reply to Function GetDCIValueByDescription returns (once) an empty string on Mon, 19 Oct 2015 08:23:25 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">GetDCIValueByDescription reads last value from cache. It can happen that it was called faster then cache for queried DCI was populated (either by poll or from database). I'll think what I can do with that.</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/18019</link><guid isPermaLink="true">https://forum.netxms.org/post/18019</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Mon, 19 Oct 2015 08:23:25 GMT</pubDate></item></channel></rss>