# Bug in the returnSize parameter for the system.historian.queryRawPoints

**URL:** <https://forum.inductiveautomation.com/t/bug-in-the-returnsize-parameter-for-the-system-historian-queryrawpoints/112466>\
**Category:** Ignition\
**Tags:** ignition83\
**Created:** [November 26, 2025, 9:57pm UTC](https://forum.inductiveautomation.com/t/bug-in-the-returnsize-parameter-for-the-system-historian-queryrawpoints/112466 "2025-11-26T21:57:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![leonard.smit](https://avatars.discourse-cdn.com/v4/letter/l/cab0a1/32.png) [@leonard.smit](https://forum.inductiveautomation.com/u/leonard.smit)\
**Post date:** [November 26, 2025, 9:57pm UTC](https://forum.inductiveautomation.com/t/bug-in-the-returnsize-parameter-for-the-system-historian-queryrawpoints/112466/1 "2025-11-26T21:57:07Z")

</div>

Hi All,

It seems the return Size parameter does not limit the returned dataset size, see below, I tried to limit it to 2 records but get the same result as the un-filtered call?

```python
results = system.historian.queryRawPoints(['histprov:OPCData:/drv:default:default:/tag:default/Overview/CaseCount'], system.date.addHours(system.date.now(), -1),system.date.now())
len(results)
results2 =system.historian.queryRawPoints(['histprov:OPCData:/drv:default:default:/tag:default/Overview/CaseCount'], system.date.addHours(system.date.now(), -1),system.date.now(), returnSize=2)
len(results2)
results3 =system.historian.queryRawPoints(['histprov:OPCData:/drv:default:default:/tag:default/Overview/CaseCount'], system.date.addHours(system.date.now(), -1),system.date.now(),['test'],'',2)
len(results2)

```

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/a/7/a7165a996cec9f43cc830a3432240ac28566e58d.png)

Thanks,

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [November 26, 2025, 10:40pm UTC](https://forum.inductiveautomation.com/t/bug-in-the-returnsize-parameter-for-the-system-historian-queryrawpoints/112466/2 "2025-11-26T22:40:43Z")

</div>

I think the documentation and implementation are not right.

The docs repeatedly say "aggregated points" but the function name itself says "raw", and there's no argument available for aggregation mode.

Which means return size cannot possibly mean anything. You get the raw points for the timespan. Full stop.

(It should never allow wide return format, as that forces weird value duplication into other timestamps.)
