Re: [Dhis2-devs] [Dhis2-users] API for Patch dataSet and dataelement

2018-04-27 Thread Jean Habib
HI Ocaya for your reply.
But I got this error
{
"httpStatus": "Conflict",
"httpStatusCode": 409,
"status": "ERROR",
"message": "Only identifiable object collections can be removed from."
}

What can be issue ?

2018-04-27 20:23 GMT+00:00 Stephen Ocaya :

> Hi, You might want to look at this documentation. This is a generic
> metadata update that you can make using the API for any metadata.
>
> You will have to prepare your payload for dataElements as below:- where id
> is UID of existing dataElements and hit the endpoints using a comand like
> below
>
> 1. Prepare the Payload
>
> {
>   "dataElements": [
> { "id": "ID1" },
> { "id": "ID2" },
> { "id": "ID3" }
>   ]
> }
>
> 2. Make the Call to the Endpoints
>
> curl -d @dataelements.json 
> "http://server/api/26/dataSets/UID/dataSetElements; -X POST -H "Content-Type: 
> application/json" -u user:password
>
>
>
> https://docs.dhis2.org/2.28/en/developer/html/dhis2_
> developer_manual_full.html#webapi_adding_removing_objects_collections
>
> regards
>
> On Fri, Apr 27, 2018 at 8:45 PM, Jean Habib  wrote:
>
>> Hi all,
>> Please there is a way to add dataeelement to dataset by API, like partial
>> update ?
>> Best
>>
>> ___
>> Mailing list: https://launchpad.net/~dhis2-users
>> Post to : dhis2-us...@lists.launchpad.net
>> Unsubscribe : https://launchpad.net/~dhis2-users
>> More help   : https://help.launchpad.net/ListHelp
>>
>>
>
>
> --
> *Stephen Ocaya*
> Health Information Systems Advisor,
> Mobile: +256774558980 | +256752712007
> SkypeID: stephocay
>
>
> Strategic Information Systems for Actions
> Plot 36 Impala Avenue, Kololo
> 
> P.O. Box 4750, Kampala
>
___
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


[Dhis2-devs] API for Patch dataSet and dataelement

2018-04-27 Thread Jean Habib
Hi all,
Please there is a way to add dataeelement to dataset by API, like partial
update ?
Best
___
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


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 option summary, not ignored, and the tomcat log messages are
> more or less identical.
>
> There's no support for using code or name
>
> Regards
> Calle
>
>
>
> On 27 April 2018 at 17:03, Calle Hedberg  wrote:
>
>> 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 the manual, so there is no info there.
>>
>> Anybody who knows what the correct CSV format is for importing
>> orgunitgroupmembers, and ditto for data elements and indicators?
>>
>> Regards
>> Calle
>>
>> On 27 April 2018 at 16:52, Calle Hedberg  wrote:
>>
>>> 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 removing OrgUnits from orgunitgroups using the
>>> normal User Interface is now broken in 2.28 and 2.29 (and trunk,
>>> presumably). You can open a group and select/unselect Orgunits, but SAVE is
>>> just greyed out. I've confirmed this local for both 2.28 and 2.29, and
>>> using the 2.28 SL demo (2.29 SL demo is not usable - admin/district no
>>> longer works). I'm writing a jira bug report for it.
>>>
>>> Thirdly, i would presume - as Knut is also hinting at - that the CSV
>>> format is simple:  Organsiationunit_uid, orgunitgroup_uid
>>>
>>> Regards
>>> Calle
>>>
>>> On 27 April 2018 at 15:55, Knut Staring  wrote:
>>>
 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?

 Knut

 On Fri, Apr 27, 2018 at 3:43 PM, Olaleke Seweje <
 sewejeolal...@gmail.com> wrote:

> 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 this.
>
> Thanks.
>
>
>
> On Fri, Apr 27, 2018 at 12:49 PM, Knut Staring 
> wrote:
>
>> Hi Leke,
>>
>> You can find the format here:
>>
>> https://docs.dhis2.org/2.26/en/developer/html/webapi_csv_met
>> adata_import.html#webapi_csv_other_objects
>>
>> On Fri, Apr 27, 2018 at 12:58 PM, Olaleke Seweje <
>> sewejeolal...@gmail.com> wrote:
>>
>>> Hi all,
>>> I am trying to import hundreds of org units with their groups.
>>>
>>> Is there a CSV config sheet format that can be used for this?
>>>
>>> Maybe I'd need to use 'Organisation unit with group option' on the
>>> CSV import page but I need the format of the config sheet. If so, can
>>> someone please share the config sheet for doing this?
>>>
>>> If not, please share with me info on how I can automate importing
>>> org units with groups.
>>>
>>> Thanks.
>>>
>>> --
>>> Regards,
>>> Leke Seweje
>>>
>>> ___
>>> 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
>>>
>>>
>>
>>
>> --
>> Knut Staring
>>
>> Department of Information, Evidence and Research
>> World Health Organization, Geneva, Switzerland
>> Office: +41 22 791 3683 Mob1: +33 6 4434 2931 Mob2: +47 9188 0522
>> Skype: knutstar
>>
>
>
>
> --
> Regards,
> Leke Seweje
>



 --
 Knut Staring

 Department of Information, Evidence and Research
 World Health Organization, Geneva, Switzerland
 Office: +41 22 791 3683 Mob1: +33 6 4434 2931 Mob2: +47 9188 0522
 Skype: knutstar

 ___
 Mailing list: https://launchpad.net/~dhis2-devs
 Post to : dhis2-devs@lists.launchpad.net

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):
>
> Group,OU
> VlEZ3JbCBEp,kw32DaDxwk9
> VlEZ3JbCBEp,xEuwGp9HvZg
> VlEZ3JbCBEp,VvvUrFGaoL3
>
> (It appears you will have to use UIDs like in my example, I don't think it
> will match on Code or Name).
>
> On Fri, Apr 27, 2018 at 3:55 PM, Knut Staring  wrote:
>
>> 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?
>>
>> Knut
>>
>> On Fri, Apr 27, 2018 at 3:43 PM, Olaleke Seweje 
>> wrote:
>>
>>> 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 this.
>>>
>>> Thanks.
>>>
>>>
>>>
>>> On Fri, Apr 27, 2018 at 12:49 PM, Knut Staring  wrote:
>>>
 Hi Leke,

 You can find the format here:

 https://docs.dhis2.org/2.26/en/developer/html/webapi_csv_met
 adata_import.html#webapi_csv_other_objects

 On Fri, Apr 27, 2018 at 12:58 PM, Olaleke Seweje <
 sewejeolal...@gmail.com> wrote:

> Hi all,
> I am trying to import hundreds of org units with their groups.
>
> Is there a CSV config sheet format that can be used for this?
>
> Maybe I'd need to use 'Organisation unit with group option' on the CSV
> import page but I need the format of the config sheet. If so, can someone
> please share the config sheet for doing this?
>
> If not, please share with me info on how I can automate importing org
> units with groups.
>
> Thanks.
>
> --
> Regards,
> Leke Seweje
>
> ___
> 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
>
>


 --
 Knut Staring

 Department of Information, Evidence and Research
 World Health Organization, Geneva, Switzerland
 Office: +41 22 791 3683 Mob1: +33 6 4434 2931 Mob2: +47 9188 0522
 Skype: knutstar

>>>
>>>
>>>
>>> --
>>> Regards,
>>> Leke Seweje
>>>
>>
>>
>>
>> --
>> Knut Staring
>>
>> Department of Information, Evidence and Research
>> World Health Organization, Geneva, Switzerland
>> Office: +41 22 791 3683 Mob1: +33 6 4434 2931 Mob2: +47 9188 0522
>> Skype: knutstar
>>
>
>
>
> --
> Knut Staring
>
> Department of Information, Evidence and Research
> World Health Organization, Geneva, Switzerland
> Office: +41 22 791 3683 Mob1: +33 6 4434 2931 Mob2: +47 9188 0522
> Skype: knutstar
>



-- 
Regards,
Leke Seweje
___
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


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 no support for using code or name

Regards
Calle



On 27 April 2018 at 17:03, Calle Hedberg  wrote:

> 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 the manual, so there is no info there.
>
> Anybody who knows what the correct CSV format is for importing
> orgunitgroupmembers, and ditto for data elements and indicators?
>
> Regards
> Calle
>
> On 27 April 2018 at 16:52, Calle Hedberg  wrote:
>
>> 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 removing OrgUnits from orgunitgroups using the normal
>> User Interface is now broken in 2.28 and 2.29 (and trunk, presumably). You
>> can open a group and select/unselect Orgunits, but SAVE is just greyed out.
>> I've confirmed this local for both 2.28 and 2.29, and using the 2.28 SL
>> demo (2.29 SL demo is not usable - admin/district no longer works). I'm
>> writing a jira bug report for it.
>>
>> Thirdly, i would presume - as Knut is also hinting at - that the CSV
>> format is simple:  Organsiationunit_uid, orgunitgroup_uid
>>
>> Regards
>> Calle
>>
>> On 27 April 2018 at 15:55, Knut Staring  wrote:
>>
>>> 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?
>>>
>>> Knut
>>>
>>> On Fri, Apr 27, 2018 at 3:43 PM, Olaleke Seweje >> > wrote:
>>>
 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 this.

 Thanks.



 On Fri, Apr 27, 2018 at 12:49 PM, Knut Staring 
 wrote:

> Hi Leke,
>
> You can find the format here:
>
> https://docs.dhis2.org/2.26/en/developer/html/webapi_csv_met
> adata_import.html#webapi_csv_other_objects
>
> On Fri, Apr 27, 2018 at 12:58 PM, Olaleke Seweje <
> sewejeolal...@gmail.com> wrote:
>
>> Hi all,
>> I am trying to import hundreds of org units with their groups.
>>
>> Is there a CSV config sheet format that can be used for this?
>>
>> Maybe I'd need to use 'Organisation unit with group option' on the
>> CSV import page but I need the format of the config sheet. If so, can
>> someone please share the config sheet for doing this?
>>
>> If not, please share with me info on how I can automate importing org
>> units with groups.
>>
>> Thanks.
>>
>> --
>> Regards,
>> Leke Seweje
>>
>> ___
>> 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
>>
>>
>
>
> --
> Knut Staring
>
> Department of Information, Evidence and Research
> World Health Organization, Geneva, Switzerland
> Office: +41 22 791 3683 Mob1: +33 6 4434 2931 Mob2: +47 9188 0522
> Skype: knutstar
>



 --
 Regards,
 Leke Seweje

>>>
>>>
>>>
>>> --
>>> Knut Staring
>>>
>>> Department of Information, Evidence and Research
>>> World Health Organization, Geneva, Switzerland
>>> Office: +41 22 791 3683 Mob1: +33 6 4434 2931 Mob2: +47 9188 0522
>>> Skype: knutstar
>>>
>>> ___
>>> 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
>>>
>>>
>>
>>
>> --
>>
>> ***
>>
>> Calle Hedberg
>>
>> 46D Alma Road, 7700 Rosebank, SOUTH AFRICA
>>
>> Tel/fax (home): 

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 the manual, so there is no info there.

Anybody who knows what the correct CSV format is for importing
orgunitgroupmembers, and ditto for data elements and indicators?

Regards
Calle

On 27 April 2018 at 16:52, Calle Hedberg  wrote:

> 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 removing OrgUnits from orgunitgroups using the normal
> User Interface is now broken in 2.28 and 2.29 (and trunk, presumably). You
> can open a group and select/unselect Orgunits, but SAVE is just greyed out.
> I've confirmed this local for both 2.28 and 2.29, and using the 2.28 SL
> demo (2.29 SL demo is not usable - admin/district no longer works). I'm
> writing a jira bug report for it.
>
> Thirdly, i would presume - as Knut is also hinting at - that the CSV
> format is simple:  Organsiationunit_uid, orgunitgroup_uid
>
> Regards
> Calle
>
> On 27 April 2018 at 15:55, Knut Staring  wrote:
>
>> 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?
>>
>> Knut
>>
>> On Fri, Apr 27, 2018 at 3:43 PM, Olaleke Seweje 
>> wrote:
>>
>>> 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 this.
>>>
>>> Thanks.
>>>
>>>
>>>
>>> On Fri, Apr 27, 2018 at 12:49 PM, Knut Staring  wrote:
>>>
 Hi Leke,

 You can find the format here:

 https://docs.dhis2.org/2.26/en/developer/html/webapi_csv_met
 adata_import.html#webapi_csv_other_objects

 On Fri, Apr 27, 2018 at 12:58 PM, Olaleke Seweje <
 sewejeolal...@gmail.com> wrote:

> Hi all,
> I am trying to import hundreds of org units with their groups.
>
> Is there a CSV config sheet format that can be used for this?
>
> Maybe I'd need to use 'Organisation unit with group option' on the CSV
> import page but I need the format of the config sheet. If so, can someone
> please share the config sheet for doing this?
>
> If not, please share with me info on how I can automate importing org
> units with groups.
>
> Thanks.
>
> --
> Regards,
> Leke Seweje
>
> ___
> 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
>
>


 --
 Knut Staring

 Department of Information, Evidence and Research
 World Health Organization, Geneva, Switzerland
 Office: +41 22 791 3683 Mob1: +33 6 4434 2931 Mob2: +47 9188 0522
 Skype: knutstar

>>>
>>>
>>>
>>> --
>>> Regards,
>>> Leke Seweje
>>>
>>
>>
>>
>> --
>> Knut Staring
>>
>> Department of Information, Evidence and Research
>> World Health Organization, Geneva, Switzerland
>> Office: +41 22 791 3683 Mob1: +33 6 4434 2931 Mob2: +47 9188 0522
>> Skype: knutstar
>>
>> ___
>> 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
>>
>>
>
>
> --
>
> ***
>
> Calle Hedberg
>
> 46D Alma Road, 7700 Rosebank, SOUTH AFRICA
>
> Tel/fax (home): +27-21-685-6472
>
> Cell: +27-82-853-5352
>
> Iridium SatPhone: +8816-315-19119
>
> Email: calle.hedb...@gmail.com
>
> Skype: calle_hedberg
>
> ***
>
>


-- 

***

Calle Hedberg

46D Alma Road, 7700 Rosebank, SOUTH AFRICA

Tel/fax (home): +27-21-685-6472

Cell: +27-82-853-5352

Iridium SatPhone: +8816-315-19119

Email: calle.hedb...@gmail.com

Skype: calle_hedberg

***
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to 

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 removing OrgUnits from orgunitgroups using the normal
User Interface is now broken in 2.28 and 2.29 (and trunk, presumably). You
can open a group and select/unselect Orgunits, but SAVE is just greyed out.
I've confirmed this local for both 2.28 and 2.29, and using the 2.28 SL
demo (2.29 SL demo is not usable - admin/district no longer works). I'm
writing a jira bug report for it.

Thirdly, i would presume - as Knut is also hinting at - that the CSV format
is simple:  Organsiationunit_uid, orgunitgroup_uid

Regards
Calle

On 27 April 2018 at 15:55, Knut Staring  wrote:

> 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?
>
> Knut
>
> On Fri, Apr 27, 2018 at 3:43 PM, Olaleke Seweje 
> wrote:
>
>> 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 this.
>>
>> Thanks.
>>
>>
>>
>> On Fri, Apr 27, 2018 at 12:49 PM, Knut Staring  wrote:
>>
>>> Hi Leke,
>>>
>>> You can find the format here:
>>>
>>> https://docs.dhis2.org/2.26/en/developer/html/webapi_csv_met
>>> adata_import.html#webapi_csv_other_objects
>>>
>>> On Fri, Apr 27, 2018 at 12:58 PM, Olaleke Seweje <
>>> sewejeolal...@gmail.com> wrote:
>>>
 Hi all,
 I am trying to import hundreds of org units with their groups.

 Is there a CSV config sheet format that can be used for this?

 Maybe I'd need to use 'Organisation unit with group option' on the CSV
 import page but I need the format of the config sheet. If so, can someone
 please share the config sheet for doing this?

 If not, please share with me info on how I can automate importing org
 units with groups.

 Thanks.

 --
 Regards,
 Leke Seweje

 ___
 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


