I am using the function below to try to add data to my historian DB. When i run this in script console it seems to compile with no errors. I added a few lines to the script to query and print the historical data that i'm inserting and that comes back with no values. If i run it more than once for a date/time then i get a log message error saying that it could not insert because of a duplicate timestamp. I have a tag history table configured for this tag and I do not see any of the values that are supposedly being inserted into the historical database. What is going wrong here??
I was trying to view the tag history in a table component with date parameters but even with the dates wide open (like may to august) i am not seeing the values that I am writing. Next step will be to start digging through the partitions. I did see a log message that said a partition was created when I was first trying to write this data.
edit: we are writing data for 2024 because we do not currently have any data for this tag that old and i think thats why i saw a log that a partition was created
So i can insert rows directly into a partition table from SQL? Is that what you are recommending? I cant edit existing entries because there are no existing entries for that tag id for the time period we wish to write data on