Closed murp-C2D2 closed 3 years ago
Hi @murp-C2D2 ,
Thank you for your message, As we may see from your logs - you used LIMIT in your query. Please make sure that this query doesn't return the same value after every execution.
Thank you for your reply. I use the LIMIT clause in the SQL to limit the number of records to be processed (as suggested in the documentation). The record_id column I used in the SQL query is a auto incremented primary-key column in the database. So, it is not possible that the query would return duplicate records unless the gateway is not incrementing the iterator correctly. I have also checked on the server side to see if there were any duplicate records but this is not the case.
Hi @murp-C2D2, your bug was fixed, please, update your Gateway to the newest version via the master branch. Thanks for your interest in ThingsBoard IoT Gateway.
Description I am running a thingsboard-iot-gateway instance running on an docker container in Windows. I have configured the ODBC connector and is able to query data from a PostgreSQL database and push them to the thingsboard server. I have a test table with 32 records containing only 3 columns.
There is however a problem here with the transmission/reliability of the gateway sending all the records. When I see the logs, The connector reports that all 32 records are processed. However, when I see the telemetry entries on the thingsboard server, several records (>50%) are missing. I don't see any error or warning in the logs on either on the server or the gateway.
What I tried and didn't work:
My tb_gateway.yml config
My odbc.json
Connector name: [ODBC Connector]
Error traceback: Extract of connector log file
Versions: