Re: [Dhis2-users] 2.28 - Invalid reference [GROUPID] (UserGroup) on object chartName [CHARTID] (Chart) for association `userGroupAccesses`

2018-04-09 Thread Ramón José Jiménez Pomareta
Hello again,

As complementary info the chart is shared with, lets say, the groups A, B,
C and D. (write/read for A and B, only read for C and D).

The group C manages the group D.
The group B manages groups C and D.
The group A manages B, C and D.

I discovered the following facts:

The user is able to modify *and save* the chart if he is in group A, but
not if he is in the group B, C and/or D.

I don't think we could reduce the sharing to only 2 groups.  Any
suggestions ?

Thanks again !

Ramón Jiménez Pomareta


2018-04-09 10:26 GMT+02:00 Ramón José Jiménez Pomareta :

> Hello,
>
> I've upgraded to version 28 and I am facing to this error:
>
> When a user wants to save a chart, he gets the 409 conflict error. When
> regarding on the console I found the following error:
>
>1. errorCode:"E5002"
>2. mainKlass:"org.hisp.dhis.chart.Chart"
>3. message:"Invalid reference [GROUPID] (UserGroup) on object
>chartName [CHARTID] (Chart) for association `userGroupAccesses`."
>
> The user has all the authorities except the ALL authority.
> The dashboard and its items are shared with the userGroup.
> The user is member on the userGroup.
>
> The server log says however, the updated was done
>
> * INFO  2018-04-09 10:25:03,466 (username) Import:Start
> (DefaultMetadataImportService.java [ajp-bio-8010-exec-13])
> * INFO  2018-04-09 10:25:03,550 ( username ) Import:Preheat[REFERENCE]
> took 0.08 seconds (DefaultPreheatService.java [ajp-bio-8010-exec-13])
> * INFO  2018-04-09 10:25:03,579 ( username ) Import:Validation took 0.00
> seconds (DefaultObjectBundleValidationService.java [ajp-bio-8010-exec-13])
> * INFO  2018-04-09 10:25:03,579 ( username ) Import:Done took 0.11
> seconds (DefaultMetadataImportService.java [ajp-bio-8010-exec-13])
>
>
>
> Do you have any idea/suggestion ?
>
> Thank you so much !
> Ramón Jiménez Pomareta
>
___
Mailing list: https://launchpad.net/~dhis2-users
Post to : dhis2-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-users
More help   : https://help.launchpad.net/ListHelp


[Dhis2-users] Making use of renderOptionsAsRadio property of Option Sets in custom forms.

2018-04-09 Thread chathura widanage
​Hi,

This query is regarding Event Capture app.

HISP Sri Lanka has a requirement of rendering a set of radi​o buttons,
instead of a (or ui-select) for an option set in a custom form.

We have noticed that in defaultForm.html, this case has been handled by
utilizing the property *renderOptionsAsRadio.* But when it comes to
customForms, it just ignore this property.

We tried to manually edit the source of custom form and embed a 
instead of the auto generated . In that attempt, rendering works
fine (visually) but, buttons were not functional since the signature of the
callback function (*d2-callback-function*) of  is not compatible
with the *saveDatavalue *function of the angular controller of custom
form(Or this callback doesn't work at all).

However,  directive works fine since the signature of its
callback (*dh-click*) is compatible with *saveDatavalue  *function*.
(ie. **saveDatavalueRadio(eventGridColumn,
currentEvent, value)**)*

I tried to port the logic in defaultForm.html to custom form, but couldn't
find the implementation of d2-custom-form directive in dhis2 repositories.

Could someone please let me know, how we can properly render radio buttons
for an option set in custom forms or please let me know, where can I find
the implementation of d2-custom-form, so I can edit that to handle
*renderOptionsAsRadio* property of option sets.

Thanks,
Chathura
HISP Sri Lanka
___
Mailing list: https://launchpad.net/~dhis2-users
Post to : dhis2-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-users
More help   : https://help.launchpad.net/ListHelp


[Dhis2-users] Analytics table process failed - ConcurrentUtils.waitForCompletion - NullPointerException

2018-04-09 Thread JIMENEZ POMARETA , Ramon Jose
Hello,
 
From some time, our server don’t finish the analytics properly ( even if in the 
interface, a “analytics failed” message is shown, most of the tables/graphs are 
updated but, for example, old data are not always deleted/updated (not sure 
100% if related)).
 
Please, see attached, the log and the messageConversation info.
 
Any idea ? 
 
Thanks !
 
Ramón José JIMÉNEZ POMARETA
IT Consultant
Innovative and Intensified Disease Management Unit 
Department of Neglected Tropical Diseases (CDS/NTD/IDM)
Leishmaniasis Control Programme
WHO/HQ  Geneva
Avenue Appia 20
CH-1211 Geneva 27
pomare...@who.int
 
[who]
 


* INFO  2018-04-09 16:08:31,432 [Level: INFO, category: ANALYTICSTABLE_UPDATE, 
time: Mon Apr 09 16:08:31 CEST 2018, message: Applying aggregation levels] 
(InMemoryNotifier.java [taskScheduler-11])
* INFO  2018-04-09 16:08:31,432 [Level: ERROR, category: ANALYTICSTABLE_UPDATE, 
time: Mon Apr 09 16:08:31 CEST 2018, message: Process failed: null] 
(InMemoryNotifier.java [taskScheduler-11])
* INFO  2018-04-09 16:08:31,488 'system-process' create 
org.hisp.dhis.message.MessageConversation, name: Analytics table process 
failed, uid: nA5vaakt6OM (AuditLogUtil.java [taskScheduler-11])
* INFO  2018-04-09 16:08:31,493 no recipient (SmsMessageSender.java 
[taskScheduler-11])
* ERROR 2018-04-09 16:08:31,502 Unexpected error occurred in scheduled task. 
(TaskUtils.java [taskScheduler-11])
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:1142)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
 messageid | created |messagetext   
  | internal | metadata |subject | priority | status | 
messagetype
---+-++--+--++--++-
225158 | 2018-04-09 16:08:31.488 | Analytics table process failed   
 +| f|  | Analytics table process failed | NONE | NONE   | 
SYSTEM
   | |  
 +|  |  ||  ||
   | | System title: WHO Integrated data 
platform+|  |  ||  |
|
   | | Base URL: null   
 +|  |  ||  ||
   | | Time: 2018-04-09T16:08:31.484+02:00  
 +|  |  ||  ||
   | | Message: null
 +|  |  ||  ||
   | |  
 +|  |  ||  ||
   | | Cause:   
  |  |  ||  ||
(1 row)
___
Mailing list: https://launchpad.net/~dhis2-users
Post to : dhis2-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-users
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-users] DHIS 2.28 Pivot Table Aggregation/Totals

2018-04-09 Thread Elmarie Claasen
Hi Rebecca,



I have checked and agree that the same issue exist on our side. What is
kind of peculiar is that annual and financial year indicators sum up
correctly when the indicator is a count indicator.

In my view the issue (DHIS2-2380 ),
listed as an improvement to be able to select whether you want to use the
sum or average for totals is confusing because one should really be using
the sum of all numerator values divided  by the sum of all denominator
values and not the average of all period values to calculate the indicators
correctly and if the former is used the values should be correct regardless
if it is percentages or raw values reported.



I will report a bug report for this now.



Regards,



*Elmarie Claasen*

[image: Hisp logo]

Project Manager

Health Information Systems Program

Tel:  041-367 1027

Cell: 082 374 2209

E-mail: elma...@hisp.org

Skype:  elmarie.claasen52



*From:* Dhis2-users  *On Behalf Of *Smith, Rebecca A.
*Sent:* Thursday, April 5, 2018 7:39 PM
*To:* dhis2-users 
*Subject:* [Dhis2-users] DHIS 2.28 Pivot Table Aggregation/Totals



Hi DHIS community,



After upgrading to 2.28, my pivot tables’ *total* columns for indicators
always show *averages* instead of *sums. *



I checked that the indicators’ numerators contains only data elements with
“Sum” aggregation type, the denominators are just 1, and the pivot table’s
Options->Aggregation Type is set to “Sum”.. But the totals continue to
display as averages. Is there some sort of trick or workaround to get it to
display sums again?



