← Back to team overview

dhis2-users team mailing list archive

Re: Meta-Export from 2.19 to 2.24

 

Thanks, doing version by version now. short-cuts do not always work!


On Sat, Jul 30, 2016 at 11:15 AM, Morten Olav Hansen <morten@xxxxxxxxx>
wrote:

> * ERROR 2016-07-30 10:58:33,392
> com.fasterxml.jackson.databind.exc.InvalidFormatException: Can not
> construct instance of org.hisp.dhis.validation.RuleType from String value
> 'validation': value not one of declared Enum instance names: [VALIDATION,
> SURVEILLANCE]
>
> Yeah, so this is the issue.. in 2.20 we changed all of our constants to
> enums, so number became NUMBER, validation became VALIDATION etc.. it's a
> huge task to fix this manually in the metadata payload, so I would suggest
> upgrading version by version..
>
> You might also be interested in reading the upgrade notes:
> https://www.dhis2.org/220-upgrade
> https://www.dhis2.org/221-upgrade
> https://www.dhis2.org/222-upgrade
> https://www.dhis2.org/223-upgrade
> https://www.dhis2.org/224-upgrade
>
> --
> Morten Olav Hansen
> Senior Engineer, DHIS 2
> University of Oslo
> http://www.dhis2.org
>
> On Sat, Jul 30, 2016 at 11:12 AM, Moses Marimo <marimo@xxxxxxxxx> wrote:
>
>> Thanks Morten, let me try that, have been up all night!
>>
>>
>>
>> On Sat, Jul 30, 2016 at 11:08 AM, Morten Olav Hansen <morten@xxxxxxxxx>
>> wrote:
>>
>>> Hi
>>>
>>> Export from a 2.19 instance into a 2.24 will probably not work, as there
>>> have been too many changes to the metadata (especially around 2.20).
>>>
>>> You might have better luck doing it version by version, and let DHIS 2
>>> upgrade itself
>>>
>>> If you are doing it on a remote instance, I would suggest downloading
>>> 2.19, import the metadata there.. then go 2.20, 2.21, etc, it's probably a
>>> safer options
>>>
>>> --
>>> Morten Olav Hansen
>>> Senior Engineer, DHIS 2
>>> University of Oslo
>>> http://www.dhis2.org
>>>
>>> On Sat, Jul 30, 2016 at 10:23 AM, Knut Staring <knutst@xxxxxxxxx> wrote:
>>>
>>>> Other https://www.quora.com/What-are-some-good-offline-JSON-validators
>>>>
>>>> On 30 Jul 2016 14:48, "Knut Staring" <knutst@xxxxxxxxx> wrote:
>>>>
>>>>> Right link:
>>>>> https://www.npmjs.com/package/json-lint
>>>>>
>>>>> On 30 Jul 2016 14:46, "Knut Staring" <knutst@xxxxxxxxx> wrote:
>>>>>
>>>>>> You could use node to run it  locally:
>>>>>> https://github.com/zaach/jsonlint
>>>>>>
>>>>>> On 30 Jul 2016 13:28, "Moses Marimo" <marimo@xxxxxxxxx> wrote:
>>>>>>
>>>>>>> I am trying to import meta-data of a 2.19 deployment to a clean 2.24
>>>>>>> deployment. I have a problem and I suspect there could be a problem with
>>>>>>> the JSON data. Its 15MB and I can not find any online JSON validator. Any
>>>>>>> idea how I can validate my big JSON file? Or does any one know a better way
>>>>>>> around 2.19 to 2.24 imports
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> ICT Warehouse (Pvt) Ltd - "The Stockist of *e*-nnovation"
>>>>>>> 7 Chelmsford Belgravia, Harare
>>>>>>> Tel: +263-8644-102349
>>>>>>> Cell: +263-772-268353
>>>>>>> Website: *www.ict.co.zw <http://www.ict.co.zw>*
>>>>>>>
>>>>>>>
>>>>>>> Innovative solutions in Web Design and E-Commerce, Software
>>>>>>> Engineering, Mobile and Bulk SMS Solutions, Graphic Design and Printing,
>>>>>>> General ICT Solutions and Consultancy.
>>>>>>>
>>>>>>> _______________________________________________
>>>>>>> Mailing list: https://launchpad.net/~dhis2-users
>>>>>>> Post to     : dhis2-users@xxxxxxxxxxxxxxxxxxx
>>>>>>> Unsubscribe : https://launchpad.net/~dhis2-users
>>>>>>> More help   : https://help.launchpad.net/ListHelp
>>>>>>>
>>>>>>>
>>>> _______________________________________________
>>>> Mailing list: https://launchpad.net/~dhis2-users
>>>> Post to     : dhis2-users@xxxxxxxxxxxxxxxxxxx
>>>> Unsubscribe : https://launchpad.net/~dhis2-users
>>>> More help   : https://help.launchpad.net/ListHelp
>>>>
>>>>
>>>
>>
>>
>> --
>> ICT Warehouse (Pvt) Ltd - "The Stockist of *e*-nnovation"
>> 7 Chelmsford Belgravia, Harare
>> Tel: +263-8644-102349
>> Cell: +263-772-268353
>> Website: *www.ict.co.zw <http://www.ict.co.zw>*
>>
>>
>> Innovative solutions in Web Design and E-Commerce, Software Engineering,
>> Mobile and Bulk SMS Solutions, Graphic Design and Printing, General ICT
>> Solutions and Consultancy.
>>
>
>


-- 
ICT Warehouse (Pvt) Ltd - "The Stockist of *e*-nnovation"
7 Chelmsford Belgravia, Harare
Tel: +263-8644-102349
Cell: +263-772-268353
Website: *www.ict.co.zw <http://www.ict.co.zw>*


Innovative solutions in Web Design and E-Commerce, Software Engineering,
Mobile and Bulk SMS Solutions, Graphic Design and Printing, General ICT
Solutions and Consultancy.

References