Import / export event Report

Hi,

Here are the full screenshots (Dry run was set to no):

You can also find attached the XML used for the import (I can’t attach the zip file, but when I try to import it, I use the zip file)

Thanks for your help.

**Novel-**T Sàrl

Yoann MIRA - Solutions Engineer

W: www.novel-t.ch | @: ym@novel-t.ch

metadata.xml (3.37 KB)

···

From: Alex Tumwesigye [mailto:atumwesigye@gmail.com]
Sent: jeudi 12 février 2015 17:30
To: Yoann Mira
Cc: dhis2-users@lists.launchpad.net
Subject: Re: [Dhis2-users] Import / export event Report

Dear Yoann,

Please provide a full screenshot, is dry Run set to yes or No?

Alex

On Thu, Feb 12, 2015 at 6:33 PM, Yoann Mira ym@novel-t.ch wrote:

Hi everyone,

I would like to export an event report from one DHIS instance to another one.

But when I do it, nothing happens.

As you can see on this screenshot, the system detects that there is a report to import, but then nothing is imported…

My source and targeted DHIS2 instances are exactly the same (except for the report) : so same UIDs, same OU, same Tracked entities,… This is because because one is the copy of the virtual machine hosting the other one.

Just for testing purpose, I tried to import other meta-data (org-units and Programs) and it worked correctly…

Do you have any idea why it doesn’t work?

**Novel-**T Sàrl

Yoann MIRA - Solutions Engineer


Mailing list: https://launchpad.net/~dhis2-users
Post to : dhis2-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-users
More help : https://help.launchpad.net/ListHelp

Alex Tumwesigye

Technical Advisor - DHIS2 (Consultant),
Ministry of Health/AFENET

Kampala

Uganda

IT Consultant - BarefootPower Uganda Ltd, SmartSolar, Kenya

IT Specialist (Servers, Networks and Security, Health Information Systems - DHIS2 ) & Solar Consultant

+256 774149 775, + 256 759 800161

"I don’t want to be anything other than what I have been - one tree hill "

Yes I checked all the UIDs in the XML and they all exist (because I already imported everything before and it worked correctly).

If a UID was incorrect I would have an conflict or something…

To make sure, here are screenshots from my target DHIS instance (request made through the web API):

dataElements:

Program:

ProgramStage:

Org unit:

No error in the logs from Tomcat (Catalina.out):

  • INFO 2015-02-13 14:34:40,790 User ‘admin’ started import at Fri Feb 13 14:34:40 CET 2015 (DefaultImportService.java [taskScheduler-1])

  • INFO 2015-02-13 14:34:40,798 [Level: INFO, category: METADATA_IMPORT, time: Fri Feb 13 14:34:40 CET 2015, message: Importing meta-data] (InMemoryNotifier.java [taskScheduler-1])

  • INFO 2015-02-13 14:34:40,799 Building object-bridge maps (preheatCache: true). (DefaultObjectBridge.java [taskScheduler-1])

  • INFO 2015-02-13 14:34:41,641 Building object-bridge maps took 0.84 seconds. (DefaultObjectBridge.java [taskScheduler-1])

  • INFO 2015-02-13 14:34:41,647 [Level: INFO, category: METADATA_IMPORT, time: Fri Feb 13 14:34:41 CET 2015, message: Importing 1 EventReports] (InMemoryNotifier.java [taskScheduler-1])

  • INFO 2015-02-13 14:34:41,649 [Level: INFO, category: METADATA_IMPORT, time: Fri Feb 13 14:34:41 CET 2015, message: Import done. Completed in 0.85 seconds.] (InMemoryNotifier.java [taskScheduler-1])

I also checked in the database, all the tables eventreport* are empty in my target but they contain something (what I want to export) in my source…

I have no idea why nothing happens…

**Novel-**T Sàrl

Yoann MIRA - Solutions Engineer

W: www.novel-t.ch | @: ym@novel-t.ch

image

image

image

image

image

···

From: Alex Tumwesigye [mailto:atumwesigye@gmail.com]
Sent: vendredi 13 février 2015 14:16
To: Yoann Mira
Subject: Re: [Dhis2-users] Import / export event Report

Yoann,

The xml looks complete.

can you verify that the organisationUnit exists for which you are importing the report to?

Alex

On Fri, Feb 13, 2015 at 3:26 PM, Yoann Mira ym@novel-t.ch wrote:

