# Iterator ID is not valid

**URL:** <https://community.cdata.com/t/iterator-id-is-not-valid/564>\
**Category:** Data Sources\
**Tags:** article, quickbooks\
**Created:** [December 13, 2023, 8:39pm UTC](https://community.cdata.com/t/iterator-id-is-not-valid/564 "2023-12-13T20:39:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Omar](https://avatars.discourse-cdn.com/v4/letter/o/f0a364/32.png) [@Omar](https://community.cdata.com/u/Omar)\
**Post date:** [December 13, 2023, 8:39pm UTC](https://community.cdata.com/t/iterator-id-is-not-valid/564/1 "2023-12-13T20:39:53Z")

</div>

The ‘Iterator ID is not valid’ error occurs when Quickbooks takes too long to fetch a single page of data. When this happens, the iterator id can be invalidated before the complete data is returned.

You can solve this in two ways:

1. Decrease the PageSize connection property in your QuickBooks connection

2. Increase the idle timeout and enable persistent connections in your QuickBooks Desktop Gateway (previously known as the Remote Connector). You can find documentation for this here [https://cdn.cdata.com/help/RQJ/odbc/pg\_rcadvanced.htm](https://cdn.cdata.com/help/RQJ/odbc/pg_rcadvanced.htm)
