Re: [Dhis2-devs] [Dhis2-users] high-level roadmap 2016-17

2016-08-17 Thread wanjala pepela
Thanks Lars,
Now that we have a critical Mass of Community of practice and many country 
adoption and use of DHIS2. I request that Oslo team work with the various 
regional blocks to ensure that all countries are using it to facilitate ease of 
sharing information/ comparability/ benchmarking/ etc and report SDG in a 
uniform manner in the health sector;
regards PEPELA WANJALAMINISTRY OF HEALTH HEADQUARTERSHEALTH SECTOR MONITORING & 
EVALUATION - AMRO- KENYA CHAIRMANAFYA HOUSE, LG 37P.O BOX 30016, NAIROBI, 
KENYATEL: +254 (020) 2717077 EXT 45097CELL: +254 (0) 722375633 EMAIL: 
wanjal...@yahoo.com, wanjal...@gmail.com    h...@health.go.ke, 
meunit...@gmail.com "HealthInformation Management - Making a World of 
Difference” 

  From: Lars Helge Øverland 
 To: DHIS 2 Developers list ; DHIS 2 Users list 
 
 Sent: Wednesday, August 17, 2016 6:54 PM
 Subject: [Dhis2-users] high-level roadmap 2016-17
   
Hi,
you can find an updated high-level roadmap which leads up to version 2.28 in 
June 2017 here:

https://www.dhis2.org/roadmap


For those who prefer all the details you can have a look at the Launchpad 
release pages and Github issues.

regards,
Lars

-- 
Lars Helge Øverland
Lead developer, DHIS 2University of OsloSkype: larshelgeoverlandl...@dhis2.org
http://www.dhis2.org

___
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


  ___
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] Import/Export Logging

2016-08-17 Thread Timothy Harding
Hello DHIS2 Devs,

I've started using the import/export bits of 2.23, and I've noticed that
the logs are a lot less verbose than they used to be in previous versions.
One example:

* INFO  2016-08-17 17:19:10,185 [Level: INFO, category: METADATA_IMPORT,
time: Wed Aug 17 17:19:10 UTC 2016, message: Importing 41 DataElements]
(InMemoryNotifier.java [taskScheduler-2])

* INFO  2016-08-17 17:20:22,211 [Level: INFO, category: METADATA_IMPORT,
time: Wed Aug 17 17:20:22 UTC 2016, message: Import done. Completed in
75.92 seconds.] (InMemoryNotifier.java [taskScheduler-2])
Before, each imported object would get 1-2 lines here in the log explaining
how it went. Have these logs moved to a different file maybe and I'm just
not aware yet? The issue I have is that if there are no conflicts there is
really no way to tell what was created and what was updated (or will be
created/updated with a dry run):

[image: Inline image 1]
[image: Inline image 2]

Is there an easy way to get back at the logs that report each
imported/updated object so I can suss out which of these 4 were "updated"
(I've got what looks to be 4 duplicate codes that I am trying to track down
out of many), I'm writing SQL now to help with this, but it wouldn't be
needed with a more verbose output from the import/export app. Thanks!



*Timothy Harding*
Sr. Systems Analyst, BAO Systems
+1 202-536-1541 | thard...@baosystems.com | http://www.baosystems.com | Skype:
hardi...@gmail.com | 2900 K Street, Suite 404, 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


[Dhis2-devs] Question regarding charts/reportTables apis

2016-08-17 Thread Poulami Biswas
Hi,

We are facing an issue when we want to download data for our charts and
reports on Praxis. We are using the charts/reportTables api in order to
download the data.

When are we using the api as a collection (eg.
*https://play.dhis2.org/demo/api/reportTables.json?paging=false=id,columns[id,items[id,name]],rows
*
*[id,items[id,name]]**,filters**[id,items[id,name]]* ), the response does
not contain any data for rows, columns and filters. However when we use the
api for individual reports or charts like
*https://play.dhis2.org/demo/api/reportTables/tWg9OiyV7mu.json?paging=false=id,columns[id,items[id,name]],rows,filters
*,
we
are able to get the data for rows, columns and filters.

