New seems to have reviealed a bug in a scripting function

	endTime = system.date.now()
	startTime = system.date.addHours(endTime, -1440)
	status = system.tag.queryTagHistory(["[default]" + unit + "/Status"], startDate = startTime, endDate = endTime, ignoreBadQuality = True)

So if that code spans the year threshold it cuts off everything after the new year.Thx, jake

Doubt it, try:

status = system.tag.queryTagHistory(paths=["[default]" + unit + "/Status"], startDate = startTime, endDate = endTime, ignoreBadQuality = True)

Do you actually have data before new year (check db) ? Is prune enabled? Is your path correctly typed?

Share output for status variable

yes, no prune, path good. An arc script arced 12 2021 instead of 12 2020. I’m importing the arc now and retesting, I’ll let you know how it goes, but the query didn’t seem to pull any jan data, it did november, nothing from dec as expected without that months data.Thx, jake

Maybe your gateways pc has a lag in time (a year lag?). What do you see with system.date.now()

We were missing a table in the historian which caused all data after the missing month not display, all is well now