Hi Tomas, It looks like this can be a possible bug (the program allows only 1 ACTIVE enrollment, the system imports first the ACTIVE one and then it doesn't consider that the second is COMPLETE and not ACTIVE. But I need to confirm this).
Could you please provide a payload you are sending into the DHIS2? (If you test it on Demo DB (and the payload is for Demo DB) it will be a plus). You can send it directly to my email if you want. Regarding mergeMode: I think, merging does not apply here and it applies only to data values. On Tue, Nov 6, 2018 at 12:39 PM, Tomas Sala <tomas.s...@barcelona.msf.org> wrote: > Hi, > > > > I am trying to import a trackedEntityInstance with two enrollments using > the strategy SYNC, one is ACTIVE and the other one is COMPLETED. It only > import the ACTIVE one and ignore the other one: > > > > "responseType": "ImportSummary", > > "status": "ERROR", > > "description": "TrackedEntityInstance > z8txd6oJzR6 already has an active enrollment in program ORvg6A5ed7z", > > "importCount": { > > "imported": 0, > > "updated": 0, > > "ignored": 1, > > "deleted": 0 > > > > > > I’m making this POST call /trackedEntityInstances? > strategy=SYNC&mergeMode=MERGE > > > > Is it possible to avoid DHIS ignoring the COMPLETED enrolment and import > both of them? > > > > Thank you! > > > > *Tomàs Sala Camarena* > > *Ehealth Technician, eHealth Team * > > *eHealth & Operations Applications (´Apps4OPS´)* > > *Projects & IT Unit * > > *Médecins Sans Frontières (MSF) Spain – Barcelona Office* > Fixed: +34 933 213 043 > > Email / Skype: *tomas.s...@barcelona.msf.org > <tomas.s...@barcelona.msf.org>* - www.msf.org > > > > > > > > > > > > > > > > > > > > > > > > > > > > _______________________________________________ > Mailing list: https://launchpad.net/~dhis2-devs > Post to : dhis2-devs@lists.launchpad.net > Unsubscribe : https://launchpad.net/~dhis2-devs > More help : https://help.launchpad.net/ListHelp > > -- Best regards / Mvh, David Katuscak
_______________________________________________ Mailing list: https://launchpad.net/~dhis2-devs Post to : dhis2-devs@lists.launchpad.net Unsubscribe : https://launchpad.net/~dhis2-devs More help : https://help.launchpad.net/ListHelp