Issue with import using the /api/24/metadata (trunk)

Hi Devs

We have been trying to do an export from the demo instance and import it using the API itself.

On a clean DB it fails to import all the items.

Attached is the log file for the same.

Errors.txt (61.6 KB)

···

With Regards
ThoughtWorks Technologies

Hyderabad

–Stay Hungry Stay Foolish!!

Hi All

sorry just an update. It was from the dev instance. But nonetheless it should have worked.

Regards

Vanya

···

On Thu, Jun 9, 2016 at 4:33 PM, Vanya Seth vanyas@thoughtworks.com wrote:

Hi Devs

We have been trying to do an export from the demo instance and import it using the API itself.

On a clean DB it fails to import all the items.

Attached is the log file for the same.


With Regards
ThoughtWorks Technologies

Hyderabad

–Stay Hungry Stay Foolish!!

With Regards
ThoughtWorks Technologies

Hyderabad

–Stay Hungry Stay Foolish!!

Hi Vanya

Yes, the SL demo database has a bunch of issues… I wouldn’t use that as an import/export example… :wink: This database is getting quite old, and has been for us for a long time… so it has issues with invalid lng/lat, too short publicAccess fields, etc etc… it needs quite some work to be 100% import compatible (a lot of stuff is now being validated on import, which does not have

constraints in the database)

···

On Thu, Jun 9, 2016 at 6:03 PM, Vanya Seth vanyas@thoughtworks.com wrote:

Hi Devs

We have been trying to do an export from the demo instance and import it using the API itself.

On a clean DB it fails to import all the items.

Attached is the log file for the same.


With Regards
ThoughtWorks Technologies

Hyderabad

–Stay Hungry Stay Foolish!!


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

Morten Olav Hansen

Senior Engineer, DHIS 2

University of Oslo

http://www.dhis2.org

Hi Morten

Thanks for the response. But would it be possible to share some other DB that DHIS uses for testing?

Regards

Vanya

···

On Thu, Jun 9, 2016 at 4:38 PM, Morten Olav Hansen morten@dhis2.org wrote:

Hi Vanya

Yes, the SL demo database has a bunch of issues… I wouldn’t use that as an import/export example… :wink: This database is getting quite old, and has been for us for a long time… so it has issues with invalid lng/lat, too short publicAccess fields, etc etc… it needs quite some work to be 100% import compatible (a lot of stuff is now being validated on import, which does not have

constraints in the database)

Morten Olav Hansen

Senior Engineer, DHIS 2

University of Oslo

http://www.dhis2.org

On Thu, Jun 9, 2016 at 6:03 PM, Vanya Seth vanyas@thoughtworks.com wrote:

Hi Devs

We have been trying to do an export from the demo instance and import it using the API itself.

On a clean DB it fails to import all the items.

Attached is the log file for the same.


With Regards
ThoughtWorks Technologies

Hyderabad

–Stay Hungry Stay Foolish!!


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

With Regards
ThoughtWorks Technologies

Hyderabad

–Stay Hungry Stay Foolish!!

I don’t have any databases like that Vanya, what I do for our testing is to create one new database for each case, then export to json, and put in dhis-service-dxf2 testing directory (you can have a look there).

I don’t have one big database for testing sadly, there might be someone else who has it though?

···

On Thu, Jun 9, 2016 at 6:12 PM, Vanya Seth vanyas@thoughtworks.com wrote:

Hi Morten

Thanks for the response. But would it be possible to share some other DB that DHIS uses for testing?

Regards

Vanya

Morten Olav Hansen

Senior Engineer, DHIS 2

University of Oslo

http://www.dhis2.org

On Thu, Jun 9, 2016 at 4:38 PM, Morten Olav Hansen morten@dhis2.org wrote:

Hi Vanya

Yes, the SL demo database has a bunch of issues… I wouldn’t use that as an import/export example… :wink: This database is getting quite old, and has been for us for a long time… so it has issues with invalid lng/lat, too short publicAccess fields, etc etc… it needs quite some work to be 100% import compatible (a lot of stuff is now being validated on import, which does not have

constraints in the database)


With Regards
ThoughtWorks Technologies

Hyderabad

–Stay Hungry Stay Foolish!!

Morten Olav Hansen

Senior Engineer, DHIS 2

University of Oslo

http://www.dhis2.org

On Thu, Jun 9, 2016 at 6:03 PM, Vanya Seth vanyas@thoughtworks.com wrote:

Hi Devs

We have been trying to do an export from the demo instance and import it using the API itself.

On a clean DB it fails to import all the items.

Attached is the log file for the same.


With Regards
ThoughtWorks Technologies

Hyderabad

–Stay Hungry Stay Foolish!!


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