>>>
>>>
>>> --
>>> Knut Staring
>>>
>>> Department of Information, Evidence and Research
>>> World Health Organization, Geneva, Switzerland
>>> Office: +41 22 791 3683 Mob1: +33 6 4434 2931 Mob2: +47 9188 0522
>>> Skype: knutstar
>>>
>>
>>
>>
>> --
>> Regards,
>> Leke Seweje
>>
>
>
>
> --
> Knut Staring
>
> Department of Information, Evidence and Research
> World Health Organization, Geneva, Switzerland
> Office: +41 22 791 3683 Mob1: +33 6 4434 2931 Mob2: +47 9188 0522
> Skype: knutstar
>
> ___
> 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
>
>


-- 

***

Calle Hedberg

46D Alma Road, 7700 Rosebank, SOUTH AFRICA

Tel/fax (home): +27-21-685-6472

Cell: +27-82-853-5352

Iridium SatPhone: +8816-315-19119

Email: calle.hedb...@gmail.com

Skype: calle_hedberg

***
___
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


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 like in my example, I don't think it
will match on Code or Name).

On Fri, Apr 27, 2018 at 3:55 PM, Knut Staring  wrote:

> 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?
>
> Knut
>
> On Fri, Apr 27, 2018 at 3:43 PM, Olaleke Seweje 
> wrote:
>
>> 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 this.
>>
>> Thanks.
>>
>>
>>
>> On Fri, Apr 27, 2018 at 12:49 PM, Knut Staring  wrote:
>>
>>> Hi Leke,
>>>
>>> You can find the format here:
>>>
>>> https://docs.dhis2.org/2.26/en/developer/html/webapi_csv_met
>>> adata_import.html#webapi_csv_other_objects
>>>
>>> On Fri, Apr 27, 2018 at 12:58 PM, Olaleke Seweje <
>>> sewejeolal...@gmail.com> wrote:
>>>
 Hi all,
 I am trying to import hundreds of org units with their groups.

 Is there a CSV config sheet format that can be used for this?

 Maybe I'd need to use 'Organisation unit with group option' on the CSV
 import page but I need the format of the config sheet. If so, can someone
 please share the config sheet for doing this?

 If not, please share with me info on how I can automate importing org
 units with groups.

 Thanks.

 --
 Regards,
 Leke Seweje

 ___
 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


>>>
>>>
>>> --
>>> Knut Staring
>>>
>>> Department of Information, Evidence and Research
>>> World Health Organization, Geneva, Switzerland
>>> Office: +41 22 791 3683 Mob1: +33 6 4434 2931 Mob2: +47 9188 0522
>>> Skype: knutstar
>>>
>>
>>
>>
>> --
>> Regards,
>> Leke Seweje
>>
>
>
>
> --
> Knut Staring
>
> Department of Information, Evidence and Research
> World Health Organization, Geneva, Switzerland
> Office: +41 22 791 3683 Mob1: +33 6 4434 2931 Mob2: +47 9188 0522
> Skype: knutstar
>



-- 
Knut Staring

Department of Information, Evidence and Research
World Health Organization, Geneva, Switzerland
Office: +41 22 791 3683 Mob1: +33 6 4434 2931 Mob2: +47 9188 0522
Skype: knutstar
___
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


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?

Knut

On Fri, Apr 27, 2018 at 3:43 PM, Olaleke Seweje 
wrote:

> 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 this.
>
> Thanks.
>
>
>
> On Fri, Apr 27, 2018 at 12:49 PM, Knut Staring  wrote:
>
>> Hi Leke,
>>
>> You can find the format here:
>>
>> https://docs.dhis2.org/2.26/en/developer/html/webapi_csv_met
>> adata_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 config sheet format that can be used for this?
>>>
>>> Maybe I'd need to use 'Organisation unit with group option' on the CSV
>>> import page but I need the format of the config sheet. If so, can someone
>>> please share the config sheet for doing this?
>>>
>>> If not, please share with me info on how I can automate importing org
>>> units with groups.
>>>
>>> Thanks.
>>>
>>> --
>>> Regards,
>>> Leke Seweje
>>>
>>> ___
>>> 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
>>>
>>>
>>
>>
>> --
>> Knut Staring
>>
>> Department of Information, Evidence and Research
>> World Health Organization, Geneva, Switzerland
>> Office: +41 22 791 3683 Mob1: +33 6 4434 2931 Mob2: +47 9188 0522
>> Skype: knutstar
>>
>
>
>
> --
> Regards,
> Leke Seweje
>



-- 
Knut Staring

Department of Information, Evidence and Research
World Health Organization, Geneva, Switzerland
Office: +41 22 791 3683 Mob1: +33 6 4434 2931 Mob2: +47 9188 0522
Skype: knutstar
___
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


Re: [Dhis2-devs] Error in analytics table generation

2018-04-27 Thread Sakibou Alassani
Hi Jason,
It was solved. Just download last build.

You can take look at jira issue created for that here
https://jira.dhis2.org/browse/DHIS2-2788

Le ven. 27 avr. 2018 à 13:33, Jason Pickering 
a écrit :

> Yeah, it seems to be the exact same problem.
>
> Olav Poppe did you manage to resolve this? If so, how?
>
> Regards,
> Jason
>
>
> On Fri, Apr 27, 2018 at 11:40 AM, David Huser 
> wrote:
>
>> Hi Jason,
>>
>> Some of the expressions were simply empty (perhaps the cause for
>> NullPointerExceptions). The exact problem for those that are *not* empty
>> is still to be determined (lots of validation rules to check).
>> Here was a similar thread from December:
>> https://lists.launchpad.net/dhis2-devs/msg50471.html
>>
>> David
>>
>> On Fri, Apr 27, 2018 at 11:04 AM, Jason Pickering <
>> jason.p.picker...@gmail.com> wrote:
>>
>>> Hi David,
>>>
>>> Could you give a bit more detail as to what invalid means and how you
>>> identified that they were invalid?
>>>
>>> Regards,
>>> Jason
>>>
>>>
>>> On Fri, Apr 27, 2018 at 10:32 AM, David Huser 
>>> wrote:
>>>
 Hi Jason,

 Had to look into this recently as well - after fixing validation rules
 with invalid expressions this error went away. Those violations did not
 show up in Integrity Check however.

 David

 On Fri, Apr 27, 2018 at 10:04 AM, Jason Pickering <
 jason.p.picker...@gmail.com> wrote:

> A little more detail here. This actually occurs during this phase of
> analytics which was not clear from the previous message.
>
> 2018-04-27 09:17:13 Process failed: null
> 2018-04-27 09:17:13 Applying aggregation levels
> 2018-04-27 09:17:13 Populating analytics tables
> 2018-04-27 09:17:13 Creating analytics tables
> 2018-04-27 09:17:13 Performing pre-create table work, org unit
> levels: 7
> 2018-04-27 09:17:13 Updating tables: VALIDATION_RESULT
>
> On Fri, Apr 27, 2018 at 8:04 AM, Jason Pickering <
> jason.p.picker...@gmail.com> wrote:
>
>> Not exactly sure what is causing this, but this is occurring just at
>> the end of the analytics tables process. Here is what we see from the 
>> GUI:
>> 2018-04-27 08:00:17 Process failed: null
>> 2018-04-27 08:00:17 Applying aggregation levels
>> 2018-04-27 08:00:17 Populating analytics tables
>> And the error logs
>>
>> * ERROR 2018-04-27 08:00:17,796 Unexpected error occurred in
>> scheduled task. (TaskUtils.java [taskScheduler-25])
>> java.lang.NullPointerException
>> at
>> org.hisp.dhis.commons.util.ConcurrentUtils.waitForCompletion(ConcurrentUtils.java:53)
>> at
>> org.hisp.dhis.analytics.table.DefaultAnalyticsTableService.applyAggregationLevels(DefaultAnalyticsTableService.java:242)
>> at
>> org.hisp.dhis.analytics.table.DefaultAnalyticsTableService.update(DefaultAnalyticsTableService.java:137)
>> at
>> org.hisp.dhis.analytics.table.DefaultAnalyticsTableGenerator.generateTables(DefaultAnalyticsTableGenerator.java:112)
>> at
>> org.hisp.dhis.webapi.controller.ResourceTableController.lambda$analytics$0(ResourceTableController.java:112)
>> at
>> org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:54)
>> at
>> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
>> at java.util.concurrent.FutureTask.run(FutureTask.java:266)
>> at
>> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
>> at
>> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
>> at
>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
>> at
>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
>> at java.lang.Thread.run(Thread.java:748)
>> * INFO  2018-04-27 08:00:18,597 Email sent using host: 127.0.0.1:25
>> with TLS: true (EmailMessageSender.java [taskScheduler-10])
>>
>> Version:2.28Build revision:86937e9
>> Any idea what this might be caused by?
>>
>> Regards,
>> Jason
>>
>> --
>> Jason P. Pickering
>> email: jason.p.picker...@gmail.com
>> tel:+46764147049
>>
>
>
>
> --
> Jason P. Pickering
> email: jason.p.picker...@gmail.com
> tel:+46764147049
>
> ___
> 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
>
>


 --


 *David Huser*
 DHIS2 Support Specialist
 dhu...@baosystems.com | https://baosystems.com |  2900 K Street, Suite
 507, Washington D.C. 

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 this.