I found a similar request in Jira (DHIS2-2380
), but it hasn’t been updated in
a while. Here’s a screenshot of the issue on the Play demo 2.28 server
(build 2e8c1db).



Thanks in advance for your help!

Becky



Becky Smith

Health Information Specialist

ICAP at Columbia University

Email: rs3...@cumc.columbia.edu

-- 


*This message and any attachments are subject to a disclaimer published

at http://www.hisp.org/policies.html#comms_disclaimer 
. 
Please read the 
disclaimer before opening any attachment or taking any other
action in 
terms of this electronic transmission.  If you cannot access the

disclaimer, kindly send an email to disclai...@hisp.org 
 and a copy will be provided to you. By

replying to this e-mail or opening any attachment you agree to be bound by 
the
provisions of the disclaimer.*
___
Mailing list: https://launchpad.net/~dhis2-users
Post to : dhis2-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-users
More help   : https://help.launchpad.net/ListHelp


[Dhis2-users] 回复:[Dhis2-devs] update from dhis2 2.28 to 2.29 error

2018-04-09 Thread 林晓东
thanks.
I have fixed it with drop table jobconfiguration. which remove a field : 
configable.


| |
林晓东
邮箱:lin...@126.com
|

签名由 网易邮箱大师 定制

在2018年04月09日 17:03,Henning Håkonsen 写道:
Hi,


Are you able to supply me the 2.28 database dump? If so, I will check what 
fails and try to fix it.


Regards,

Henning Håkonsen
henn...@dhis2.org








On 9 Apr 2018, at 06:14, 林晓东  wrote:




hi,all


  when I upgrade from dhis2 2.28 to 2.29 I got error as fellowing:
   all I done:  dump from 2.28 db ,restore to a new db, execute the script: 
