← Back to team overview

dhis2-devs team mailing list archive

Re: Metadata import from 2.18 to 2.23

 

Dear Morten,
Thank you for your quick reply on my query. This is very helpful.
Lungo


      From: Morten Olav Hansen <morten@xxxxxxxxx>
 To: Juma Lungo <jlungo@xxxxxxxxx> 
Cc: dhis2-devs <dhis2-devs@xxxxxxxxxxxxxxxxxxx>
 Sent: Thursday, June 16, 2016 4:58 AM
 Subject: Re: [Dhis2-devs] Metadata import from 2.18 to 2.23
   
Hi Juma
>From 2.18 to 2.23 there have been quite a large number of changes. For your exact issue, it is related to the fact that organisation unit feature type was changed from a simple string, to a set of pre-defined constants.
In the particular case you have here, you need to change `Polygon` to `POLYGON`, but if you are importing a large payload of metadata, you will probably see lots of other issues.
-- Morten Olav HansenSenior Engineer, DHIS 2University of Oslohttp://www.dhis2.org
On Thu, Jun 16, 2016 at 12:28 AM, Juma Lungo <jlungo@xxxxxxxxx> wrote:

Hi
Please advise how can I export metadata from 2.18 and import to 2.23. The error i get is:
Caused by: com.fasterxml.jackson.databind.exc.InvalidFormatException: Can not construct instance of org.hisp.dhis.organisationunit.FeatureType from String value 'Polygon': value not one of declared Enum instance names: [SYMBOL, POLYGON, MULTI_POLYGON, NONE, POINT]
 at [Source: java.util.zip.ZipInputStream@29899aa7; line: 1, column: 1062] (through reference chain: org.hisp.dhis.dxf2.metadata.Metadata["organisationUnits"]->java.util.ArrayList[1]->org.hisp.dhis.organisationunit.OrganisationUnit["featureType"])


_______________________________________________
Mailing list: https://launchpad.net/~dhis2-devs
Post to     : dhis2-devs@xxxxxxxxxxxxxxxxxxx
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp





  

References