# Unable to page through dataValueSets

**URL:** <https://community.dhis2.org/t/unable-to-page-through-datavaluesets/44104>\
**Category:** Support - Assistance technique\
**Tags:** api\
**Created:** [25 August 2021 13:23 UTC](https://community.dhis2.org/t/unable-to-page-through-datavaluesets/44104 "2021-08-25T13:23:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![PamelaRichardson](https://dhis2.b-cdn.net/letter_avatar_proxy/v4/letter/p/58956e/32.png) [@PamelaRichardson](https://community.dhis2.org/u/PamelaRichardson)\
**Post date:** [25 August 2021 13:23 UTC](https://community.dhis2.org/t/unable-to-page-through-datavaluesets/44104/1 "2021-08-25T13:23:01Z")

</div>

Hi  
I need to be able to page through large volumes of dataValueSets via api  
but paging parameters do not seem to be available for this data.

Assistance would be appreciated, TIA

---

<div class="post-metadata">

**Author:** ![Lars](https://dhis2.b-cdn.net/user_avatar/community.dhis2.org/lars/32/34166_2.png) [@Lars](https://community.dhis2.org/u/Lars)\
**Post date:** [26 August 2021 09:46 UTC](https://community.dhis2.org/t/unable-to-page-through-datavaluesets/44104/2 "2021-08-26T09:46:35Z")

</div>

Hi Pamela, as you have correctly observed we do not support paging on that specific endpoint. The main reason is that data values don’t have a single primary key, making it difficult to have a stable ordering which is required for paging.

Instead we recommend that you page implicitly based on organisation units, time start/end dates or alternatively data set or data element groups.

Said differently, in your API client, you can first fetch org units e.g. at level 2 or 3 in your hierarchy, and make individual data value requests for each org units (including the sub-hierarchy of the org unit). You can use a similar approach with start/end dates, or data element groups.

best regards,

Lars

---

<div class="post-metadata">

**Author:** ![PamelaRichardson](https://dhis2.b-cdn.net/letter_avatar_proxy/v4/letter/p/58956e/32.png) [@PamelaRichardson](https://community.dhis2.org/u/PamelaRichardson)\
**Post date:** [28 August 2021 14:30 UTC](https://community.dhis2.org/t/unable-to-page-through-datavaluesets/44104/3 "2021-08-28T14:30:43Z")

</div>

Thanks Lars. I understand. I had started to think about those other options for sub-setting the data, thanks. Nice to stop spending time looking for something that doesnt exist! 🙂
