Tracker Data Transfer and Ownership from one Org. Unit to another

Hi everyone,

We have a situation in which some users were assigned to wrong Org. Units and have already collected a lot of data, so we want to transfer the beneficiaries’ details (attributes) along with events and ownership as well from one Org. Unit to another Org. Unit. How do I address this problem? I would like a step-by-step solution.

Regards

Hello @fernandoshake

To transfer enrollments from one org unit to another, you can use the ‘Transfer’ action, found on the enrollment actions on the enrollment dashboard

You can learn more about org unit transfer in the capture documentation

If you have a huge number of enrollments to transfer, you might want to look into automating the process using the Transfer ownership API

Regards.

Hi @nnkogift,

After reading the transfer ownership section, I just found the API to transfer the ownership of the the tracked entity:

/api/tracker/ownership/transfer?trackedEntity=DiszpKrYNg8&program=eBAyeGv0exc&ou=EJNxP3WreNP

But I also want to transfer program stage events linked to the tracked entity. How should the API look like?

Thanks

Perhaps @Gassim can assist more on this, but I don’t know if there is a way to transfer events.

Regards.

@fernandoshake You could export the enrollments in json file, ctrl+f to replace the original orgunit UID with the new orgunit UID, and then re-import.
Repeat for the events.
Then rerun analytics.
Yes it is kind of a hack, but for a one-off exercise, I think its your best option.