[Dhis2-users] Meta-Export from 2.19 to 2.24

2016-07-29 Thread Moses Marimo
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

Re: [Dhis2-users] Meta-Export from 2.19 to 2.24

2016-07-30 Thread Knut Staring
You are not saying which problem you have On 30 Jul 2016 13:28, "Moses Marimo" 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

Re: [Dhis2-users] Meta-Export from 2.19 to 2.24

2016-07-30 Thread Knut Staring
You could use node to run it locally: https://github.com/zaach/jsonlint On 30 Jul 2016 13:28, "Moses Marimo" 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 c

Re: [Dhis2-users] Meta-Export from 2.19 to 2.24

2016-07-30 Thread Knut Staring
Right link: https://www.npmjs.com/package/json-lint On 30 Jul 2016 14:46, "Knut Staring" wrote: > You could use node to run it locally: > https://github.com/zaach/jsonlint > > On 30 Jul 2016 13:28, "Moses Marimo" wrote: > >> I am trying to import meta-data of a 2.19 deployment to a clean 2.24

Re: [Dhis2-users] Meta-Export from 2.19 to 2.24

2016-07-30 Thread Knut Staring
Other https://www.quora.com/What-are-some-good-offline-JSON-validators On 30 Jul 2016 14:48, "Knut Staring" wrote: > Right link: > https://www.npmjs.com/package/json-lint > > On 30 Jul 2016 14:46, "Knut Staring" wrote: > >> You could use node to run it locally: >> https://github.com/zaach/json

Re: [Dhis2-users] Meta-Export from 2.19 to 2.24

2016-07-30 Thread Morten Olav Hansen
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 downloa

Re: [Dhis2-users] Meta-Export from 2.19 to 2.24

2016-07-30 Thread Moses Marimo
Apologies, the problem is that my meta-data JSON export from 2.19 can not be imported to 2.24. I installed the jsonlint npm package and can now validate on the command line. The JSON file is ok. However, there is an error in the tomcat logs which indicate that Enum instance names is expecting capi

Re: [Dhis2-users] Meta-Export from 2.19 to 2.24

2016-07-30 Thread Moses Marimo
Thanks Morten, let me try that, have been up all night! On Sat, Jul 30, 2016 at 11:08 AM, Morten Olav Hansen 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

Re: [Dhis2-users] Meta-Export from 2.19 to 2.24

2016-07-30 Thread Morten Olav Hansen
* 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

Re: [Dhis2-users] Meta-Export from 2.19 to 2.24

2016-07-30 Thread Moses Marimo
Thanks, doing version by version now. short-cuts do not always work! On Sat, Jul 30, 2016 at 11:15 AM, Morten Olav Hansen 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