<?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 query failed in table 'tdata_xxxx']]></title><description><![CDATA[<p dir="auto">We see from time to time this error in server log:</p>
<pre><code>[ERROR] SQL query failed (Query = "INSERT INTO tdata_1466 (item_id,tdata_timestamp,record_id) VALUES (?,?,?)"): 23505 ERROR:  duplicate key value violates unique constraint "tdata_1466_record_id_key "
DETAIL:  Key (record_id)=(1558995887784001536) already exists.
</code></pre>
<p dir="auto">We are on NetXMS V2.0 on PostgreSQL.</p>
<p dir="auto">How can we fix this?</p>
]]></description><link>https://forum.netxms.org/topic/4207/sql-query-failed-in-table-tdata_xxxx</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 12:15:18 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/4207.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 04 Jan 2016 18:21:17 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to SQL query failed in table 'tdata_xxxx' on Thu, 07 Jan 2016 08:24:52 GMT]]></title><description><![CDATA[<p dir="auto">After deleting these 2 DCI tables I don't see this error anymore.</p>
<p dir="auto">edit:<br />
thanks!</p>
]]></description><link>https://forum.netxms.org/post/18763</link><guid isPermaLink="true">https://forum.netxms.org/post/18763</guid><dc:creator><![CDATA[user54119]]></dc:creator><pubDate>Thu, 07 Jan 2016 08:24:52 GMT</pubDate></item><item><title><![CDATA[Reply to SQL query failed in table 'tdata_xxxx' on Mon, 04 Jan 2016 20:08:55 GMT]]></title><description><![CDATA[<p dir="auto">How can I find the name or ID of this table?</p>
<p dir="auto">edit:<br />
I suppose '1466' of 'tdata_1466' is the ID of the node. I see 2 test tables collected every minute. I just deleted both.</p>
]]></description><link>https://forum.netxms.org/post/18760</link><guid isPermaLink="true">https://forum.netxms.org/post/18760</guid><dc:creator><![CDATA[user54119]]></dc:creator><pubDate>Mon, 04 Jan 2016 20:08:55 GMT</pubDate></item><item><title><![CDATA[Reply to SQL query failed in table 'tdata_xxxx' on Mon, 04 Jan 2016 19:16:46 GMT]]></title><description><![CDATA[<p dir="auto">How often you are collecting this table?</p>
]]></description><link>https://forum.netxms.org/post/18759</link><guid isPermaLink="true">https://forum.netxms.org/post/18759</guid><dc:creator><![CDATA[alk]]></dc:creator><pubDate>Mon, 04 Jan 2016 19:16:46 GMT</pubDate></item></channel></rss>