dhis2-users team mailing list archive
-
dhis2-users team
-
Mailing list archive
-
Message #16467
Re: [Dhis2-devs] Metadata Import not Working for 2.29
Yes, if you look at the error message it says
java.lang.IllegalArgumentException: No enum constant
org.hisp.dhis.common.ValueType.Sum
So there is something wrong in the metadata you sent...
--
Morten Olav Hansen
Senior Engineer, DHIS 2
Team Integration Lead
University of Oslo
http://www.dhis2.org
On Sat, Sep 22, 2018 at 3:43 PM Ifeanyi Okoye <ifeanyiokoye@xxxxxxxxx>
wrote:
> Hi Morten,
> Was this response for me? I didn’t mention anything about a value type.
> We were trying to do a metadata import.
>
>
> Regards,
>
> Ifeanyi
>
> On Saturday, September 22, 2018, 07:55, Morten Olav Hansen <
> morten@xxxxxxxxx> wrote:
>
> Hi
>
> There is no ValueType called SUM, maybe you are thinking about
> AggregationType column?
>
> --
> Morten Olav Hansen
> Senior Engineer, DHIS 2
> Team Integration Lead
> University of Oslo
> http://www.dhis2.org
>
>
> On Fri, Sep 21, 2018 at 11:59 PM Ifeanyi Okoye <ifeanyiokoye@xxxxxxxxx>
> wrote:
>
> Dear All,
>
> We are DHIS 2.29 Build revision: 1797422
>
> We tried to do some metadata import using CSV for data elements and it
> would not run. There is no error or activity on the console but in the logs
> this is what we see
>
> * ERROR 2018-09-21 08:03:50,012 Unexpected error occurred in scheduled
> task. (TaskUtils.java [taskScheduler-23])
> java.lang.IllegalArgumentException: No enum constant
> org.hisp.dhis.common.ValueType.Sum
> at java.lang.Enum.valueOf(Enum.java:238)
> at org.hisp.dhis.common.ValueType.valueOf(ValueType.java:46)
> at
> org.hisp.dhis.dxf2.csv.DefaultCsvImportService.dataElementsFromCsv(DefaultCsvImportService.java:321)
> at
> org.hisp.dhis.dxf2.csv.DefaultCsvImportService.fromCsv(DefaultCsvImportService.java:115)
> at
> org.hisp.dhis.importexport.action.util.ImportMetaDataCsvTask.call(ImportMetaDataCsvTask.java:87)
> at
> org.hisp.dhis.security.SecurityContextRunnable.run(SecurityContextRunnable.java:57)
> at
> org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:54)
> at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
> at java.util.concurrent.FutureTask.run(FutureTask.java:266)
> at
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
> at
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
> at java.lang.Thread.run(Thread.java:745)
>
> Can anybody help out with this?
>
> Thank you.
>
>
>
> Warm Regards,
>
> Ifeanyi
>
> Read DrMaestro's Blog
> www.ifeanyiokoye.com
> _______________________________________________
> 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