# How can the download of Tracker program events be limited?

**URL:** <https://community.dhis2.org/t/how-can-the-download-of-tracker-program-events-be-limited/61324>\
**Category:** Mobile\
**Tags:** android\
**Created:** [29 September 2024 07:37 UTC](https://community.dhis2.org/t/how-can-the-download-of-tracker-program-events-be-limited/61324 "2024-09-29T07:37:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![George\_McGuire](https://dhis2.b-cdn.net/user_avatar/community.dhis2.org/george_mcguire/32/33824_2.png) [@George\_McGuire](https://community.dhis2.org/u/George_McGuire)\
**Post date:** [29 September 2024 07:37 UTC](https://community.dhis2.org/t/how-can-the-download-of-tracker-program-events-be-limited/61324/1 "2024-09-29T07:37:36Z")

</div>

We are currently implementing DHIS2-RTS in the Comoros and require the following behaviour in the Capture Android app for the DHIS2-RTS (Tracker program):

- for any specific OU, all TEIs (about 150) must be downloaded, even if there never has been any Tracker event for them or the last event took place months or years ago

- the number of Events should be limited (as past Tracker events are not visible to the user, in principle no events need to be downloaded as long as the stock on hand from the last transaction with a Program rule, which could have been years ago, is available)

- the in-app offline Line Listing needs to be limited to about the last 30 days, is the analytics in any way affected by limits on TEI or event downloads?

I understand that only events from Event programs can be limited. If events from Tracker Programs cannot be limited, eventually there will be tens of thousands of events which are downloaded to the mobile device which will lead to excessive synchronisation times (for example when changing users and having to synchronise all data) and slow down the application.

---

<div class="post-metadata">

**Author:** ![Gassim](https://dhis2.b-cdn.net/user_avatar/community.dhis2.org/gassim/32/35347_2.png) [@Gassim](https://community.dhis2.org/u/Gassim)\
**Post date:** [30 September 2024 14:20 UTC](https://community.dhis2.org/t/how-can-the-download-of-tracker-program-events-be-limited/61324/2 "2024-09-30T14:20:03Z")

</div>

Hi @George_McGuire

I think these options are available in the Android Settings web app which you can download from the App Management app. For example,

> [@George\_McGuire](#):
>
> If events from Tracker Programs cannot be limited, eventually there will be tens of thousands of events

 ![image](https://dhis2.b-cdn.net/uploads/default/original/3X/0/a/0a440e03ddf53be5647d39434d807e7a1452af37.png)  
In the field “Maximum Event downloads” I can choose to download only a specific number of events per TEI.

Please let me know if you’ve checked the other ones and I will double check too. Thanks!

---

<div class="post-metadata">

**Author:** ![George\_McGuire](https://dhis2.b-cdn.net/user_avatar/community.dhis2.org/george_mcguire/32/33824_2.png) [@George\_McGuire](https://community.dhis2.org/u/George_McGuire)\
**Post date:** [30 September 2024 15:04 UTC](https://community.dhis2.org/t/how-can-the-download-of-tracker-program-events-be-limited/61324/3 "2024-09-30T15:04:28Z")

</div>

Hi Gassim. Thanks for your help. The DHIS2 documentation clearly states that limiting events is only available for Event programs but not for Tracker programs:

> **[Settings configuration - DHIS2 Documentation](https://docs.dhis2.org/en/use/android-app/settings-configuration.html)**
>
> Official documentation of the DHIS2 platform

“The Android App will limit the number of Event to download only for the _event programs_ ( **and not _tracker programs_** ) according to the field.”

![image](https://dhis2.b-cdn.net/uploads/default/original/3X/1/d/1de450a7dd884aee1df964badb6a1f1c6d1321c9.png)
