I am running the following code:
endTime = system.date.now()
startTime = system.date.addDays(endTime, -1)
tubingPath = ‘Athena 1H/WellHead/Tubing’
tubingSet = system.tag.queryTagHistory(paths=[tubingPath], startDate=startTime, endDate=endTime, intervalMinutes=1, aggregationMode=“LastValue”, returnFormat=‘Tall’)
When I select a start time greater than 6 days, or 166 hours it fails. I’ve tried several different variations to select the dates, but I’ve had no luck.
This is the error I receive and for reference, line 14 is where I use the dataset. It acts like anything after 6 days is out of bounds and doesn’t pull the tag history.
Traceback (most recent call last):
File “event:actionPerformed”, line 14, in
AttributeError: ‘com.inductiveautomation.ignition.client.gateway_in’ object has no attribute ‘data’
Ignition v7.9.9 (b2018081621)
Java: Oracle Corporation 1.8.0_211