https://github.com/dhis2/dhis2-utils/blob/master/resources/sql/upgrade-229.sql
then start, got  error : 
--console:--
* INFO  2018-04-09 12:01:18,383 Executing startup routine [7 of 18, runlevel 
5]: SchedulerUpgrade (DefaultStartupRoutineExecutor.java 
[localhost-startStop-1])
* INFO  2018-04-09 12:01:18,393 Porting old jobs (SchedulerUpgrade.java 
[localhost-startStop-1])
* ERROR 2018-04-09 12:01:18,473 Could not map job type 
'[scheduledProgramNotificationsTask]' with cron '0 0 5 * * ?' 
(SchedulerUpgrade.java [localhost-startStop-1])
* ERROR 2018-04-09 12:01:18,473 Could not map job type 
'[scheduledProgramNotificationsTask]' with cron '0 0 5 * * ?' 
(SchedulerUpgrade.java [localhost-startStop-1])
* INFO  2018-04-09 12:01:18,473 'system-process' create 
org.hisp.dhis.scheduling.JobConfiguration, name: Scheduled program 
notifications, uid: vaX5VXYvoro (AuditLogUtil.java [localhost-startStop-1])
* INFO  2018-04-09 12:01:18,513 'system-process' create 
org.hisp.dhis.scheduling.JobConfiguration, name: Analytics, uid: AeAgqSz6Vci 
(AuditLogUtil.java [localhost-startStop-1])
* ERROR 2018-04-09 12:01:18,543 Could not map job type '[analyticsAllTask, 
monitoringLastDayTask, dataSynchTask, metadataSyncTask]' with cron '0 0 0 * * 
?' (SchedulerUpgrade.java [localhost-startStop-1])
* ERROR 2018-04-09 12:01:18,553 Could not map job type '[analyticsAllTask, 
monitoringLastDayTask, dataSynchTask, metadataSyncTask]' with cron '0 0 0 * * 
?' (SchedulerUpgrade.java [localhost-startStop-
1])
* ERROR 2018-04-09 12:01:18,553 Could not map job type '[analyticsAllTask, 
monitoringLastDayTask, dataSynchTask, metadataSyncTask]' with cron '0 0 0 * * 
?' (SchedulerUpgrade.java [localhost-startStop-
1])
* ERROR 2018-04-09 12:01:18,553 Could not map job type '[analyticsAllTask, 
monitoringLastDayTask, dataSynchTask, metadataSyncTask]' with cron '0 0 0 * * 
?' (SchedulerUpgrade.java [localhost-startStop-
1])
* INFO  2018-04-09 12:01:18,553 'system-process' create 
org.hisp.dhis.scheduling.JobConfiguration, name: Monitoring, uid: d72z7q0iyd8 
(AuditLogUtil.java [localhost-startStop-1])
* ERROR 2018-04-09 12:01:18,583 Could not map job type '[analyticsAllTask, 
monitoringLastDayTask, dataSynchTask, metadataSyncTask]' with cron '0 0 0 * * 
?' (SchedulerUpgrade.java [localhost-startStop-
1])
* INFO  2018-04-09 12:01:18,583 'system-process' create 
org.hisp.dhis.scheduling.JobConfiguration, name: Data synchronization, uid: 
Y5Jff0sMAbP (AuditLogUtil.java [localhost-startStop-1])
* ERROR 2018-04-09 12:01:18,603 Could not map job type '[analyticsAllTask, 
monitoringLastDayTask, da
taSynchTask, metadataSyncTask]' with cron '0 0 0 * * ?' (SchedulerUpgrade.java 
[localhost-startStop-1])
* ERROR 2018-04-09 12:01:18,603 Could not map job type '[analyticsAllTask, 
monitoringLastDayTask, dataSynchTask, metadataSyncTask]' with cron '0 0 0 * * 
?' (SchedulerUpgrade.java [localhost-startStop-1])
* ERROR 2018-04-09 12:01:18,603 Could not map job type '[analyticsAllTask, 
monitoringLastDayTask, dataSynchTask, metadataSyncTask]' with cron '0 0 0 * * 
?' (SchedulerUpgrade.java [localhost-startStop-1])
* ERROR 2018-04-09 12:01:18,613 Could not map job type '[analyticsAllTask, 
monitoringLastDayTask, dataSynchTask, metadataSyncTask]' with cron '0 0 0 * * 
?' (SchedulerUpgrade.java [localhost-startStop-1])
* ERROR 2018-04-09 12:01:18,613 Could not map job type '[analyticsAllTask, 
monitoringLastDayTask, dataSynchTask, metadataSyncTask]' with cron '0 0 0 * * 
?' (SchedulerUpgrade.java [localhost-startStop-1])
* ERROR 2018-04-09 12:01:18,613 Could not map job type '[analyticsAllTask, 
monitoringLastDayTask, dataSynchTask, metadataSyncTask]' with cron '0 0 0 * * 
?' (SchedulerUpgrade.java [localhost-startStop-1])
* INFO  2018-04-09 12:01:18,613 'system-process' create 
org.hisp.dhis.scheduling.JobConfiguration, name: Metadata sync, uid: 
PoFQxtHy0Y1 (AuditLogUtil.java [localhost-startStop-1])
* ERROR 2018-04-09 12:01:18,643 Could not map job type '[resourceTableTask]' 
with cron '0 0 23 * * ?
' (SchedulerUpgrade.java [localhost-startStop-1])
* ERROR 2018-04-09 12:01:18,643 Could not map job type '[resourceTableTask]' 
with cron '0 0 23 * * ?
' (SchedulerUpgrade.java [localhost-startStop-1])
* ERROR 2018-04-09 12:01:18,643 Could not map job type '[resourceTableTask]' 
with cron '0 0 23 * * ?
' (SchedulerUpgrade.java [localhost-startStop-1])
* ERROR 2018-04-09 12:01:18,643 Could not map job 

Re: [Dhis2-users] [Dhis2-devs] update from dhis2 2.28 to 2.29 error

2018-04-09 Thread Henning Håkonsen
Hi,

Are you able to supply me the 2.28 database dump? If so, I will check what 
fails and try to fix it.

Regards,
Henning Håkonsen
henn...@dhis2.org




