<?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[Transformation Error After Upgrade]]></title><description><![CDATA[<p dir="auto">I am getting an odd transformation error (that never occurred before, until after the 2.2.1 update).  This is happening on the NetXMS server agent node.</p>
<p dir="auto">(HOSTNAME <a href="http://xxx.xxx.xxx" rel="nofollow ugc">xxx.xxx.xxx</a>::227::TransformationScript) execution error: Error 13 in line 1: Cannot do automatic type cast</p>
<p dir="auto">Unfortunately from this error I am not able to determine which of the several data collection items I have is the culprit.  I am getting results back on all my collection items, no invalid data but still getting the error... thoughts?</p>
<p dir="auto">Thanks in advance!</p>
]]></description><link>https://forum.netxms.org/topic/5352/transformation-error-after-upgrade</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 09:44:16 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/5352.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 08 Dec 2017 02:21:34 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Transformation Error After Upgrade on Wed, 13 Dec 2017 15:28:33 GMT]]></title><description><![CDATA[<p dir="auto">Update...</p>
<p dir="auto">Changing the transformation script to this works</p>
<pre><code>return int64($1) / (1024 * 1024);
</code></pre>
]]></description><link>https://forum.netxms.org/post/23548</link><guid isPermaLink="true">https://forum.netxms.org/post/23548</guid><dc:creator><![CDATA[zoke]]></dc:creator><pubDate>Wed, 13 Dec 2017 15:28:33 GMT</pubDate></item><item><title><![CDATA[Reply to Transformation Error After Upgrade on Tue, 12 Dec 2017 03:12:35 GMT]]></title><description><![CDATA[<p dir="auto">Hijacking this thread as I'm seeing the same error with transformation of uint64 after upgrade to 2.2.1</p>
<p dir="auto">DCI in question is Filesystem.Free(/var)</p>
<p dir="auto">Transformation script after trial and error</p>
<pre><code>trace(0, $node-&gt;name . " " . $dci-&gt;name . " " . $1 . " " . typeof($1));
return uint64($1 / (1024 * 1024));
</code></pre>
<p dir="auto">Relevant part from log when above DCI is polled</p>
<pre><code>2017.12.12 03:57:13.034 *I* alina FileSystem.Free(/var) 58124193792 uint64
2017.12.12 03:57:13.034 *W* Failed to execute transformation script for object 865 "alina" DCI 813 "FileSystem.Free(/var)": Error 13 in line 2: Cannot do automatic type cast
</code></pre>
<p dir="auto">Also tried without casting to uint64.</p>
<p dir="auto">Changing the transformation script to return null (which from my understanding of the hint should return the raw value) results in free space being reported as 0. Actual value printed to log for reference.<br />
Transformation script</p>
<pre><code>trace(0, $node-&gt;name . " " . $dci-&gt;name . " " . $1 . " " . typeof($1));
return null;
return uint64($1 / (1024 * 1024));
</code></pre>
<p dir="auto">Log</p>
<pre><code>2017.12.12 04:07:10.221 *I* alina FileSystem.Free(/var) 58124161024 uint64
</code></pre>
<p dir="auto">Transformation script before update was simply</p>
<pre><code>$1 / (1024 * 1024)
</code></pre>
<p dir="auto">Clearing out the transformation script returns the raw value.</p>
]]></description><link>https://forum.netxms.org/post/23533</link><guid isPermaLink="true">https://forum.netxms.org/post/23533</guid><dc:creator><![CDATA[zoke]]></dc:creator><pubDate>Tue, 12 Dec 2017 03:12:35 GMT</pubDate></item><item><title><![CDATA[Reply to Transformation Error After Upgrade on Fri, 08 Dec 2017 12:46:42 GMT]]></title><description><![CDATA[<p dir="auto">I changed to INT and it works fine now... Thanks, I also found a thread on the SNMP walk issue.  Fixed the permission and all good now.</p>
]]></description><link>https://forum.netxms.org/post/23494</link><guid isPermaLink="true">https://forum.netxms.org/post/23494</guid><dc:creator><![CDATA[sjudy]]></dc:creator><pubDate>Fri, 08 Dec 2017 12:46:42 GMT</pubDate></item><item><title><![CDATA[Reply to Transformation Error After Upgrade on Fri, 08 Dec 2017 12:33:24 GMT]]></title><description><![CDATA[<p dir="auto">Hi Victor,</p>
<p dir="auto">These are Unsigned INT64</p>
<p dir="auto">Also, I am finding (perhaps related) when I do an 'walk' on any SNMP object, I get: "Cannot do SNMP MIB tree walk: Access denied" and it worked before...</p>
]]></description><link>https://forum.netxms.org/post/23493</link><guid isPermaLink="true">https://forum.netxms.org/post/23493</guid><dc:creator><![CDATA[sjudy]]></dc:creator><pubDate>Fri, 08 Dec 2017 12:33:24 GMT</pubDate></item><item><title><![CDATA[Reply to Transformation Error After Upgrade on Fri, 08 Dec 2017 10:28:53 GMT]]></title><description><![CDATA[<p dir="auto">What is DCI data type?</p>
]]></description><link>https://forum.netxms.org/post/23477</link><guid isPermaLink="true">https://forum.netxms.org/post/23477</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Fri, 08 Dec 2017 10:28:53 GMT</pubDate></item><item><title><![CDATA[Reply to Transformation Error After Upgrade on Fri, 08 Dec 2017 02:36:27 GMT]]></title><description><![CDATA[<p dir="auto">A little more info, I tracked down which item it was... it is actually a Sonicwall node, the transformation is a simple ($1 / 1000000) script.... I rebuilt the MIBS and rebooted... doubt that will help.</p>
]]></description><link>https://forum.netxms.org/post/23465</link><guid isPermaLink="true">https://forum.netxms.org/post/23465</guid><dc:creator><![CDATA[sjudy]]></dc:creator><pubDate>Fri, 08 Dec 2017 02:36:27 GMT</pubDate></item></channel></rss>