dhis2-users team mailing list archive
-
dhis2-users team
-
Mailing list archive
-
Message #03712
Event Data Import not working properly?
Dear all,
>From PSI, we need to automatically introduce into DHIS2 thousands of single
events without registration, so we would like to use the Event Data Import
service of DHIS2. However, it seems that that funcionality was not really
working as nothing was happening in the system, although I did not receive
any error message in the Catalina.out:
INFO 2014-01-20 21:42:22,909 [Level: INFO, category: EVENT_IMPORT,
time: Mon Jan 20 21:42:22 UTC 2014, message: Importing events]
(InMemoryNotifier.java [taskScheduler-8])
I tried to replicate the same problem in the Sierra Leone Demo instance, so
first at all I used the Event Data Export to get one xml example of the
program "Inpatient Morbidity and Mortality" under the OrgUnit "Njandama
MCHP", I edited the xml file and when I tried to import it, again, nothing
happened. Please find attached in this email a copy of that file (named as
events.xml), as maybe I am missing something...
However, when if I use the curl utility to call the API:( curl -d
@events.xml "http://apps.dhis2.org/demo/api/events" -H
"Content-Type:application/xml" -u admin:district -v ) the event is
correctly stored in the database.
BUT, if we have several events in the same file, as in the attached file
eventsList.xml, it seems that the API only is storing the last event.
Any ideas?
We are using the 2.13 version till the end of March, so it would be nice if
you could look for a solution in the 2.13 version as well :).
Many thanks
Jose
<?xml version='1.0' encoding='UTF-8'?>
<events>
<eventList>
<event status="ACTIVE" program="eBAyeGv0exc" orgUnit="g8upMTyEZGZ" eventDate="2013-10-10">
<dataValues>
<dataValue value="20" dataElement="qrur9Dvnyt5"/>
<dataValue value="Female" dataElement="oZg33kd9taw"/>
<dataValue value="2013-09-26" dataElement="eMyVanycQSC"/>
<dataValue value="2013-10-02" dataElement="msodh3rEMJa"/>
<dataValue value="Discharged" dataElement="fWIAEtYVEGk"/>
<dataValue value="N39.0 - Urinary tract infection, site not specified" dataElement="K6uUAvq500H"/>
</dataValues>
</event>
</eventList>
</events>
<?xml version='1.0' encoding='UTF-8'?>
<events>
<eventList>
<event status="ACTIVE" program="eBAyeGv0exc" orgUnit="g8upMTyEZGZ" eventDate="2013-09-04">
<dataValues>
<dataValue value="30" dataElement="qrur9Dvnyt5"/>
<dataValue value="Female" dataElement="oZg33kd9taw"/>
<dataValue value="2013-09-26" dataElement="eMyVanycQSC"/>
<dataValue value="2013-10-02" dataElement="msodh3rEMJa"/>
<dataValue value="Discharged" dataElement="fWIAEtYVEGk"/>
<dataValue value="N39.0 - Urinary tract infection, site not specified" dataElement="K6uUAvq500H"/>
</dataValues>
</event>
<event status="ACTIVE" program="eBAyeGv0exc" orgUnit="g8upMTyEZGZ" eventDate="2013-09-05">
<dataValues>
<dataValue value="31" dataElement="qrur9Dvnyt5"/>
<dataValue value="Female" dataElement="oZg33kd9taw"/>
<dataValue value="2013-09-26" dataElement="eMyVanycQSC"/>
<dataValue value="2013-10-02" dataElement="msodh3rEMJa"/>
<dataValue value="Discharged" dataElement="fWIAEtYVEGk"/>
<dataValue value="N39.0 - Urinary tract infection, site not specified" dataElement="K6uUAvq500H"/>
</dataValues>
</event>
<event status="ACTIVE" program="eBAyeGv0exc" orgUnit="g8upMTyEZGZ" eventDate="2013-09-06">
<dataValues>
<dataValue value="32" dataElement="qrur9Dvnyt5"/>
<dataValue value="Female" dataElement="oZg33kd9taw"/>
<dataValue value="2013-09-26" dataElement="eMyVanycQSC"/>
<dataValue value="2013-10-02" dataElement="msodh3rEMJa"/>
<dataValue value="Discharged" dataElement="fWIAEtYVEGk"/>
<dataValue value="N39.0 - Urinary tract infection, site not specified" dataElement="K6uUAvq500H"/>
</dataValues>
</event>
<event status="ACTIVE" program="eBAyeGv0exc" orgUnit="g8upMTyEZGZ" eventDate="2013-09-07">
<dataValues>
<dataValue value="33" dataElement="qrur9Dvnyt5"/>
<dataValue value="Female" dataElement="oZg33kd9taw"/>
<dataValue value="2013-09-26" dataElement="eMyVanycQSC"/>
<dataValue value="2013-10-02" dataElement="msodh3rEMJa"/>
<dataValue value="Discharged" dataElement="fWIAEtYVEGk"/>
<dataValue value="N39.0 - Urinary tract infection, site not specified" dataElement="K6uUAvq500H"/>
</dataValues>
</event>
<event status="ACTIVE" program="eBAyeGv0exc" orgUnit="g8upMTyEZGZ" eventDate="2013-09-08">
<dataValues>
<dataValue value="34" dataElement="qrur9Dvnyt5"/>
<dataValue value="Female" dataElement="oZg33kd9taw"/>
<dataValue value="2013-09-26" dataElement="eMyVanycQSC"/>
<dataValue value="2013-10-02" dataElement="msodh3rEMJa"/>
<dataValue value="Discharged" dataElement="fWIAEtYVEGk"/>
<dataValue value="N39.0 - Urinary tract infection, site not specified" dataElement="K6uUAvq500H"/>
</dataValues>
</event>
</eventList>
</events>
Follow ups