Tracker Data Values Import

Hello, community,
I have a couple of questions about the tracker capture:

  1. Can I have a tracker program without program stages? Individual-level data is being collected but there are no stages to be followed up on
  2. I have about 2 million rows of individual-level information I want to push into DHIS2 tracker. How can I use an API for this?

Hi @Rae

Yes, you can have a single stage only.

Yes, you can use Tracker Import (/api/tracker), explanation in the docs: Tracker - DHIS2 Documentation
You can post back if thereā€™s anything there thatā€™s not clear please!

I appreciate the response. To reiterate, there are no stages to be followed up on so can I create a program without any program stage?

Yes, you can technically create a Tracker program with zero program stages. If I understand correctly, all the needed data will be in the ā€˜enrollmentā€™ (tracked entity attributes)?

Yes, correct

1 Like

Hello, Gassim.
I tried implementing this with all the suggestions and Iā€™m getting this error from postman:

Hereā€™s the body. Iā€™m using a JSON file

Looks to me like you are trying to import some numeric value, but it is only the ā€œ-ā€ sign which is in the value field.


Thank you, Jason. These are the only numeric fields in my JSON file. Or should I take out the valueType variable?

I also have this content-type warning message.

Hi @Rae

My best advice to get the correct API requests, is to create the Tracker program using the Maintenance app while monitoring the request that is sent (using DevTools ā†’ Network) [same goes when filling out the data in the Capture app].

Additionally, like @jason mentioned, it looks like one of the values is not properly set, so check all the ā€˜numericā€™ values.

Thanks!