> On 9 Apr 2018, at 06:14, 林晓东  wrote:
> 
> 
> hi,all
> 
>   when I upgrade from dhis2 2.28 to 2.29 I got error as fellowing:
>all I done:  dump from 2.28 db ,restore to a new db, execute the script: 
> https://github.com/dhis2/dhis2-utils/blob/master/resources/sql/upgrade-229.sql
>  
> 
> then start, got  error : 
> --console:--
> * INFO  2018-04-09 12:01:18,383 Executing startup routine [7 of 18, runlevel 
> 5]: SchedulerUpgrade (DefaultStartupRoutineExecutor.java 
> [localhost-startStop-1])
> * INFO  2018-04-09 12:01:18,393 Porting old jobs (SchedulerUpgrade.java 
> [localhost-startStop-1])
> * ERROR 2018-04-09 12:01:18,473 Could not map job type 
> '[scheduledProgramNotificationsTask]' with cron '0 0 5 * * ?' 
> (SchedulerUpgrade.java [localhost-startStop-1])
> * ERROR 2018-04-09 12:01:18,473 Could not map job type 
> '[scheduledProgramNotificationsTask]' with cron '0 0 5 * * ?' 
> (SchedulerUpgrade.java [localhost-startStop-1])
> * INFO  2018-04-09 12:01:18,473 'system-process' create 
> org.hisp.dhis.scheduling.JobConfiguration, name: Scheduled program 
> notifications, uid: vaX5VXYvoro (AuditLogUtil.java [localhost-startStop-1])
> * INFO  2018-04-09 12:01:18,513 'system-process' create 
> org.hisp.dhis.scheduling.JobConfiguration, name: Analytics, uid: AeAgqSz6Vci 
> (AuditLogUtil.java [localhost-startStop-1])
> * ERROR 2018-04-09 12:01:18,543 Could not map job type '[analyticsAllTask, 
> monitoringLastDayTask, dataSynchTask, metadataSyncTask]' with cron '0 0 0 * * 
> ?' (SchedulerUpgrade.java [localhost-startStop-1])
> * ERROR 2018-04-09 12:01:18,553 Could not map job type '[analyticsAllTask, 
> monitoringLastDayTask, dataSynchTask, metadataSyncTask]' with cron '0 0 0 * * 
> ?' (SchedulerUpgrade.java [localhost-startStop-
> 1])
> * ERROR 2018-04-09 12:01:18,553 Could not map job type '[analyticsAllTask, 
> monitoringLastDayTask, dataSynchTask, metadataSyncTask]' with cron '0 0 0 * * 
> ?' (SchedulerUpgrade.java [localhost-startStop-
> 1])
> * ERROR 2018-04-09 12:01:18,553 Could not map job type '[analyticsAllTask, 
> monitoringLastDayTask, dataSynchTask, metadataSyncTask]' with cron '0 0 0 * * 
> ?' (SchedulerUpgrade.java [localhost-startStop-
> 1])
> * INFO  2018-04-09 12:01:18,553 'system-process' create 
> org.hisp.dhis.scheduling.JobConfiguration, name: Monitoring, uid: d72z7q0iyd8 
> (AuditLogUtil.java [localhost-startStop-1])
> * ERROR 2018-04-09 12:01:18,583 Could not map job type '[analyticsAllTask, 
> monitoringLastDayTask, dataSynchTask, metadataSyncTask]' with cron '0 0 0 * * 
> ?' (SchedulerUpgrade.java [localhost-startStop-
> 1])
> * INFO  2018-04-09 12:01:18,583 'system-process' create 
> org.hisp.dhis.scheduling.JobConfiguration, name: Data synchronization, uid: 
> Y5Jff0sMAbP (AuditLogUtil.java [localhost-startStop-1])
> * ERROR 2018-04-09 12:01:18,603 Could not map job type '[analyticsAllTask, 
> monitoringLastDayTask, da
> taSynchTask, metadataSyncTask]' with cron '0 0 0 * * ?' 
> (SchedulerUpgrade.java [localhost-startStop-1])
> * ERROR 2018-04-09 12:01:18,603 Could not map job type '[analyticsAllTask, 
> monitoringLastDayTask, dataSynchTask, metadataSyncTask]' with cron '0 0 0 * * 
> ?' (SchedulerUpgrade.java [localhost-startStop-1])
> * ERROR 2018-04-09 12:01:18,603 Could not map job type '[analyticsAllTask, 
> monitoringLastDayTask, dataSynchTask, metadataSyncTask]' with cron '0 0 0 * * 
> ?' (SchedulerUpgrade.java [localhost-startStop-1])
> * ERROR 2018-04-09 12:01:18,613 Could not map job type '[analyticsAllTask, 
> monitoringLastDayTask, dataSynchTask, metadataSyncTask]' with cron '0 0 0 * * 
> ?' (SchedulerUpgrade.java [localhost-startStop-1])
> * ERROR 2018-04-09 12:01:18,613 Could not map job type '[analyticsAllTask, 
> monitoringLastDayTask, dataSynchTask, metadataSyncTask]' with cron '0 0 0 * * 
> ?' (SchedulerUpgrade.java [localhost-startStop-1])
> * ERROR 2018-04-09 12:01:18,613 Could not map job type '[analyticsAllTask, 
> monitoringLastDayTask, dataSynchTask, metadataSyncTask]' with cron '0 0 0 * * 
> ?' (SchedulerUpgrade.java [localhost-startStop-1])
> * INFO  2018-04-09 12:01:18,613 'system-process' create 
> org.hisp.dhis.scheduling.JobConfiguration, name: Metadata sync, uid: 
> PoFQxtHy0Y1 (AuditLogUtil.java [localhost-startStop-1])
> * ERROR 2018-04-09 12:01:18,643 Could not map job type '[resourceTableTask]' 
> with cron '0 0 23 * * ?
> ' (SchedulerUpgrade.java [localhost-startStop-1])
> * ERROR 2018-04-09 12:01:18,643 Could not map job type '[resourceTableTask]' 
> with cron '0 0 23 * * ?
> ' (SchedulerUpgrade.java [localhost-startStop-1])
> * ERROR 2018-04-09 12:01:18,643 Could not map job type '[resourceTableTask]' 
> with cron '0 0 23 * * ?
> ' (SchedulerUpgrade.java 