Thanks.



On Fri, Apr 27, 2018 at 12:49 PM, Knut Staring  wrote:

> 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 config sheet format that can be used for this?
>>
>> Maybe I'd need to use 'Organisation unit with group option' on the CSV
>> import page but I need the format of the config sheet. If so, can someone
>> please share the config sheet for doing this?
>>
>> If not, please share with me info on how I can automate importing org
>> units with groups.
>>
>> Thanks.
>>
>> --
>> Regards,
>> Leke Seweje
>>
>> ___
>> 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
>>
>>
>
>
> --
> Knut Staring
>
> Department of Information, Evidence and Research
> World Health Organization, Geneva, Switzerland
> Office: +41 22 791 3683 Mob1: +33 6 4434 2931 Mob2: +47 9188 0522
> Skype: knutstar
>



-- 
Regards,
Leke Seweje
___
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


Re: [Dhis2-devs] Error in analytics table generation

2018-04-27 Thread Jason Pickering
Yeah, it seems to be the exact same problem.

Olav Poppe did you manage to resolve this? If so, how?

Regards,
Jason


On Fri, Apr 27, 2018 at 11:40 AM, David Huser  wrote:

> Hi Jason,
>
> Some of the expressions were simply empty (perhaps the cause for
> NullPointerExceptions). The exact problem for those that are *not* empty
> is still to be determined (lots of validation rules to check).
> Here was a similar thread from December: https://lists.
> launchpad.net/dhis2-devs/msg50471.html
>
> David
>
> On Fri, Apr 27, 2018 at 11:04 AM, Jason Pickering <
> jason.p.picker...@gmail.com> wrote:
>
>> Hi David,
>>
>> Could you give a bit more detail as to what invalid means and how you
>> identified that they were invalid?
>>
>> Regards,
>> Jason
>>
>>
>> On Fri, Apr 27, 2018 at 10:32 AM, David Huser 
>> wrote:
>>
>>> Hi Jason,
>>>
>>> Had to look into this recently as well - after fixing validation rules
>>> with invalid expressions this error went away. Those violations did not
>>> show up in Integrity Check however.
>>>
>>> David
>>>
>>> On Fri, Apr 27, 2018 at 10:04 AM, Jason Pickering <
>>> jason.p.picker...@gmail.com> wrote:
>>>
 A little more detail here. This actually occurs during this phase of
 analytics which was not clear from the previous message.

 2018-04-27 09:17:13 Process failed: null
 2018-04-27 09:17:13 Applying aggregation levels
 2018-04-27 09:17:13 Populating analytics tables
 2018-04-27 09:17:13 Creating analytics tables
 2018-04-27 09:17:13 Performing pre-create table work, org unit levels:
 7
 2018-04-27 09:17:13 Updating tables: VALIDATION_RESULT

 On Fri, Apr 27, 2018 at 8:04 AM, Jason Pickering <
 jason.p.picker...@gmail.com> wrote:

> Not exactly sure what is causing this, but this is occurring just at
> the end of the analytics tables process. Here is what we see from the GUI:
> 2018-04-27 08:00:17 Process failed: null
> 2018-04-27 08:00:17 Applying aggregation levels
> 2018-04-27 08:00:17 Populating analytics tables
> And the error logs
>
> * ERROR 2018-04-27 08:00:17,796 Unexpected error occurred in scheduled
> task. (TaskUtils.java [taskScheduler-25])
> java.lang.NullPointerException
> at org.hisp.dhis.commons.util.ConcurrentUtils.waitForCompletion
> (ConcurrentUtils.java:53)
> at org.hisp.dhis.analytics.table.DefaultAnalyticsTableService.a
> pplyAggregationLevels(DefaultAnalyticsTableService.java:242)
> at org.hisp.dhis.analytics.table.DefaultAnalyticsTableService.u
> pdate(DefaultAnalyticsTableService.java:137)
> at org.hisp.dhis.analytics.table.DefaultAnalyticsTableGenerator
> .generateTables(DefaultAnalyticsTableGenerator.java:112)
> at org.hisp.dhis.webapi.controller.ResourceTableController.lamb
> da$analytics$0(ResourceTableController.java:112)
> at org.springframework.scheduling.support.DelegatingErrorHandli
> ngRunnable.run(DelegatingErrorHandlingRunnable.java:54)
> at java.util.concurrent.Executors$RunnableAdapter.call(Executor
> s.java:511)
> at java.util.concurrent.FutureTask.run(FutureTask.java:266)
> at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFu
> tureTask.access$201(ScheduledThreadPoolExecutor.java:180)
> at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFu
> tureTask.run(ScheduledThreadPoolExecutor.java:293)
> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPool
> Executor.java:1149)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoo
> lExecutor.java:624)
> at java.lang.Thread.run(Thread.java:748)
> * INFO  2018-04-27 08:00:18,597 Email sent using host: 127.0.0.1:25
> with TLS: true (EmailMessageSender.java [taskScheduler-10])
>
> Version:2.28Build revision:86937e9
> Any idea what this might be caused by?
>
> Regards,
> Jason
>
> --
> Jason P. Pickering
> email: jason.p.picker...@gmail.com
> tel:+46764147049
>



 --
 Jason P. Pickering
 email: jason.p.picker...@gmail.com
 tel:+46764147049

 ___
 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


>>>
>>>
>>> --
>>>
>>>
>>> *David Huser*
>>> DHIS2 Support Specialist
>>> dhu...@baosystems.com | https://baosystems.com |  2900 K Street, Suite
>>> 507, Washington D.C. 20007
>>>
>>
>>
>>
>> --
>> Jason P. Pickering
>> email: jason.p.picker...@gmail.com
>> tel:+46764147049
>>
>
>
>
> --
>
>
> *David Huser*
> DHIS2 Support Specialist
> dhu...@baosystems.com | https://baosystems.com |  2900 K Street, Suite
> 507, Washington D.C. 20007
>



-- 
Jason P. Pickering
email: jason.p.picker...@gmail.com
tel:+46764147049

Re: [Dhis2-devs] DHIS2 Dashboard Apps

2018-04-27 Thread Martin Van Aken
Thanks for your answer - any way to specify where the "explore" link should
lead:


this would allow my app to show a small part as an iFrame, then be called
in full screen on click (like the Pivot tables & chart works in the
Dashboard right now)

Martin

On Fri, Apr 27, 2018 at 10:47 AM, Edoardo Sabadelli 
wrote:

