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 @j.afo

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 @j.afo

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!