In order to address this, we have to recurse over all the reports/charts
obtained from the collection api call and and make individual calls for
each report/chart in order to fetch the data for rows, columns and filters.

Is this a bug or an intended behavior?

Cheers,
Poulami Biswas | App Developer  | * Thought*Works , Hyderabad | +91
8334016674
___
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] OU group Filtering issue

2016-08-17 Thread vunda limbe
Hi Community,

I'm facing an issue when I use pivot table and want to filter, not with
OrgUnit common selection, but with a group of OU. It's giving a different
result even if I select the same OU with common OU filter.
Could someone in the development team or any in the community can help.
I use v2.23 and 2.20.

Cordially,
___
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] high-level roadmap 2016-17

2016-08-17 Thread Lars Helge Øverland
Hi,

you can find an updated high-level roadmap which leads up to version 2.28
in June 2017 here:


https://www.dhis2.org/roadmap



For those who prefer all the details you can have a look at the Launchpad
release pages and Github  issues.


regards,

Lars


-- 
Lars Helge Øverland
Lead developer, DHIS 2
University of Oslo
Skype: larshelgeoverland
l...@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] Tracked Entity Instances Query - SQL syntax error

2016-08-17 Thread Pamod Amarakoon
Thank you Morten.

On Wed, Aug 17, 2016 at 7:10 PM, Morten Olav Hansen 
wrote:

> Seems like a bug yes, I will look into it
>
> --
> Morten Olav Hansen
> Senior Engineer, DHIS 2
> University of Oslo
> http://www.dhis2.org
>
> On Mon, Aug 15, 2016 at 10:34 AM, chathura widanage <
> chathurawidan...@gmail.com> wrote:
>
>> Hi all,
>>
>> I am using below API call to query all the TEIs which are accessible by
>> the current user.
>>
>> /api/trackedEntityInstances/query.json?ouMode=ACCESSIBLE
>> ribute=izuwkaOUgFg=C8DBAo2wEYN=BZEpuufLyDE=
>> WqdldQpOIxm
>>
>> In our setup,  we have 5 orgUnitLevels and above query works fine for
>> superuser who has just one orgUnit assigned which is of level 1.
>>
>> There are other users who has multiple level 4 and 5 orgUnits assigned.
>> Above API call fails for those users giving a 500 error code. Basically
>> this doesn't work for any user who has multiple orgUnits.
>>
>> The cause for the issue seems to be a SQL syntax error.
>>
>> Please find the link to the stack trace below.
>>
>> https://dl.dropboxusercontent.com/u/81780569/stack.txt
>>
>> The issue was visible in DHIS2 v2.23 and v2.24.
>>
>> Have I done something wrong in the above API call or is this a bug in the
>> DHIS2. Is there any walk around for this issue?
>>
>> Thanks
>> --
>> Best Regards,
>>
>> *Chathura Widanage,*
>> Undergraduate,
>> Department of Computer Science and Engineering,
>> University of Moratuwa,
>> Sri Lanka
>>
>> 
>>   
>> 
>> 
>>
>> ___
>> 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
>
>


-- 
Regards,
Pamod Amarakoon

Confidentiality Notice: the information contained in this email and any
attachments may be legally privileged and confidential. If you are not an
intended recipient, you are hereby notified that any dissemination,
distribution, or copying of this e-mail is strictly prohibited. If you have
received this e-mail in error, please notify the sender and permanently
delete the e-mail and any attachments immediately. You should not retain,
copy or use this e-mail or any attachments for any purpose, nor disclose
all or any part of the contents to any other person.
___
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] Tracked Entity Instances Query - SQL syntax error

2016-08-17 Thread Morten Olav Hansen
Seems like a bug yes, I will look into it

-- 
Morten Olav Hansen
Senior Engineer, DHIS 2
University of Oslo
http://www.dhis2.org

On Mon, Aug 15, 2016 at 10:34 AM, chathura widanage <
chathurawidan...@gmail.com> wrote:

> Hi all,
>
> I am using below API call to query all the TEIs which are accessible by
> the current user.
>
> /api/trackedEntityInstances/query.json?ouMode=ACCESSIBLE&
> attribute=izuwkaOUgFg=C8DBAo2wEYN=BZEpuufLyDE&
> attribute=WqdldQpOIxm
>
> In our setup,  we have 5 orgUnitLevels and above query works fine for
> superuser who has just one orgUnit assigned which is of level 1.
>
> There are other users who has multiple level 4 and 5 orgUnits assigned.
> Above API call fails for those users giving a 500 error code. Basically
> this doesn't work for any user who has multiple orgUnits.
>
> The cause for the issue seems to be a SQL syntax error.
>
> Please find the link to the stack trace below.
>
> https://dl.dropboxusercontent.com/u/81780569/stack.txt
>
> The issue was visible in DHIS2 v2.23 and v2.24.
>
> Have I done something wrong in the above API call or is this a bug in the
> DHIS2. Is there any walk around for this issue?
>
> Thanks
> --
> Best Regards,
>
> *Chathura Widanage,*
> Undergraduate,
> Department of Computer Science and Engineering,
> University of Moratuwa,
> Sri Lanka
>
> 
>   
> 
> 
>
> ___
> 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] ORGANISATION UNIT NOT LOADING IN TRACKER CAPTURE-ANDROID

2016-08-17 Thread Stanley Kalyati
Colleagues,

My android tracker capture app is not displaying the organisation units.

It asked me to assign org units to the user but even after assigning the
app still can not load the Org Unit.

What am i missing.

Kindly assist.

Regards

Stanley
___
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] printing report to .doc

2016-08-17 Thread moses mwale
is there a way that i can edit the print button to be able to print word
docs in standard html report

-- 
developer_lusaka_systems
___
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] Restricting Data Set assignment through User Role doesn't work for a user with 'ALL' authority

2016-08-17 Thread Busoye Anifalaje
Hi Archana,

This is expected behaviour with the ‘ALL’ authority. You would not be able to 
restrict access to most objects created for a user with All authority in their 
user role. This is what distinguishes the default Superuser role from the rest. 

The only instance I am aware of that the All authority is restricted by default 
is with Dashboard created as private.

I think the idea is that the All authority allows a sys admin to troubleshoot 
most issues without having to request access from a user that might either not 
be able to provide the access required or does not know how to.
  

Hope that helps.

Regards,

- -



Busoye Anifalaje (PhD)
Director of Services (Principal), BAO Systems
UK: +44 7901-740-757 | US: +1 682-307-0986|
 bus...@baosystems.com  | 
http://www.baosystems.com  |
Skype: busoye | 2900 K Street, Suite 404, Washington D.C. 20007

> On 17 Aug 2016, at 07:31, Archana Chillala  wrote:
> 
> Hi,
> 
> We are working on DHIS version 2.24 (revision - 23565). We are testing the 
> behaviour of restricting data Sets through User Roles. We have created a user 
> role with all the authorities, except 'ALL' authority. And did not assign any 
> data Sets to this user role. Then we assigned the role to a user. So, when 
> the user is logged in, and opens data entry app, and goes to the right 
> organisation unit where that particular data set is assigned to, the user 
> cannot find any data sets. This is the expected behaviour. However, we 
> modified the user role, by giving only the 'ALL' authority now (no other 
> authorities are given). And tested the same again. Now, the user is able to 
> see the data set in the data entry app, even if the data set is not assigned 
> to the user role. Is this expected of the user who has "ALL" authority? Or a 
> bug?
> 
> Any help here would be appreciated.
> 
> 
> Archana Chillala
> Application Developer
> Email archa...@thoughtworks.com 
> Telephone +91 9100960533 
>  
> 
> ___
> 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] Upgrading DHIS2 from 2.21 to 2.24 and using new exporter/importer

2016-08-17 Thread Aamer Mohammed
Hi Morten,

We have our metadata configured on a DHIS 2.21 instance. We have
sequentially upgraded this instance to 2.22, 2.23 and 2.24 by following the
upgrade notes for each of them.