Hi,

Here are the full screenshots (Dry run was set to no):

You can also find attached the XML used for the import (I can’t attach the zip file, but when I try to import it, I use the zip file)

Thanks for your help.

**Novel-**T Sàrl

Yoann MIRA - Solutions Engineer

W: www.novel-t.ch | @: ym@novel-t.ch

From: Alex Tumwesigye [mailto:atumwesigye@gmail.com]
Sent: jeudi 12 février 2015 17:30
To: Yoann Mira
Cc: dhis2-users@lists.launchpad.net
Subject: Re: [Dhis2-users] Import / export event Report

Dear Yoann,

Please provide a full screenshot, is dry Run set to yes or No?

Alex

On Thu, Feb 12, 2015 at 6:33 PM, Yoann Mira ym@novel-t.ch wrote:

Hi everyone,

I would like to export an event report from one DHIS instance to another one.

But when I do it, nothing happens.

As you can see on this screenshot, the system detects that there is a report to import, but then nothing is imported…

My source and targeted DHIS2 instances are exactly the same (except for the report) : so same UIDs, same OU, same Tracked entities,… This is because because one is the copy of the virtual machine hosting the other one.

Just for testing purpose, I tried to import other meta-data (org-units and Programs) and it worked correctly…

Do you have any idea why it doesn’t work?

**Novel-**T Sàrl

Yoann MIRA - Solutions Engineer


Mailing list: https://launchpad.net/~dhis2-users
Post to : dhis2-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-users
More help : https://help.launchpad.net/ListHelp

Alex Tumwesigye

Technical Advisor - DHIS2 (Consultant),
Ministry of Health/AFENET

Kampala

Uganda

IT Consultant - BarefootPower Uganda Ltd, SmartSolar, Kenya

IT Specialist (Servers, Networks and Security, Health Information Systems - DHIS2 ) & Solar Consultant

+256 774149 775, + 256 759 800161

"I don’t want to be anything other than what I have been - one tree hill "


Mailing list: https://launchpad.net/~dhis2-users
Post to : dhis2-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-users
More help : https://help.launchpad.net/ListHelp

Alex Tumwesigye

Technical Advisor - DHIS2 (Consultant),
Ministry of Health/AFENET

Kampala

Uganda

IT Consultant - BarefootPower Uganda Ltd, SmartSolar, Kenya

IT Specialist (Servers, Networks and Security, Health Information Systems - DHIS2 ) & Solar Consultant

+256 774149 775, + 256 759 800161

"I don’t want to be anything other than what I have been - one tree hill "

Hi Tran,

Thanks for your reply.

But I would like to import an Event report not events. The event report I exported was exported through Import-ExportMeta-Data export so I guess that should be imported using the Meta-data import.

Am I correct? Or maybe there is something I misunderstand…

**Novel-**T Sàrl

Yoann MIRA - Solutions Engineer

W: www.novel-t.ch | @: ym@novel-t.ch

image

image

image

image

image

image

image

image

image

···

From: cthutran@gmail.com [mailto:cthutran@gmail.com] On Behalf Of Tran Chau (HISP Vietnam)
Sent: mardi 17 février 2015 13:22
To: Yoann Mira
Subject: Re: [Dhis2-users] Import / export event Report

Hi Yoann,

I saw your snapshot is Meta data import.

You have to use the Event Import to import program events, not Meta data import.

The Event import is in ** Import-Export > Event Import** ( apps.dhis2.org/demo/dhis-web-importexport/displayEventImportForm.action )

Besides, as my experience, you should remove the … tag in the export file before using it to import events in another DHIS instance.

I hope it can help.

Best regards,

On Fri, Feb 13, 2015 at 8:40 PM, Yoann Mira ym@novel-t.ch wrote:

Yes I checked all the UIDs in the XML and they all exist (because I already imported everything before and it worked correctly).

If a UID was incorrect I would have an conflict or something…

To make sure, here are screenshots from my target DHIS instance (request made through the web API):

dataElements:


Program:

ProgramStage:

Org unit:



