← Back to team overview

dhis2-users team mailing list archive

Re: Event Data Import not working properly?

 

Hi,

I have fixed this issue now, the problem was that it defaulted to JSON
format.. and there was no way to change it. Now the UI allows you to select
the format (default XML), and do the import. I tested it with 10 events
now, and it was working fine.

Could you try it again? I will backport to 2.13, 2.14, and our download
server should be updated in a couple of hours.

I had no problem when I used cURL though...

--
Morten


On Tue, Jan 21, 2014 at 7:30 PM, Jose Garcia Muñoz <josemp10@xxxxxxxxx>wrote:

>
> 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
>
> _______________________________________________
> Mailing list: https://launchpad.net/~dhis2-users
> Post to     : dhis2-users@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~dhis2-users
> More help   : https://help.launchpad.net/ListHelp
>
>

Follow ups

References