← Back to team overview

dhis2-devs team mailing list archive

[Bug 705349] Re: cannot-import-orgunitDXF-exportedbyDHIS2

 

This happened as you suggest since we have removed the uniquness
constraint on orgunit code in the api/database but had forgotten to
remove the check for matching codes during import. This should have been
fixed in R 2805 in trunk and merged into 2.0.6 branch.

** Changed in: dhis2
       Status: New => Fix Committed

** Changed in: dhis2
    Milestone: None => 2.1

** Changed in: dhis2
     Assignee: (unassigned) => Lars Helge Øverland (larshelge)

-- 
You received this bug notification because you are a member of DHIS 2
developers, which is subscribed to DHIS.
https://bugs.launchpad.net/bugs/705349

Title:
  cannot-import-orgunitDXF-exportedbyDHIS2

Status in DHIS 2 - District Health Information Software:
  Fix Committed

Bug description:
  Steps to reproduce. May be specific to my setup but would be good to
  test.

  1) Export Organisation units, Orgunit groups, orgunit group sets, orgunit levels. 
  2) Export as DXF. 
  3) Create blank DB. 
  4) Restart DHIS2 with newly created DB. 
  5) Import DXF. 
  6) Fail with 

  java.lang.RuntimeException: The object named 'ce Prisons Health Post' does not e
  xist
          at org.hisp.dhis.importexport.mapping.DefaultObjectMappingGenerator.veri
  fyIdentifier(DefaultObjectMappingGenerator.java:477)
          at org.hisp.dhis.importexport.mapping.DefaultObjectMappingGenerator.getM
  apping(DefaultObjectMappingGenerator.java:421)
          at org.hisp.dhis.importexport.mapping.DefaultObjectMappingGenerator.getO
  rganisationUnitMapping(DefaultObjectMappingGenerator.java:284)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
  java:39)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
  sorImpl.java:25)
          at java.lang.reflect.Method.invoke(Method.java:597)
          at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflecti
  on(AopUtils.java:309)
          at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynami
  cAopProxy.java:196)
          at $Proxy56.getOrganisationUnitMapping(Unknown Source)
          at org.hisp.dhis.importexport.dxf.converter.DXFConverter.read(DXFConvert
  er.java:805)
          at org.hisp.dhis.importexport.DefaultImportService.importData(DefaultImp
  ortService.java:181)
          at org.hisp.dhis.importexport.ImportInternalProcess.executeStatements(Im
  portInternalProcess.java:89)
          at org.hisp.dhis.system.process.AbstractStatementInternalProcess.execute
  (AbstractStatementInternalProcess.java:91)
          at org.hisp.dhis.system.process.AbstractStatementInternalProcess.execute
  (AbstractStatementInternalProcess.java:40)
          at org.amplecode.cave.process.ProcessExecutor.run(ProcessExecutor.java:1
  25)
          at java.lang.Thread.run(Thread.java:662)
  java.lang.RuntimeException: The object named 'ce Prisons Health Post' does not e
  xist
          at org.hisp.dhis.importexport.mapping.DefaultObjectMappingGenerator.veri
  fyIdentifier(DefaultObjectMappingGenerator.java:477)
          at org.hisp.dhis.importexport.mapping.DefaultObjectMappingGenerator.getM
  apping(DefaultObjectMappingGenerator.java:421)
          at org.hisp.dhis.importexport.mapping.DefaultObjectMappingGenerator.getO
  rganisationUnitMapping(DefaultObjectMappingGenerator.java:284)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
  java:39)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
  sorImpl.java:25)
          at java.lang.reflect.Method.invoke(Method.java:597)
          at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflecti
  on(AopUtils.java:309)
          at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynami
  cAopProxy.java:196)
          at $Proxy56.getOrganisationUnitMapping(Unknown Source)
          at org.hisp.dhis.importexport.dxf.converter.DXFConverter.read(DXFConvert
  er.java:805)
          at org.hisp.dhis.importexport.DefaultImportService.importData(DefaultImp
  ortService.java:181)
          at org.hisp.dhis.importexport.ImportInternalProcess.executeStatements(Im
  portInternalProcess.java:89)
          at org.hisp.dhis.system.process.AbstractStatementInternalProcess.execute
  (AbstractStatementInternalProcess.java:91)
          at org.hisp.dhis.system.process.AbstractStatementInternalProcess.execute
  (AbstractStatementInternalProcess.java:40)
          at org.amplecode.cave.process.ProcessExecutor.run(ProcessExecutor.java:1
  25)
          at java.lang.Thread.run(Thread.java:662)
  Jan 20, 2011 12:33:31 PM org.hibernate.stat.ConcurrentStatisticsImpl queryExecut
  ed
  INFO: HQL: null, time: 4ms, rows: 0
  Jan 20, 2011 12:33:31 PM org.hibernate.stat.ConcurrentStatisticsImpl queryExecut
  ed
  INFO: HQL: null, time: 3ms, rows: 0
  Jan 20, 2011 12:33:31 PM org.hibernate.stat.ConcurrentStatisticsImpl queryExecut
  ed





Follow ups

References