No error in the logs from Tomcat (Catalina.out):

  • INFO 2015-02-13 14:34:40,790 User ‘admin’ started import at Fri Feb 13 14:34:40 CET 2015 (DefaultImportService.java [taskScheduler-1])
  • INFO 2015-02-13 14:34:40,798 [Level: INFO, category: METADATA_IMPORT, time: Fri Feb 13 14:34:40 CET 2015, message: Importing meta-data] (InMemoryNotifier.java [taskScheduler-1])
  • INFO 2015-02-13 14:34:40,799 Building object-bridge maps (preheatCache: true). (DefaultObjectBridge.java [taskScheduler-1])
  • INFO 2015-02-13 14:34:41,641 Building object-bridge maps took 0.84 seconds. (DefaultObjectBridge.java [taskScheduler-1])
  • INFO 2015-02-13 14:34:41,647 [Level: INFO, category: METADATA_IMPORT, time: Fri Feb 13 14:34:41 CET 2015, message: Importing 1 EventReports] (InMemoryNotifier.java [taskScheduler-1])
  • INFO 2015-02-13 14:34:41,649 [Level: INFO, category: METADATA_IMPORT, time: Fri Feb 13 14:34:41 CET 2015, message: Import done. Completed in 0.85 seconds.] (InMemoryNotifier.java [taskScheduler-1])

I also checked in the database, all the tables eventreport* are empty in my target but they contain something (what I want to export) in my source…

I have no idea why nothing happens…

**Novel-**T Sàrl

Yoann MIRA - Solutions Engineer

W: www.novel-t.ch | @: ym@novel-t.ch

From: Alex Tumwesigye [mailto:atumwesigye@gmail.com]
Sent: vendredi 13 février 2015 14:16
To: Yoann Mira
Subject: Re: [Dhis2-users] Import / export event Report

Yoann,

The xml looks complete.

can you verify that the organisationUnit exists for which you are importing the report to?

Alex

On Fri, Feb 13, 2015 at 3:26 PM, Yoann Mira ym@novel-t.ch wrote:

Hi,

Here are the full screenshots (Dry run was set to no):

You can also find attached the XML used for the import (I can’t attach the zip file, but when I try to import it, I use the zip file)

Thanks for your help.

**Novel-**T Sàrl

Yoann MIRA - Solutions Engineer

W: www.novel-t.ch | @: ym@novel-t.ch

From: Alex Tumwesigye [mailto:atumwesigye@gmail.com]
Sent: jeudi 12 février 2015 17:30
To: Yoann Mira
Cc: dhis2-users@lists.launchpad.net
Subject: Re: [Dhis2-users] Import / export event Report

Dear Yoann,

Please provide a full screenshot, is dry Run set to yes or No?

Alex

On Thu, Feb 12, 2015 at 6:33 PM, Yoann Mira ym@novel-t.ch wrote:

Hi everyone,

I would like to export an event report from one DHIS instance to another one.

But when I do it, nothing happens.

As you can see on this screenshot, the system detects that there is a report to import, but then nothing is imported…

My source and targeted DHIS2 instances are exactly the same (except for the report) : so same UIDs, same OU, same Tracked entities,… This is because because one is the copy of the virtual machine hosting the other one.

Just for testing purpose, I tried to import other meta-data (org-units and Programs) and it worked correctly…

Do you have any idea why it doesn’t work?

**Novel-**T Sàrl

Yoann MIRA - Solutions Engineer


Mailing list: https://launchpad.net/~dhis2-users
Post to : dhis2-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-users
More help : https://help.launchpad.net/ListHelp

Alex Tumwesigye

Technical Advisor - DHIS2 (Consultant),
Ministry of Health/AFENET

Kampala

Uganda

IT Consultant - BarefootPower Uganda Ltd, SmartSolar, Kenya

IT Specialist (Servers, Networks and Security, Health Information Systems - DHIS2 ) & Solar Consultant

+256 774149 775, + 256 759 800161

"I don’t want to be anything other than what I have been - one tree hill "


Mailing list: https://launchpad.net/~dhis2-users
Post to : dhis2-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-users
More help : https://help.launchpad.net/ListHelp

Alex Tumwesigye

Technical Advisor - DHIS2 (Consultant),
Ministry of Health/AFENET

Kampala

Uganda

IT Consultant - BarefootPower Uganda Ltd, SmartSolar, Kenya

IT Specialist (Servers, Networks and Security, Health Information Systems - DHIS2 ) & Solar Consultant

+256 774149 775, + 256 759 800161

"I don’t want to be anything other than what I have been - one tree hill "


Mailing list: https://launchpad.net/~dhis2-users
Post to : dhis2-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-users
More help : https://help.launchpad.net/ListHelp