Datatype is integer for both the tag and column in the table.
The value returned is just the select top 1 myColumn from table where clause
Two things, the query had been working fine, never touched it in a long time.
Suddenly yesterday, I hear that a value was showing wrong on a screen.
I check today, value is null.
I run the query in the query browser, returns exactly the value I expect.
I check the tags used in the query, their values are correct.
I changed a value of an a memory tag used in the driven query, still query is null.
I set the tag to fixed rate, still value is null.
I run in the query browser, still get the correct value.
A query using the same query, except selecting a different column, is returning the correct value.
I plugged in numbers instead of tag reads on the query, immediately right value shows.
I put the tags references back into the query, and reads null again.
Now I am really confused. Suddenly the value is reading correctly.
I didn't even change anything.
But I need these values to always read correctly. I can't have this part of the time working. I am not sure how to make it robust.
I have three of these tags. They all use the same exact queries except different columns.
The one is reading the value correctly after I had removed the tag references, and put them back.
(speed per hour)
The second uses exactly the same query, except different column. It doesn't work.
(expected speed per hour)
The third is a string type, and never read wrong, still reads right.
(production type name string based on the data collected from the same tags)
I can't share an image of it. I think I need to do maybe a support call.