Re: [Dhis2-devs] Importing Organisation Units with groups

2018-04-27 Thread Olaleke Seweje
Thanks Calle, for helping. On Fri, Apr 27, 2018 at 4:15 PM, Calle Hedberg wrote: > Knut, > > Seems our emails crossed - and are correct. The sequence is group then > orgunit, not orgunit then group. > > It's noteworthy that swapping them around just fails silently - no error > message in the opt

Re: [Dhis2-devs] Importing Organisation Units with groups

2018-04-27 Thread Olaleke Seweje
Thanks Knut, this works for me too. Much appreciated. On Fri, Apr 27, 2018 at 3:17 PM, Knut Staring wrote: > Hello Leke, > > I just did it now and my guess was right. As usual, the first row will be > ignored, so you should have something like this (assigning 3 orgunits to > the same group): > >

Re: [Dhis2-devs] Importing Organisation Units with groups

2018-04-27 Thread Calle Hedberg
Knut, Seems our emails crossed - and are correct. The sequence is group then orgunit, not orgunit then group. It's noteworthy that swapping them around just fails silently - no error message in the option summary, not ignored, and the tomcat log messages are more or less identical. There's n

Re: [Dhis2-devs] Importing Organisation Units with groups

2018-04-27 Thread Calle Hedberg
Hi Re last point - I've just tested importing the simple Organsiationunit_uid, orgunitgroup_uid format, and that does NOT work - system seems to just disregard it (0 created, 0 updated, 0 ignored). I also went back and checked the 2.28 release notes - they just point to the same 1.16 chapter in t

Re: [Dhis2-devs] Importing Organisation Units with groups

2018-04-27 Thread Calle Hedberg
Hi Firstly, the support for importing group members (orgunits, data elements, indicators) in CSV format was introduced in 2.28 BUT as Knut points out, the related part of the developer manuals (1.16, CSV Meta data import) remains the same as it was in 2.27 and earlier. Secondly, adding or removin

Re: [Dhis2-devs] Importing Organisation Units with groups

2018-04-27 Thread Knut Staring
Hello Leke, I just did it now and my guess was right. As usual, the first row will be ignored, so you should have something like this (assigning 3 orgunits to the same group): Group,OU VlEZ3JbCBEp,kw32DaDxwk9 VlEZ3JbCBEp,xEuwGp9HvZg VlEZ3JbCBEp,VvvUrFGaoL3 (It appears you will have to use UIDs l

Re: [Dhis2-devs] Importing Organisation Units with groups

2018-04-27 Thread Knut Staring
Hi again, You are right, sorry. It seems the manual is deficient on this point. My assumption is that the CSV format would be just: GroupUID, OrgUnitUID (or possibly the reverse order). Unless anyone else knows better, perhaps you could give it a try with just one group and a couple of orgunits?

Re: [Dhis2-devs] Importing Organisation Units with groups

2018-04-27 Thread Olaleke Seweje
Thanks Knut, I have been to this link before too but it does not show how to connect the org units with groups. For example, an org unit ABC Hospital in org unit D. I have so many org units and linking them manually to groups will take a lot of effort and time. I hope you can give me more info on

Re: [Dhis2-devs] Importing Organisation Units with groups

2018-04-27 Thread Knut Staring
Hi Leke, You can find the format here: https://docs.dhis2.org/2.26/en/developer/html/webapi_csv_metadata_import.html#webapi_csv_other_objects On Fri, Apr 27, 2018 at 12:58 PM, Olaleke Seweje wrote: > Hi all, > I am trying to import hundreds of org units with their groups. > > Is there a CSV co