[Dhis2-users] 2.28 - Invalid reference [GROUPID] (UserGroup) on object chartName [CHARTID] (Chart) for association `userGroupAccesses`

2018-04-09 Thread Ramón José Jiménez Pomareta
Hello,

I've upgraded to version 28 and I am facing to this error:

When a user wants to save a chart, he gets the 409 conflict error. When
regarding on the console I found the following error:

   1. errorCode:"E5002"
   2. mainKlass:"org.hisp.dhis.chart.Chart"
   3. message:"Invalid reference [GROUPID] (UserGroup) on object chartName
   [CHARTID] (Chart) for association `userGroupAccesses`."

The user has all the authorities except the ALL authority.
The dashboard and its items are shared with the userGroup.
The user is member on the userGroup.

The server log says however, the updated was done

* INFO  2018-04-09 10:25:03,466 (username) Import:Start
(DefaultMetadataImportService.java [ajp-bio-8010-exec-13])
* INFO  2018-04-09 10:25:03,550 ( username ) Import:Preheat[REFERENCE] took
0.08 seconds (DefaultPreheatService.java [ajp-bio-8010-exec-13])
* INFO  2018-04-09 10:25:03,579 ( username ) Import:Validation took 0.00
seconds (DefaultObjectBundleValidationService.java [ajp-bio-8010-exec-13])
* INFO  2018-04-09 10:25:03,579 ( username ) Import:Done took 0.11 seconds
(DefaultMetadataImportService.java [ajp-bio-8010-exec-13])



Do you have any idea/suggestion ?

Thank you so much !
Ramón Jiménez Pomareta
___
Mailing list: https://launchpad.net/~dhis2-users
Post to : dhis2-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-users
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-users] Fw:import error

2018-04-09 Thread 林晓东
still not working from 2.28 to 2.29:


* WARN  2018-04-09 15:36:37,931 HHH000437: Attempting to save one or more 
entities that have a non-nullable association with an unsaved transient entity. 
The unsaved
 transient entity must be saved in an operation prior to saving these dependent 