> Not exactly, the content in the iframe is usable from within the box
> in the dashboard.
> There isn't a way of going full screen at the moment, but it can be
> easily added.
>
> On Thu, Apr 26, 2018 at 5:21 PM, Martin Van Aken
>  wrote:
> > OK, so it will render the "main" page (as refered in the manifest) as an
> > iframe there, with clicking on it leading to the "full page" app,
> correct ?
> > This being said, looks like something I could test easily.
> >
> > Martin
> >
> > On Thu, Apr 26, 2018 at 11:28 AM, Edoardo Sabadelli 
> > wrote:
> >>
> >> Hi Martin,
> >>
> >> the dashboard widgets/apps, listed under the Apps section in the
> >> dashboard item selector, are rendered in the same way as before.
> >> They are loaded in an iframe in a box added to the dashboard grid.
> >> This is also to ensure existing apps can still work in the new
> Dashboards
> >> app.
> >>
> >> As for distinguishing between a full screen and a "widget" app, there
> >> isn't anything in place as far as I know.
> >>
> >> One way is to use a responsive layout in your app, to ensure the
> >> content fits and is usable in both full screen and the small widget
> >> box.
> >>
> >> I didn't work with widget apps, so hopefully someone in the community
> >> who has done that can help.
> >>
> >> Cheers,
> >>
> >> On Thu, Apr 26, 2018 at 10:35 AM, Martin Van Aken
> >>  wrote:
> >> > Hi!
> >> > We've been working with DHIS2 Apps for a while now, and found the
> >> > general
> >> > experience (as developers) pretty good with the d2 + React combo.
> >> > Something
> >> > I could not find info about is how the different kind of apps change,
> >> > especially the DASHBOARD_WIDGET one - does that means that an app of
> >> > this
> >> > kind will be rendered as a box in the main view? If so, how to specify
> >> > the
> >> > part that should go there vs for example a full sized page after once
> >> > clicked?
> >> >
> >> > Any doc or example on this would be great.
> >> >
> >> > As I'm there - thanks to the team there to provide a nice to use
> >> > extension
> >> > point in the form of webapps - much appreciated!
> >> >
> >> > Martin
> >> >
> >> > --
> >> > Martin Van Aken - Freelance Enthusiast Developer
> >> >
> >> > Mobile : +32 486 899 652
> >> >
> >> > Follow me on Twitter : @martinvanaken
> >> > Call me on Skype : vanakenm
> >> > Hang out with me : mar...@joyouscoding.com
> >> > Contact me on LinkedIn : http://www.linkedin.com/in/martinvanaken
> >> > Company website : www.joyouscoding.com
> >> >
> >> > ___
> >> > 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
> >>
> >> --
> >> Edoardo Sabadelli
> >> DHIS 2
> >> University of Oslo
> >> edoa...@dhis2.org
> >> http://www.dhis2.org
> >
> >
> >
> >
> > --
> > Martin Van Aken - Freelance Enthusiast Developer
> >
> > Mobile : +32 486 899 652
> >
> > Follow me on Twitter : @martinvanaken
> > Call me on Skype : vanakenm
> > Hang out with me : mar...@joyouscoding.com
> > Contact me on LinkedIn : http://www.linkedin.com/in/martinvanaken
> > Company website : www.joyouscoding.com
>
> --
> Edoardo Sabadelli
> DHIS 2
> University of Oslo
> edoa...@dhis2.org
> http://www.dhis2.org
>



-- 
*Martin Van Aken - **Freelance Enthusiast Developer*

Mobile : +32 486 899 652

Follow me on Twitter : @martinvanaken 
Call me on Skype : vanakenm
Hang out with me : mar...@joyouscoding.com
Contact me on LinkedIn : http://www.linkedin.com/in/martinvanaken
Company website : www.joyouscoding.com
___
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


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 config sheet format that can be used for this?
>
> Maybe I'd need to use 'Organisation unit with group option' on the CSV
> import page but I need the format of the config sheet. If so, can someone
> please share the config sheet for doing this?
>
> If not, please share with me info on how I can automate importing org
> units with groups.
>
> Thanks.
>
> --
> Regards,
> Leke Seweje
>
> ___
> 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
>
>


-- 
Knut Staring

Department of Information, Evidence and Research
World Health Organization, Geneva, Switzerland
Office: +41 22 791 3683 Mob1: +33 6 4434 2931 Mob2: +47 9188 0522
Skype: knutstar
___
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


Re: [Dhis2-devs] DHIS2 Dashboard Apps

2018-04-27 Thread Knut Staring
On the topic of filtering - do the maps in the dashboard now also obey the
orgunit filter? The ability to drill down the whole dashboard (rather than
just each widget in isolation) is quite powerful.

On Fri, Apr 27, 2018 at 1:27 PM, Olav Poppe  wrote:

> Hi, jumping in on this conversation with two related questions:
> 1) is there any (documented) way for a dashboard widget to identify
> "instances" of itself? So that if you add two or more instances of the same
> widget and want to set them up to show different things (e.g. different
> indicators), it would be possible for the app/widget to save and restore
> some sort of setting.
> 2) is there any way for a widget to query for dashboard parameters
> (particularly the orgunit filter)?
>
> Olav
>
>
> 27. apr. 2018 kl. 10:47 skrev Edoardo Sabadelli :
>
> Not exactly, the content in the iframe is usable from within the box
> in the dashboard.
> There isn't a way of going full screen at the moment, but it can be
> easily added.
>
> On Thu, Apr 26, 2018 at 5:21 PM, Martin Van Aken
>  wrote:
>
> OK, so it will render the "main" page (as refered in the manifest) as an
> iframe there, with clicking on it leading to the "full page" app, correct ?
> This being said, looks like something I could test easily.
>
> Martin
>
> On Thu, Apr 26, 2018 at 11:28 AM, Edoardo Sabadelli 
> wrote:
>
>
> Hi Martin,
>
> the dashboard widgets/apps, listed under the Apps section in the
> dashboard item selector, are rendered in the same way as before.
> They are loaded in an iframe in a box added to the dashboard grid.
> This is also to ensure existing apps can still work in the new Dashboards
> app.
>
> As for distinguishing between a full screen and a "widget" app, there
> isn't anything in place as far as I know.
>
> One way is to use a responsive layout in your app, to ensure the
> content fits and is usable in both full screen and the small widget
> box.
>
> I didn't work with widget apps, so hopefully someone in the community
> who has done that can help.
>
> Cheers,
>
> On Thu, Apr 26, 2018 at 10:35 AM, Martin Van Aken
>  wrote:
>
> Hi!
> We've been working with DHIS2 Apps for a while now, and found the
> general
> experience (as developers) pretty good with the d2 + React combo.
> Something
> I could not find info about is how the different kind of apps change,
> especially the DASHBOARD_WIDGET one - does that means that an app of
> this
> kind will be rendered as a box in the main view? If so, how to specify
> the
> part that should go there vs for example a full sized page after once
> clicked?
>
> Any doc or example on this would be great.
>
> As I'm there - thanks to the team there to provide a nice to use
> extension
> point in the form of webapps - much appreciated!
>
> Martin
>
> --
> Martin Van Aken - Freelance Enthusiast Developer
>
> Mobile : +32 486 899 652
>
> Follow me on Twitter : @martinvanaken
> Call me on Skype : vanakenm
> Hang out with me : mar...@joyouscoding.com
> Contact me on LinkedIn : http://www.linkedin.com/in/martinvanaken
> Company website : www.joyouscoding.com
>
> ___
> 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
>
>
> --
> Edoardo Sabadelli
> DHIS 2
> University of Oslo
> edoa...@dhis2.org
> http://www.dhis2.org
>
>
>
>
>
> --
> Martin Van Aken - Freelance Enthusiast Developer
>
> Mobile : +32 486 899 652
>
> Follow me on Twitter : @martinvanaken
> Call me on Skype : vanakenm
> Hang out with me : mar...@joyouscoding.com
> Contact me on LinkedIn : http://www.linkedin.com/in/martinvanaken
> Company website : www.joyouscoding.com
>
>
> --
> Edoardo Sabadelli
> DHIS 2
> University of Oslo
> edoa...@dhis2.org
> http://www.dhis2.org
>
> ___
> 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
>
>
>
> ___
> 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
>
>


-- 
Knut Staring

Department of Information, Evidence and Research
World Health Organization, Geneva, Switzerland
Office: +41 22 791 3683 Mob1: +33 6 4434 2931 Mob2: +47 9188 0522
Skype: knutstar
___
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


Re: [Dhis2-devs] DHIS2 Dashboard Apps

