I am attempting to grab a DataSet from an historical tag. I am using the system.tag.queryTagHistory() method to do this. I am using this script in a project that has the default database set to “A”, but the historical tag is being stored in database “B”. When I use the system.tag.queryTagHistory() method it attempts to look up the history in the database “A” instead of database “B”, even though the historical tag is setup to store in database “B” using the historical tag setup in the edit tags dialog. Is there a way of setting the target database for this method?
ERROR:
Traceback (innermost last):
File “event:actionPerformed”, line 16, in ?
com.inductiveautomation.ignition.client.gateway_interface.GatewayException: Gateway Error 500: Table ‘A.sqlth_drv’ doesn’t exist
Caused by: com.mysql.jdbc.exceptions.MySQLSyntaxErrorException: Table ‘A.sqlth_drv’ doesn’t exist
com.inductiveautomation.ignition.client.gateway_interface.GatewayException: com.inductiveautomation.ignition.client.gateway_interface.GatewayException: Gateway Error 500: Table ‘A.sqlth_drv’ doesn’t exist
Ignition v7.2.5 (b76)
Java: Sun Microsystems Inc. 1.6.0_24