entities.
Unsaved transient entity: ([org.hisp.dhis.attribute.Attribute#0])
Dependent entities: ([[org.hisp.dhis.attribute.AttributeValue#72]])
Non-nullable association(s): 
([org.hisp.dhis.attribute.AttributeValue.attribute]) 
(UnresolvedEntityInsertActions.java [taskScheduler-4])
* ERROR 2018-04-09 15:36:37,945 Unexpected error occurred in scheduled task. 
(TaskUtils.java [taskScheduler-4])
org.hibernate.TransientPropertyValueException: Not-null property references a 
transient value - transient instance must be saved before current operation : 
org.hisp.
dhis.attribute.AttributeValue.attribute -> org.hisp.dhis.attribute.Attribute
at 
org.hibernate.action.internal.UnresolvedEntityInsertActions.checkNoUnresolvedActionsAfterOperation(UnresolvedEntityInsertActions.java:122)
at 
org.hibernate.engine.spi.ActionQueue.checkNoUnresolvedActionsAfterOperation(ActionQueue.java:421)
at 
org.hibernate.internal.SessionImpl.checkNoUnresolvedActionsAfterOperation(SessionImpl.java:630)
at org.hibernate.internal.SessionImpl.fireSave(SessionImpl.java:693)
at org.hibernate.internal.SessionImpl.save(SessionImpl.java:683)
at org.hibernate.internal.SessionImpl.save(SessionImpl.java:678)
at 
org.hisp.dhis.dxf2.metadata.objectbundle.hooks.IdentifiableObjectBundleHook.handleAttributeValues(IdentifiableObjectBundleHook.java:97)
at 
org.hisp.dhis.dxf2.metadata.objectbundle.hooks.IdentifiableObjectBundleHook.preCreate(IdentifiableObjectBundleHook.java:55)
at 
org.hisp.dhis.dxf2.metadata.objectbundle.DefaultObjectBundleService.lambda$null$179(DefaultObjectBundleService.java:239)
at java.util.ArrayList.forEach(ArrayList.java:1249)
at 
org.hisp.dhis.dxf2.metadata.objectbundle.DefaultObjectBundleService.lambda$handleCreates$180(DefaultObjectBundleService.java:238)
at java.util.ArrayList.forEach(ArrayList.java:1249)
at 
org.hisp.dhis.dxf2.metadata.objectbundle.DefaultObjectBundleService.handleCreates(DefaultObjectBundleService.java:238)
at 
org.hisp.dhis.dxf2.metadata.objectbundle.DefaultObjectBundleService.commit(DefaultObjectBundleService.java:180)
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:333)
at 
org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)
at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
at 
org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:99)
at 
org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:282)





--

此致

   林晓东

莫愁前路无知己,天下谁人不识君。

At 2018-03-04 18:59:32, "gerald thomas"  wrote:

Lin,

I see no way this will working. Why not export and import to the same versions. 
Once everything is OK you can now upgrade to higher version. But it looks like 
resource issue



On Sun, Mar 4, 2018 at 8:19 AM, 林晓东  wrote:

hi,sir,


   I can't import organization exported from other DHIS2 instances. DHIS2 is   
from github ,version  2.8. build, fresh install.
 
Thanks.
 got error on console: 


* ERROR 2018-03-04 14:26:09,597 Unexpected error occurred in scheduled task. 
(TaskUtils.java [taskSc
heduler-5])
java.lang.IllegalStateException: org.hibernate.TransientObjectException: object 
references an unsave
d transient instance - save the transient instance beforeQuery flushing: 
org.hisp.dhis.organisationu
nit.OrganisationUnit
at 
org.hibernate.internal.ExceptionConverterImpl.convert(ExceptionConverterImpl.java:144)
at 
org.hibernate.internal.ExceptionConverterImpl.convert(ExceptionConverterImpl.java:155)
at 
org.hibernate.internal.ExceptionConverterImpl.convert(ExceptionConverterImpl.java:162)
at org.hibernate.internal.SessionImpl.doFlush(SessionImpl.java:1441)
at org.hibernate.internal.SessionImpl.flush(SessionImpl.java:1421)
at 
org.hisp.dhis.dbms.HibernateDbmsManager.clearSession(HibernateDbmsManager.java:339)
at 
org.hisp.dhis.dxf2.metadata.objectbundle.DefaultObjectBundleService.commit(DefaultObjectB
undleService.java:206)
at