dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #51718
ver 2.29 , can't import metadata.
hi,all
I have a new installed 2.29 instance. got error when import metadata from other 2.29 instance.
---------------------
* WARN 2018-09-04 10:38:13,888 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#75]])
Non-nullable association(s): ([org.hisp.dhis.attribute.AttributeValue.attribute]) (UnresolvedEntityInsertActions.java [taskScheduler-23])
* ERROR 2018-09-04 10:38:13,898 Unexpected error occurred in scheduled task. (TaskUtils.java [taskScheduler-23])
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$20(DefaultObjectBundleService.java:239)
at java.util.ArrayList.forEach(ArrayList.java:1249)
at org.hisp.dhis.dxf2.metadata.objectbundle.DefaultObjectBundleService.lambda$handleCreates$21(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)
--
此致
林晓东
莫愁前路无知己,天下谁人不识君。
Follow ups