We want to export the metadata from this upgraded 2.24 instance and import
it to a fresh instance which is already on 2.24. We followed the below
steps.
1) Export the metadata from the upgraded 2.24 instance using the new
exporter
*curl -H "Content-Type: application/json" -X GET -u username:password
http://:8080/api/24/metadata.json
 > metadata.224.newapi.json *

2) Import the metadata using the new importer to a fresh instance which is
already on 2.24
*curl -H "Content-Type: application/json" -X POST --data
@metadata.224.newapi.json -u username:password
http://:8080/api/24/metadata  >
output.txt*

We see that none of the objects are getting imported. The complete response
of the importer is attached below. Any thoughts please. Also let me know if
any further details are required from our end.


Thanks
Aamer.
{"status":"ERROR","stats":{"total":9,"created":0,"updated":0,"deleted":0,"ignored":9},"typeReports":[{"klass":"org.hisp.dhis.organisationunit.OrganisationUnitGroupSet","stats":{"total":0,"created":0,"updated":0,"deleted":0,"ignored":0}},{"klass":"org.hisp.dhis.dataelement.CategoryOptionGroupSet","stats":{"total":0,"created":0,"updated":0,"deleted":0,"ignored":0}},{"klass":"org.hisp.dhis.dataelement.DataElementCategory","stats":{"total":0,"created":0,"updated":0,"deleted":0,"ignored":0}},{"klass":"org.hisp.dhis.organisationunit.OrganisationUnitGroup","stats":{"total":0,"created":0,"updated":0,"deleted":0,"ignored":0}},{"klass":"org.hisp.dhis.common.filter.MetaDataFilter","stats":{"total":0,"created":0,"updated":0,"deleted":0,"ignored":0}},{"klass":"org.hisp.dhis.report.Report","stats":{"total":0,"created":0,"updated":0,"deleted":0,"ignored":0}},{"klass":"org.hisp.dhis.dashboard.DashboardItem","stats":{"total":0,"created":0,"updated":0,"deleted":0,"ignored":0}},{"klass":"org.hisp.dhis.user.UserAuthorityGroup","stats":{"total":1,"created":0,"updated":0,"deleted":0,"ignored":1},"objectReports":[{"klass":"org.hisp.dhis.user.UserAuthorityGroup","index":7,"errorReports":[{"message":"Property
 `name` with value `Superuser` on object Superuser [nnNYZeZaox6] 
(UserAuthorityGroup) already exists on object 
yrB6vc5Ip3r.","mainKlass":"org.hisp.dhis.user.UserAuthorityGroup","errorCode":"E5003"}]}]},{"klass":"org.hisp.dhis.dataelement.DataElementCategoryCombo","stats":{"total":0,"created":0,"updated":0,"deleted":0,"ignored":0}},{"klass":"org.hisp.dhis.dashboard.Dashboard","stats":{"total":0,"created":0,"updated":0,"deleted":0,"ignored":0}},{"klass":"org.hisp.dhis.reporttable.ReportTable","stats":{"total":0,"created":0,"updated":0,"deleted":0,"ignored":0}},{"klass":"org.hisp.dhis.organisationunit.OrganisationUnit","stats":{"total":0,"created":0,"updated":0,"deleted":0,"ignored":0}},{"klass":"org.hisp.dhis.dataelement.DataElementCategoryOptionCombo","stats":{"total":0,"created":0,"updated":0,"deleted":0,"ignored":0}},{"klass":"org.hisp.dhis.indicator.Indicator","stats":{"total":0,"created":0,"updated":0,"deleted":0,"ignored":0}},{"klass":"org.hisp.dhis.user.User","stats":{"total":1,"created":0,"updated":0,"deleted":0,"ignored":1},"objectReports":[{"klass":"org.hisp.dhis.user.User","index":735,"errorReports":[{"message":"Property
 `username` with value `admin` on object null null [JB4V8ZlRV7l] 
(UserCredentials) already exists on object 
KvMx6c1eoYo.","mainKlass":"org.hisp.dhis.user.UserCredentials","errorCode":"E5003"}]}]},{"klass":"org.hisp.dhis.indicator.IndicatorGroup","stats":{"total":0,"created":0,"updated":0,"deleted":0,"ignored":0}},{"klass":"org.hisp.dhis.dataelement.DataElementCategoryOption","stats":{"total":0,"created":0,"updated":0,"deleted":0,"ignored":0}},{"klass":"org.hisp.dhis.chart.Chart","stats":{"total":0,"created":0,"updated":0,"deleted":0,"ignored":0}},{"klass":"org.hisp.dhis.dataelement.DataElement","stats":{"total":5,"created":0,"updated":0,"deleted":0,"ignored":5},"objectReports":[{"klass":"org.hisp.dhis.dataelement.DataElement","index":341,"errorReports":[{"message":"Property
 `shortName` with value `Diabetes` on object Diabetes (Chronic) [R3hAKZ7OZxC] 
(DataElement) already exists on object 
psMXtszCxj0.","mainKlass":"org.hisp.dhis.dataelement.DataElement","errorCode":"E5003"}]},{"klass":"org.hisp.dhis.dataelement.DataElement","index":88,"errorReports":[{"message":"Property
 `shortName` with value `Beneficiaries MHPS Individual: Psychological suppo` 
on object Beneficiaries MHPS Individual: Psychological support - F/up visit 
[d2wj03D4iY1] (DataElement) already exists on object 
A5zai5oIfwW.","mainKlass":"org.hisp.dhis.dataelement.DataElement","errorCode":"E5003"}]},{"klass":"org.hisp.dhis.dataelement.DataElement","index":1115,"errorReports":[{"message":"Property
 `shortName` with value `Separation/Loss as precipitating 

Re: [Dhis2-devs] scheduling in DHIS

2016-08-17 Thread Vanya Seth
Hi Lars

We are looking at extending org.hisp.dhis.system.scheduling.Scheduler to
also have the ability to return the ListenableFuture for a Runnable as
well. This will help us or any dev in the future to check the status of the
ongoing Runnables in the system and provide some user experience around it.

Please let know if you are ok with us taking it up? As we want to fix a bug
wherein the "sync now" button should not be clickable if the task is
already running.

Regards
Vanya


On Mon, Aug 8, 2016 at 9:26 AM, Aamer Mohammed 
wrote:

> Hi Lars/Morten,
>
> The scheduling page in DHIS 2.24 has ability to run tasks immediately in
> below sections.
>
>- Metadata Synchronization - Using 'Sync Now' button
>- SMS Scheduler - Using 'Run Now' button
>
> When the user clicks 'Sync Now' button, an asynchronous task is triggered
> in the backend for metadata synchronization. The user can click the button
> again before the synchronization task is even complete. We want to prevent
> this as it can spawn multiple threads in the system all doing the same job
> leading to race conditions in system.
>
> We can do the changes in SchedulingManager.executeTask so that it will
> check the status of the previously submitted task. If it is not running
> then it will start new task or otherwise not. These changes should be
> applicable to any 'executeNow' type tasks in the system.
>
> Does DHIS2 already have such functionality available elsewhere in the
> system? Any thoughts on this approach.
>
>
> Thanks
> Aamer.
>



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


[Dhis2-devs] Restricting Data Set assignment through User Role doesn't work for a user with 'ALL' authority

2016-08-17 Thread Archana Chillala
Hi,

We are working on DHIS version 2.24 (revision - 23565). We are testing the
behaviour of restricting data Sets through User Roles. We have created a
user role with all the authorities, except 'ALL' authority. And did not
assign any data Sets to this user role. Then we assigned the role to a
user. So, when the user is logged in, and opens data entry app, and goes to
the right organisation unit where that particular data set is assigned to,
the user cannot find any data sets. This is the expected behaviour.
However, we modified the user role, by giving only the 'ALL' authority now
(no other authorities are given). And tested the same again. Now, the user
is able to see the data set in the data entry app, even if the data set is
not assigned to the user role. Is this expected of the user who has "ALL"
authority? Or a bug?

Any help here would be appreciated.


Archana Chillala
Application Developer
Email archa...@thoughtworks.com
Telephone +91 9100960533 <+91+9100960533>
[image: ThoughtWorks]

___
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] Issue while importing Charts/Tables

2016-08-17 Thread Archana Chillala
Hi,

We are working on DHIS 2.24 branch (revision - 23565). We have created a
chart on one DHIS instance and imported it into another DHIS instance. All
the other metadata entities sync well, except for charts. The same happens
with Pivot Tables, Event reports and Event Charts and maps as well. The
importer throws an error and fails at importing these Analytics objects.

Here's the log trace for the exception -

* INFO  2016-08-16 18:04:12,673 Skipping unknown property 'date'.
(DefaultRenderService.java [taskScheduler-2])
* INFO  2016-08-16 18:04:12,674 (system-process) Import:Start
(DefaultMetadataImportService.java [taskScheduler-2])
* INFO  2016-08-16 18:04:12,693 (system-process) Import:Preheat[REFERENCE]
took 0.02 seconds (DefaultPreheatService.java [taskScheduler-2])
* INFO  2016-08-16 18:04:12,694 (system-process) Import:Validation took
0.00 seconds (DefaultObjectBundleValidationService.java [taskScheduler-2])
** INFO  2016-08-16 18:04:12,694 (system-process) Creating 1 object(s) of
type Chart (DefaultObjectBundleService.java [taskScheduler-2])*
** ERROR 2016-08-16 18:04:12,697 Exception occurred while trying to import
the metadata. object references an unsaved transient instance - save the
transient instance before flushing: org.hisp.dhis.dataelement.DataElement
(MetadataSyncImportHandler.java [taskScheduler-2])*
*org.hibernate.TransientObjectException: object references an unsaved
transient instance - save the transient instance before flushing:
org.hisp.dhis.dataelement.DataElement*
at org.hibernate.engine.internal.ForeignKeys.getEntityIdentifierIfNotUnsave
d(ForeignKeys.java:279)
at org.hibernate.type.EntityType.getIdentifier(EntityType.java:455)
at org.hibernate.type.ManyToOneType.isDirty(ManyToOneType.java:281)
at org.hibernate.type.ManyToOneType.isDirty(ManyToOneType.java:291)
at org.hibernate.type.TypeHelper.findDirty(TypeHelper.java:296)
at org.hibernate.persister.entity.AbstractEntityPersister.findDirty(
AbstractEntityPersister.java:4126)
at org.hibernate.event.internal.DefaultFlushEntityEventListener.dirtyCheck(
DefaultFlushEntityEventListener.java:528)
at org.hibernate.event.internal.DefaultFlushEntityEventListene
r.isUpdateNecessary(DefaultFlushEntityEventListener.java:215)
at org.hibernate.event.internal.DefaultFlushEntityEventListene
r.onFlushEntity(DefaultFlushEntityEventListener.java:142)
at org.hibernate.event.internal.AbstractFlushingEventListener.flushEntities(
AbstractFlushingEventListener.java:216)
at org.hibernate.event.internal.AbstractFlushingEventListener.
flushEverythingToExecutions(AbstractFlushingEventListener.java:85)
at org.hibernate.event.internal.DefaultFlushEventListener.onFlush(
DefaultFlushEventListener.java:38)
at org.hibernate.internal.SessionImpl.flush(SessionImpl.java:1295)
at org.hisp.dhis.dxf2.metadata2.objectbundle.DefaultObjectBundleService.
commit(DefaultObjectBundleService.java:155)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(
NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection
(AopUtils.java:302)
at org.springframework.aop.framework.ReflectiveMethodInvocation.
invokeJoinpoint(ReflectiveMethodInvocation.java:190)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
ReflectiveMethodInvocation.java:157)


This issue was reported earlier, but looks like it has not been fixed.
Could you please help fix this.



*Cheers,*

Archana Chillala
Application Developer
Email archa...@thoughtworks.com
Telephone +91 9100960533 <+91+9100960533>
[image: ThoughtWorks]

___
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