2018-04-27 Thread Olav Poppe
Hi, jumping in on this conversation with two related questions:
1) is there any (documented) way for a dashboard widget to identify "instances" 
of itself? So that if you add two or more instances of the same widget and want 
to set them up to show different things (e.g. different indicators), it would 
be possible for the app/widget to save and restore some sort of setting.
2) is there any way for a widget to query for dashboard parameters 
(particularly the orgunit filter)?

Olav

27. apr. 2018 kl. 10:47 skrev Edoardo Sabadelli 
>:

Not exactly, the content in the iframe is usable from within the box
in the dashboard.
There isn't a way of going full screen at the moment, but it can be
easily added.

On Thu, Apr 26, 2018 at 5:21 PM, Martin Van Aken
> wrote:
OK, so it will render the "main" page (as refered in the manifest) as an
iframe there, with clicking on it leading to the "full page" app, correct ?
This being said, looks like something I could test easily.

Martin

On Thu, Apr 26, 2018 at 11:28 AM, Edoardo Sabadelli 
>
wrote:

Hi Martin,

the dashboard widgets/apps, listed under the Apps section in the
dashboard item selector, are rendered in the same way as before.
They are loaded in an iframe in a box added to the dashboard grid.
This is also to ensure existing apps can still work in the new Dashboards
app.

As for distinguishing between a full screen and a "widget" app, there
isn't anything in place as far as I know.

One way is to use a responsive layout in your app, to ensure the
content fits and is usable in both full screen and the small widget
box.

I didn't work with widget apps, so hopefully someone in the community
who has done that can help.

Cheers,

On Thu, Apr 26, 2018 at 10:35 AM, Martin Van Aken
> wrote:
Hi!
We've been working with DHIS2 Apps for a while now, and found the
general
experience (as developers) pretty good with the d2 + React combo.
Something
I could not find info about is how the different kind of apps change,
especially the DASHBOARD_WIDGET one - does that means that an app of
this
kind will be rendered as a box in the main view? If so, how to specify
the
part that should go there vs for example a full sized page after once
clicked?

Any doc or example on this would be great.

As I'm there - thanks to the team there to provide a nice to use
extension
point in the form of webapps - much appreciated!

Martin

--
Martin Van Aken - Freelance Enthusiast Developer

Mobile : +32 486 899 652

Follow me on Twitter : @martinvanaken
Call me on Skype : vanakenm
Hang out with me : mar...@joyouscoding.com
Contact me on LinkedIn : http://www.linkedin.com/in/martinvanaken
Company website : www.joyouscoding.com

___
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

--
Edoardo Sabadelli
DHIS 2
University of Oslo
edoa...@dhis2.org
http://www.dhis2.org




--
Martin Van Aken - Freelance Enthusiast Developer

Mobile : +32 486 899 652

Follow me on Twitter : @martinvanaken
Call me on Skype : vanakenm
Hang out with me : mar...@joyouscoding.com
Contact me on LinkedIn : http://www.linkedin.com/in/martinvanaken
Company website : www.joyouscoding.com

--
Edoardo Sabadelli
DHIS 2
University of Oslo
edoa...@dhis2.org
http://www.dhis2.org

___
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

___
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


[Dhis2-devs] Importing Organisation Units with groups

2018-04-27 Thread Olaleke Seweje
Hi all,
I am trying to import hundreds of org units with their groups.

Is there a CSV config sheet format that can be used for this?

Maybe I'd need to use 'Organisation unit with group option' on the CSV
import page but I need the format of the config sheet. If so, can someone
please share the config sheet for doing this?

If not, please share with me info on how I can automate importing org units
with groups.

Thanks.

-- 
Regards,
Leke Seweje
___
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


Re: [Dhis2-devs] Error in analytics table generation

2018-04-27 Thread David Huser
Hi Jason,

Some of the expressions were simply empty (perhaps the cause for
NullPointerExceptions). The exact problem for those that are *not* empty is
still to be determined (lots of validation rules to check).
Here was a similar thread from December:
https://lists.launchpad.net/dhis2-devs/msg50471.html

David

On Fri, Apr 27, 2018 at 11:04 AM, Jason Pickering <
jason.p.picker...@gmail.com> wrote:

> Hi David,
>
> Could you give a bit more detail as to what invalid means and how you
> identified that they were invalid?
>
> Regards,
> Jason
>
>
> On Fri, Apr 27, 2018 at 10:32 AM, David Huser 
> wrote:
>
>> Hi Jason,
>>
>> Had to look into this recently as well - after fixing validation rules
>> with invalid expressions this error went away. Those violations did not
>> show up in Integrity Check however.
>>
>> David
>>
>> On Fri, Apr 27, 2018 at 10:04 AM, Jason Pickering <
>> jason.p.picker...@gmail.com> wrote:
>>
>>> A little more detail here. This actually occurs during this phase of
>>> analytics which was not clear from the previous message.
>>>
>>> 2018-04-27 09:17:13 Process failed: null
>>> 2018-04-27 09:17:13 Applying aggregation levels
>>> 2018-04-27 09:17:13 Populating analytics tables
>>> 2018-04-27 09:17:13 Creating analytics tables
>>> 2018-04-27 09:17:13 Performing pre-create table work, org unit levels:
>>> 7
>>> 2018-04-27 09:17:13 Updating tables: VALIDATION_RESULT
>>>
>>> On Fri, Apr 27, 2018 at 8:04 AM, Jason Pickering <
>>> jason.p.picker...@gmail.com> wrote:
>>>
 Not exactly sure what is causing this, but this is occurring just at
 the end of the analytics tables process. Here is what we see from the GUI:
 2018-04-27 08:00:17 Process failed: null
 2018-04-27 08:00:17 Applying aggregation levels
 2018-04-27 08:00:17 Populating analytics tables
 And the error logs

 * ERROR 2018-04-27 08:00:17,796 Unexpected error occurred in scheduled
 task. (TaskUtils.java [taskScheduler-25])
 java.lang.NullPointerException
 at org.hisp.dhis.commons.util.ConcurrentUtils.waitForCompletion
 (ConcurrentUtils.java:53)
 at org.hisp.dhis.analytics.table.DefaultAnalyticsTableService.a
 pplyAggregationLevels(DefaultAnalyticsTableService.java:242)
 at org.hisp.dhis.analytics.table.DefaultAnalyticsTableService.u
 pdate(DefaultAnalyticsTableService.java:137)
 at org.hisp.dhis.analytics.table.DefaultAnalyticsTableGenerator
 .generateTables(DefaultAnalyticsTableGenerator.java:112)
 at org.hisp.dhis.webapi.controller.ResourceTableController.lamb
 da$analytics$0(ResourceTableController.java:112)
 at org.springframework.scheduling.support.DelegatingErrorHandli
 ngRunnable.run(DelegatingErrorHandlingRunnable.java:54)
 at java.util.concurrent.Executors$RunnableAdapter.call(Executor
 s.java:511)
 at java.util.concurrent.FutureTask.run(FutureTask.java:266)
 at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFu
 tureTask.access$201(ScheduledThreadPoolExecutor.java:180)
 at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFu
 tureTask.run(ScheduledThreadPoolExecutor.java:293)
 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPool
 Executor.java:1149)
 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoo
 lExecutor.java:624)
 at java.lang.Thread.run(Thread.java:748)
 * INFO  2018-04-27 08:00:18,597 Email sent using host: 127.0.0.1:25
 with TLS: true (EmailMessageSender.java [taskScheduler-10])

 Version:2.28Build revision:86937e9
 Any idea what this might be caused by?

 Regards,
 Jason

 --
 Jason P. Pickering
 email: jason.p.picker...@gmail.com
 tel:+46764147049

>>>
>>>
>>>
>>> --
>>> Jason P. Pickering
>>> email: jason.p.picker...@gmail.com
>>> tel:+46764147049
>>>
>>> ___
>>> 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
>>>
>>>
>>
>>
>> --
>>
>>
>> *David Huser*
>> DHIS2 Support Specialist
>> dhu...@baosystems.com | https://baosystems.com |  2900 K Street, Suite
>> 507, Washington D.C. 20007
>>
>
>
>
> --
> Jason P. Pickering
> email: jason.p.picker...@gmail.com
> tel:+46764147049
>



