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 Hansen
Senior Engineer, DHIS 2
University of Oslo
http://www.dhis2.org

On Thu, Jun 16, 2016 at 12:28 AM, Juma Lungo <jlu...@yahoo.com> 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@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

Reply via email to