<?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[SQL errors - field incorrect or syntax error - is this a problem?]]></title><description><![CDATA[<p dir="auto">Is this a problem that i need to worry about or change?  or is there something i can check to see if it is a dci causing the problem. </p>
<p dir="auto">[08-Aug-2017 13:04:05.627] [ERROR] SQL query failed (Query = "INSERT INTO tdata_56226 (item_id,tdata_timestamp,tdata_value) VALUES (?,?,?)"): [Microsoft][SQL Server Native Client 10.0]COUNT field incorrect or syntax error</p>
<p dir="auto">this is a new node (56226) that i just recreated after deleting the previous incarnation of this device. I have about 200 nodes that are all doing this .  I haven't checked them all but any that i have map to dell powerconnect switches.<br />
These messages are filling the log files.  Is the simple solution to set LogFailedSQLQueries = no and ignore it or am I just covering up a bigger problem.</p>
<p dir="auto">Thx.</p>
<p dir="auto">info: <br />
server = netxms2.1.0 on win 2012r2 with MSSQL2014  (upgraded from 2.1rc1)<br />
device = Dell Powerconnect 5524<br />
driver = DELL-PWC</p>
<p dir="auto">Template DCI's:</p>
<p dir="auto">"ID","Origin","Description","Parameter","Data Type","Polling Interval","Retention Time","Status","Thresholds","Template"<br />
"224355","SNMP","Switch: Stack Info",".1.3.6.1.4.1.89.53.14.1.1","&lt;&lt; TABLE &gt;&gt;","custom schedule","default","Active","",""<br />
"224354","SNMP","Switch: Software Version",".1.3.6.1.4.1.674.10895.3000.1.2.100.4.0","String","custom schedule","default","Active","",""<br />
"224353","SNMP","Switch: Service Tag",".1.3.6.1.4.1.674.10895.3000.1.2.100.8.1.4.1","String","custom schedule","default","Active","",""<br />
"224352","SNMP","Switch: Port Information",".1.3.6.1.4.1.89.53.3.1.1","&lt;&lt; TABLE &gt;&gt;","7200","default","Active","",""<br />
"224356","SNMP","Switch: Stack Units",".1.3.6.1.4.1.89.53.8.0","Integer","custom schedule","default","Active","",""<br />
"224351","SNMP","Switch: Physical Serial Number",".1.3.6.1.4.1.674.10895.3000.1.2.100.8.1.2.1","String","custom schedule","default","Active","",""<br />
"224350","SNMP","Switch: Model",".1.3.6.1.4.1.674.10895.3000.1.2.100.1.0","String","custom schedule","default","Active","",""<br />
"224349","SNMP","Switch: Global Status",".1.3.6.1.4.1.674.10895.3000.1.2.110.1.0","Integer","3600","default","Active","last(1) == 5",""</p>
]]></description><link>https://forum.netxms.org/topic/5195/sql-errors-field-incorrect-or-syntax-error-is-this-a-problem</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 11:41:27 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/5195.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 08 Aug 2017 18:42:17 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to SQL errors - field incorrect or syntax error - is this a problem? on Fri, 11 Aug 2017 15:18:14 GMT]]></title><description><![CDATA[<p dir="auto">Thx,  That did the trick.  History is now being kept on table DCI's.</p>
]]></description><link>https://forum.netxms.org/post/22902</link><guid isPermaLink="true">https://forum.netxms.org/post/22902</guid><dc:creator><![CDATA[StanHubble]]></dc:creator><pubDate>Fri, 11 Aug 2017 15:18:14 GMT</pubDate></item><item><title><![CDATA[Reply to SQL errors - field incorrect or syntax error - is this a problem? on Thu, 10 Aug 2017 16:14:33 GMT]]></title><description><![CDATA[<p dir="auto">I've found bug in MS SQL driver. Please try to replace your existing mssql.ddr with attached one - SQL errors should disappear.</p>
<p dir="auto">Best regards,<br />
Victor</p>
<hr />
<p dir="auto"><a href="/assets/uploads/files/smf/0000000003641-mssql.ddr">mssql.ddr</a></p>
]]></description><link>https://forum.netxms.org/post/22883</link><guid isPermaLink="true">https://forum.netxms.org/post/22883</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Thu, 10 Aug 2017 16:14:33 GMT</pubDate></item><item><title><![CDATA[Reply to SQL errors - field incorrect or syntax error - is this a problem? on Thu, 10 Aug 2017 13:22:48 GMT]]></title><description><![CDATA[<p dir="auto">mssql.ddr [Microsoft][SQL Server Native Client 10.0]</p>
<p dir="auto">Microsoft SQL Server Management Studio		12.0.4100.1<br />
Microsoft Analysis Services Client Tools		12.0.4100.1<br />
Microsoft Data Access Components (MDAC)		6.3.9600.17415<br />
Microsoft MSXML						3.0 6.0<br />
Microsoft .NET Framework					4.0.30319.42000<br />
Operating System						6.3.9600  (2012r2)</p>
]]></description><link>https://forum.netxms.org/post/22879</link><guid isPermaLink="true">https://forum.netxms.org/post/22879</guid><dc:creator><![CDATA[StanHubble]]></dc:creator><pubDate>Thu, 10 Aug 2017 13:22:48 GMT</pubDate></item><item><title><![CDATA[Reply to SQL errors - field incorrect or syntax error - is this a problem? on Thu, 10 Aug 2017 12:53:21 GMT]]></title><description><![CDATA[<p dir="auto">What DB driver you are using - mssql.ddr or odbc.ddr?</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/22875</link><guid isPermaLink="true">https://forum.netxms.org/post/22875</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Thu, 10 Aug 2017 12:53:21 GMT</pubDate></item><item><title><![CDATA[Reply to SQL errors - field incorrect or syntax error - is this a problem? on Tue, 08 Aug 2017 19:56:30 GMT]]></title><description><![CDATA[<p dir="auto">FYI: here is a copy of the template</p>
<hr />
<p dir="auto"><a href="/assets/uploads/files/smf/0000000003640-powerconnect5524.xml">powerconnect5524.xml</a></p>
]]></description><link>https://forum.netxms.org/post/22870</link><guid isPermaLink="true">https://forum.netxms.org/post/22870</guid><dc:creator><![CDATA[StanHubble]]></dc:creator><pubDate>Tue, 08 Aug 2017 19:56:30 GMT</pubDate></item><item><title><![CDATA[Reply to SQL errors - field incorrect or syntax error - is this a problem? on Tue, 08 Aug 2017 19:51:52 GMT]]></title><description><![CDATA[<p dir="auto">Thx for the quick reply,</p>
<p dir="auto">Yes there are about 200 or so objects doing this....</p>
<p dir="auto">The 2 table dci's are "Switch: Stack Info" and "Switch: Port Information"</p>
<p dir="auto">and you pointed me to the "history"  which yes whenever the "TABLE" dci's are polled the error shows in the log file and no new history is recorded.  Any newly created/recreated objects have no history being kept and any old objects only show history from rc1.</p>
]]></description><link>https://forum.netxms.org/post/22869</link><guid isPermaLink="true">https://forum.netxms.org/post/22869</guid><dc:creator><![CDATA[StanHubble]]></dc:creator><pubDate>Tue, 08 Aug 2017 19:51:52 GMT</pubDate></item><item><title><![CDATA[Reply to SQL errors - field incorrect or syntax error - is this a problem? on Tue, 08 Aug 2017 19:09:04 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">it's definitely a bug in the server. Do you have errors only for this node or for multiple nodes? It is tdata table that means values for some table DCI are not stored in database. What table DCIs you have on this node? Can you check which of them will not show history?</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/22868</link><guid isPermaLink="true">https://forum.netxms.org/post/22868</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Tue, 08 Aug 2017 19:09:04 GMT</pubDate></item></channel></rss>