-- 


*David Huser*
DHIS2 Support Specialist
dhu...@baosystems.com | https://baosystems.com |  2900 K Street, Suite 507,
Washington D.C. 20007
___
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


Re: [Dhis2-devs] Error in analytics table generation

2018-04-27 Thread Jason Pickering
Hi David,

Could you give a bit more detail as to what invalid means and how you
identified that they were invalid?

Regards,
Jason


On Fri, Apr 27, 2018 at 10:32 AM, David Huser  wrote:

> Hi Jason,
>
> Had to look into this recently as well - after fixing validation rules
> with invalid expressions this error went away. Those violations did not
> show up in Integrity Check however.
>
> David
>
> On Fri, Apr 27, 2018 at 10:04 AM, Jason Pickering <
> jason.p.picker...@gmail.com> wrote:
>
>> A little more detail here. This actually occurs during this phase of
>> analytics which was not clear from the previous message.
>>
>> 2018-04-27 09:17:13 Process failed: null
>> 2018-04-27 09:17:13 Applying aggregation levels
>> 2018-04-27 09:17:13 Populating analytics tables
>> 2018-04-27 09:17:13 Creating analytics tables
>> 2018-04-27 09:17:13 Performing pre-create table work, org unit levels: 7
>>
>> 2018-04-27 09:17:13 Updating tables: VALIDATION_RESULT
>>
>> On Fri, Apr 27, 2018 at 8:04 AM, Jason Pickering <
>> jason.p.picker...@gmail.com> wrote:
>>
>>> Not exactly sure what is causing this, but this is occurring just at the
>>> end of the analytics tables process. Here is what we see from the GUI:
>>> 2018-04-27 08:00:17 Process failed: null
>>> 2018-04-27 08:00:17 Applying aggregation levels
>>> 2018-04-27 08:00:17 Populating analytics tables
>>> And the error logs
>>>
>>> * ERROR 2018-04-27 08:00:17,796 Unexpected error occurred in scheduled
>>> task. (TaskUtils.java [taskScheduler-25])
>>> java.lang.NullPointerException
>>> at org.hisp.dhis.commons.util.ConcurrentUtils.waitForCompletion
>>> (ConcurrentUtils.java:53)
>>> at org.hisp.dhis.analytics.table.DefaultAnalyticsTableService.a
>>> pplyAggregationLevels(DefaultAnalyticsTableService.java:242)
>>> at org.hisp.dhis.analytics.table.DefaultAnalyticsTableService.u
>>> pdate(DefaultAnalyticsTableService.java:137)
>>> at org.hisp.dhis.analytics.table.DefaultAnalyticsTableGenerator
>>> .generateTables(DefaultAnalyticsTableGenerator.java:112)
>>> at org.hisp.dhis.webapi.controller.ResourceTableController.lamb
>>> da$analytics$0(ResourceTableController.java:112)
>>> at org.springframework.scheduling.support.DelegatingErrorHandli
>>> ngRunnable.run(DelegatingErrorHandlingRunnable.java:54)
>>> at java.util.concurrent.Executors$RunnableAdapter.call(Executor
>>> s.java:511)
>>> at java.util.concurrent.FutureTask.run(FutureTask.java:266)
>>> at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFu
>>> tureTask.access$201(ScheduledThreadPoolExecutor.java:180)
>>> at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFu
>>> tureTask.run(ScheduledThreadPoolExecutor.java:293)
>>> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPool
>>> Executor.java:1149)
>>> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoo
>>> lExecutor.java:624)
>>> at java.lang.Thread.run(Thread.java:748)
>>> * INFO  2018-04-27 08:00:18,597 Email sent using host: 127.0.0.1:25
>>> with TLS: true (EmailMessageSender.java [taskScheduler-10])
>>>
>>> Version:2.28Build revision:86937e9
>>> Any idea what this might be caused by?
>>>
>>> Regards,
>>> Jason
>>>
>>> --
>>> Jason P. Pickering
>>> email: jason.p.picker...@gmail.com
>>> tel:+46764147049
>>>
>>
>>
>>
>> --
>> Jason P. Pickering
>> email: jason.p.picker...@gmail.com
>> tel:+46764147049
>>
>> ___
>> 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
>>
>>
>
>
> --
>
>
> *David Huser*
> DHIS2 Support Specialist
> dhu...@baosystems.com | https://baosystems.com |  2900 K Street, Suite
> 507, Washington D.C. 20007
>



-- 
Jason P. Pickering
email: jason.p.picker...@gmail.com
tel:+46764147049
___
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


Re: [Dhis2-devs] DHIS2 Dashboard Apps

2018-04-27 Thread Edoardo Sabadelli
Not exactly, the content in the iframe is usable from within the box
in the dashboard.
There isn't a way of going full screen at the moment, but it can be
easily added.

On Thu, Apr 26, 2018 at 5:21 PM, Martin Van Aken
 wrote:
> OK, so it will render the "main" page (as refered in the manifest) as an
> iframe there, with clicking on it leading to the "full page" app, correct ?
> This being said, looks like something I could test easily.
>
> Martin
>
> On Thu, Apr 26, 2018 at 11:28 AM, Edoardo Sabadelli 
> wrote:
>>
>> Hi Martin,
>>
>> the dashboard widgets/apps, listed under the Apps section in the
>> dashboard item selector, are rendered in the same way as before.
>> They are loaded in an iframe in a box added to the dashboard grid.
>> This is also to ensure existing apps can still work in the new Dashboards
>> app.
>>
>> As for distinguishing between a full screen and a "widget" app, there
>> isn't anything in place as far as I know.
>>
>> One way is to use a responsive layout in your app, to ensure the
>> content fits and is usable in both full screen and the small widget
>> box.
>>
>> I didn't work with widget apps, so hopefully someone in the community
>> who has done that can help.
>>
>> Cheers,
>>
>> On Thu, Apr 26, 2018 at 10:35 AM, Martin Van Aken
>>  wrote:
>> > Hi!
>> > We've been working with DHIS2 Apps for a while now, and found the
>> > general
>> > experience (as developers) pretty good with the d2 + React combo.
>> > Something
>> > I could not find info about is how the different kind of apps change,
>> > especially the DASHBOARD_WIDGET one - does that means that an app of
>> > this
>> > kind will be rendered as a box in the main view? If so, how to specify
>> > the
>> > part that should go there vs for example a full sized page after once
>> > clicked?
>> >
>> > Any doc or example on this would be great.
>> >
>> > As I'm there - thanks to the team there to provide a nice to use
>> > extension
>> > point in the form of webapps - much appreciated!
>> >
>> > Martin
>> >
>> > --
>> > Martin Van Aken - Freelance Enthusiast Developer
>> >
>> > Mobile : +32 486 899 652
>> >
>> > Follow me on Twitter : @martinvanaken
>> > Call me on Skype : vanakenm
>> > Hang out with me : mar...@joyouscoding.com
>> > Contact me on LinkedIn : http://www.linkedin.com/in/martinvanaken
>> > Company website : www.joyouscoding.com
>> >
>> > ___
>> > 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
>>
>> --
>> Edoardo Sabadelli
>> DHIS 2
>> University of Oslo
>> edoa...@dhis2.org
>> http://www.dhis2.org
>
>
>
>
> --
> Martin Van Aken - Freelance Enthusiast Developer
>
> Mobile : +32 486 899 652
>
> Follow me on Twitter : @martinvanaken
> Call me on Skype : vanakenm
> Hang out with me : mar...@joyouscoding.com
> Contact me on LinkedIn : http://www.linkedin.com/in/martinvanaken
> Company website : www.joyouscoding.com

-- 
Edoardo Sabadelli
DHIS 2
University of Oslo
edoa...@dhis2.org
http://www.dhis2.org

___
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


Re: [Dhis2-devs] Error in analytics table generation

2018-04-27 Thread David Huser
Hi Jason,

Had to look into this recently as well - after fixing validation rules with
invalid expressions this error went away. Those violations did not show up
in Integrity Check however.

David

