# No rows when querying tags history

**URL:** <https://forum.inductiveautomation.com/t/no-rows-when-querying-tags-history/9584>\
**Category:** Module Development\
**Created:** [January 21, 2015, 5:14pm UTC](https://forum.inductiveautomation.com/t/no-rows-when-querying-tags-history/9584 "2015-01-21T17:14:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![pocewar](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pocewar/32/8186_2.png) [@pocewar](https://forum.inductiveautomation.com/u/pocewar)\
**Post date:** [January 21, 2015, 5:14pm UTC](https://forum.inductiveautomation.com/t/no-rows-when-querying-tags-history/9584/1 "2015-01-21T17:14:49Z")

</div>

Hi,

I’m trying to query tags history within a module. I’m doing this by extending class com.inductiveautomation.ignition.client.script.ClientTagUtilities. I’m invoking protected method queryTagHistoryImpl method. Problem? Not getting data. Please let me know what I’m doing wrong:

ClientTagUtilities’s method definition is

Dataset com.inductiveautomation.ignition.client.script.ClientTagUtilities.queryTagHistoryImpl  
(List paths,  
Date startDate,  
Date endDate,  
int returnSize,  
AggregationMode aggregationMode,  
ReturnFormat format,  
List aliases  
)

1. In paths variable I send a list containing just one TagPath, which I send as a BasicTagPath. I instantiate BasicTagPath by sending the datasource name to constructor. Then I append to it the string with the tag name, like this

then I add this BasicTagPath instance to the list I send to the method as first parameter

1. in ReturnSize I’ve tried -1 and 0 with no luck
2. in aggregationMode I’ve tried Average, LastValue with no luck either
3. in ReturnFormat I’ve tried Wide and Tall
4. in aliases I send null
5. In startDate and EndDate I send a range where I know there’s information stored in database for the tag.

Any help would be highly appreciated

Thanks in advance

Carlos
