In Ignition, I have two tags with history enabled in On Change mode. When the tag values changed, I verified in the history partition table and confirmed that the values were recorded there.
However, when I try to retrieve the values using the system.tag.queryTagHistory function always returns two rows, even though the history table contains only one row for that time range.
I set the start and end time with just a one-second difference. I also tried different options, such as noInterpolation = True, and different aggregation modes like LastValue, Count, and IntervalSeconds, but it still returns two rows.
Has anyone faced a similar issue? Please help.
I’ve attached the history table data and my script below.
Script :
t_stamp = "2025-08-25 11:59:58"
new_path = '[cms]test_ar/New Tag'
new_path_1 = '[cms]test_ar/New Tag 1'
start = system.date.parse(t_stamp)
end = system.date.addSeconds(start, 1)
value = system.tag.queryTagHistory( paths=[new_path,new_path_1], startDate=start, endDate=end )