On Fri, Apr 27, 2018 at 10:04 AM, Jason Pickering <
jason.p.picker...@gmail.com> wrote:

> A little more detail here. This actually occurs during this phase of
> analytics which was not clear from the previous message.
>
> 2018-04-27 09:17:13 Process failed: null
> 2018-04-27 09:17:13 Applying aggregation levels
> 2018-04-27 09:17:13 Populating analytics tables
> 2018-04-27 09:17:13 Creating analytics tables
> 2018-04-27 09:17:13 Performing pre-create table work, org unit levels: 7
> 2018-04-27 09:17:13 Updating tables: VALIDATION_RESULT
>
> On Fri, Apr 27, 2018 at 8:04 AM, Jason Pickering <
> jason.p.picker...@gmail.com> wrote:
>
>> Not exactly sure what is causing this, but this is occurring just at the
>> end of the analytics tables process. Here is what we see from the GUI:
>> 2018-04-27 08:00:17 Process failed: null
>> 2018-04-27 08:00:17 Applying aggregation levels
>> 2018-04-27 08:00:17 Populating analytics tables
>> And the error logs
>>
>> * ERROR 2018-04-27 08:00:17,796 Unexpected error occurred in scheduled
>> task. (TaskUtils.java [taskScheduler-25])
>> java.lang.NullPointerException
>> at org.hisp.dhis.commons.util.ConcurrentUtils.waitForCompletion
>> (ConcurrentUtils.java:53)
>> at org.hisp.dhis.analytics.table.DefaultAnalyticsTableService.a
>> pplyAggregationLevels(DefaultAnalyticsTableService.java:242)
>> at org.hisp.dhis.analytics.table.DefaultAnalyticsTableService.u
>> pdate(DefaultAnalyticsTableService.java:137)
>> at org.hisp.dhis.analytics.table.DefaultAnalyticsTableGenerator
>> .generateTables(DefaultAnalyticsTableGenerator.java:112)
>> at org.hisp.dhis.webapi.controller.ResourceTableController.lamb
>> da$analytics$0(ResourceTableController.java:112)
>> at org.springframework.scheduling.support.DelegatingErrorHandli
>> ngRunnable.run(DelegatingErrorHandlingRunnable.java:54)
>> at java.util.concurrent.Executors$RunnableAdapter.call(Executor
>> s.java:511)
>> at java.util.concurrent.FutureTask.run(FutureTask.java:266)
>> at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFu
>> tureTask.access$201(ScheduledThreadPoolExecutor.java:180)
>> at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFu
>> tureTask.run(ScheduledThreadPoolExecutor.java:293)
>> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPool
>> Executor.java:1149)
>> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoo
>> lExecutor.java:624)
>> at java.lang.Thread.run(Thread.java:748)
>> * INFO  2018-04-27 08:00:18,597 Email sent using host: 127.0.0.1:25 with
>> TLS: true (EmailMessageSender.java [taskScheduler-10])
>>
>> Version:2.28Build revision:86937e9
>> Any idea what this might be caused by?
>>
>> Regards,
>> Jason
>>
>> --
>> Jason P. Pickering
>> email: jason.p.picker...@gmail.com
>> tel:+46764147049
>>
>
>
>
> --
> Jason P. Pickering
> email: jason.p.picker...@gmail.com
> tel:+46764147049
>
> ___
> 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
>
>


-- 


*David Huser*
DHIS2 Support Specialist
dhu...@baosystems.com | https://baosystems.com |  2900 K Street, Suite 507,
Washington D.C. 20007
___
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


Re: [Dhis2-devs] Error in analytics table generation

2018-04-27 Thread Jason Pickering
A little more detail here. This actually occurs during this phase of
analytics which was not clear from the previous message.

2018-04-27 09:17:13 Process failed: null
2018-04-27 09:17:13 Applying aggregation levels
2018-04-27 09:17:13 Populating analytics tables
2018-04-27 09:17:13 Creating analytics tables
2018-04-27 09:17:13 Performing pre-create table work, org unit levels: 7
2018-04-27 09:17:13 Updating tables: VALIDATION_RESULT

On Fri, Apr 27, 2018 at 8:04 AM, Jason Pickering <
jason.p.picker...@gmail.com> wrote:

> Not exactly sure what is causing this, but this is occurring just at the
> end of the analytics tables process. Here is what we see from the GUI:
> 2018-04-27 08:00:17 Process failed: null
> 2018-04-27 08:00:17 Applying aggregation levels
> 2018-04-27 08:00:17 Populating analytics tables
> And the error logs
>
> * ERROR 2018-04-27 08:00:17,796 Unexpected error occurred in scheduled
> task. (TaskUtils.java [taskScheduler-25])
> java.lang.NullPointerException
> at org.hisp.dhis.commons.util.ConcurrentUtils.waitForCompletion(
> ConcurrentUtils.java:53)
> at org.hisp.dhis.analytics.table.DefaultAnalyticsTableService.
> applyAggregationLevels(DefaultAnalyticsTableService.java:242)
> at org.hisp.dhis.analytics.table.DefaultAnalyticsTableService.update(
> DefaultAnalyticsTableService.java:137)
> at org.hisp.dhis.analytics.table.DefaultAnalyticsTableGenerator
> .generateTables(DefaultAnalyticsTableGenerator.java:112)
> at org.hisp.dhis.webapi.controller.ResourceTableController.
> lambda$analytics$0(ResourceTableController.java:112)
> at org.springframework.scheduling.support.DelegatingErrorHandlingRunnabl
> e.run(DelegatingErrorHandlingRunnable.java:54)
> at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
> at java.util.concurrent.FutureTask.run(FutureTask.java:266)
> at java.util.concurrent.ScheduledThreadPoolExecutor$
> ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
> at java.util.concurrent.ScheduledThreadPoolExecutor$
> ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
> at java.util.concurrent.ThreadPoolExecutor.runWorker(
> ThreadPoolExecutor.java:1149)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(
> ThreadPoolExecutor.java:624)
> at java.lang.Thread.run(Thread.java:748)
> * INFO  2018-04-27 08:00:18,597 Email sent using host: 127.0.0.1:25 with
> TLS: true (EmailMessageSender.java [taskScheduler-10])
>
> Version:2.28Build revision:86937e9
> Any idea what this might be caused by?
>
> Regards,
> Jason
>
> --
> Jason P. Pickering
> email: jason.p.picker...@gmail.com
> tel:+46764147049
>



-- 
Jason P. Pickering
email: jason.p.picker...@gmail.com
tel:+46764147049
___
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


[Dhis2-devs] Error in analytics table generation

2018-04-27 Thread Jason Pickering
Not exactly sure what is causing this, but this is occurring just at the
end of the analytics tables process. Here is what we see from the GUI:
2018-04-27 08:00:17 Process failed: null
2018-04-27 08:00:17 Applying aggregation levels
2018-04-27 08:00:17 Populating analytics tables
And the error logs

* ERROR 2018-04-27 08:00:17,796 Unexpected error occurred in scheduled
task. (TaskUtils.java [taskScheduler-25])
java.lang.NullPointerException
at
org.hisp.dhis.commons.util.ConcurrentUtils.waitForCompletion(ConcurrentUtils.java:53)
at
org.hisp.dhis.analytics.table.DefaultAnalyticsTableService.applyAggregationLevels(DefaultAnalyticsTableService.java:242)
at
org.hisp.dhis.analytics.table.DefaultAnalyticsTableService.update(DefaultAnalyticsTableService.java:137)
at
org.hisp.dhis.analytics.table.DefaultAnalyticsTableGenerator.generateTables(DefaultAnalyticsTableGenerator.java:112)
at
org.hisp.dhis.webapi.controller.ResourceTableController.lambda$analytics$0(ResourceTableController.java:112)
at
org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:54)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
* INFO  2018-04-27 08:00:18,597 Email sent using host: 127.0.0.1:25 with
TLS: true (EmailMessageSender.java [taskScheduler-10])

Version:2.28Build revision:86937e9
Any idea what this might be caused by?

Regards,
Jason

-- 
Jason P. Pickering
email: jason.p.picker...@gmail.com
tel:+46764147049
___
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