NetXMS Support Forum

English Support => General Support => Topic started by: vmgracia on May 17, 2013, 02:18:19 PM

Title: SQL query failed
Post by: vmgracia on May 17, 2013, 02:18:19 PM
hi all

I'm constantly getting into the event monitor the following message:

SQL query failed (Query = "INSERT INTO object_custom_attributes (object_id,attr_name,attr_value) VALUES (?,?,?)"): columns object_id, attr_name are not unique

the table object_custom_attributes is empty.

Does anyone know that I have to do to fix it?

thanks.
Title: Re: SQL query failed
Post by: Victor Kirhenshtein on May 17, 2013, 05:55:57 PM
Hi!

Did you try to configure any custom attributes for some object?

Best regards,
Victor
Title: Re: SQL query failed
Post by: vmgracia on May 17, 2013, 11:45:33 PM

not sure....

i have installed a new netxms server from scratch into the same network. later i will know if this behavior is reproducible in the new server



thanks for your very fast response
Title: Re: SQL query failed
Post by: vmgracia on May 20, 2013, 07:30:58 PM
starting from scratch here is the findings.


the message
SQL query failed (Query = "INSERT INTO object_custom_attributes (object_id,attr_name,attr_value) VALUES (?,?,?)"): columns object_id, attr_name are not unique

does not appear anymore but every time I try to add a third element to a pair of objects that are already attached with the function 'link selected object (Ctrl+L)' this message appears:

SYS_DB_QUERY_FAILED   Database query failed (Query: INSERT INTO network_map_links (map_id,element1,element2,link_type,link_name,connector_name1,connector_name2,color,status_object,routing,bend_points) VALUES (?,?,?,?,?,?,?,?,?,?,?); Error: columns map_id, element1, element2 are not unique)
Title: SQL query failed
Post by: chabacha2004 on September 25, 2013, 08:59:27 PM
I get a same problem

25.09.2013 11:31:08   MYConsole   Critical   SYS_DB_QUERY_FAILED   Database query failed (Query: INSERT INTO network_map_links (map_id,element1,element2,link_type,link_name,connector_name1,connector_name2,color,status_object,routing,bend_points) VALUES (?,?,?,?,?,?,?,?,?,?,?); Error: columns map_id, element1, element2 are not unique).

Does anyone know How can I fix it?

Thanks.