← Back to team overview

dhis2-users team mailing list archive

Re: DXF 2 xml Metadata import fails with error Current event not START_ELEMENT.

 

Hi,

I just want to ask whether there is a problem with the current release of the DHIS2.13 live. Although the Service Unavailable challenge has been fixed but it never imports meta-data....rather it says 


Display import summary 
2013-12-09 09:38:16 Process failed: Failed to move to start element   

And then on some other occasions, it gives the same error as Current event not START......,
 
BlackBerry: 3114F90C
Phone: 08028851441, 08035560463
emails: deemoyes@xxxxxxxxx, addyraph@xxxxxxxxx
Yahoo IM: deemoyes
Facebook: pharael
twitter:pharaell



On Monday, December 9, 2013 9:49 AM, Knut Staring <knutst@xxxxxxxxx> wrote:
 
As you said, you used "XML Data Import", whereas you should have used "Meta-Data Import"




On Mon, Dec 9, 2013 at 9:35 AM, Morten Olav Hansen <mortenoh@xxxxxxxxx> wrote:

Hi Emmanuel,
>
>
>Are you importing meta-data or data-values? It seems from the subject that you are importing meta-data, but from the error message it seems you are trying to import data-values.
>
>
>If you did use meta-data export, are you sure you are using meta-data import, and not data import?
>
>
>--
>Morten
>
>
>On Mon, Dec 9, 2013 at 7:47 AM, Emmanuel Kaunda <ekmanukaka5@xxxxxxxxx> wrote:
>
>
>>I am trying to import a zipped DXF 2 
metadata approximately 10 MB 
in size.I am using dhis 2.13 stable war file and postgreSQL database. 
After creating the database and setting up the DHIS2_HOME enviroment 
varible, i am able to login succesfully into my locally hosted dhis2. 
However, wen i try to import the data by going to Services > 
Import-Export > XML Data Import , then choose the metadata zipped 
file, set dry run to NO then for the strategy i select New and updates 
option, i am getting the following exception:   Current event not 
START_ELEMENT.Is there anywhere am going wrong in the importing process?
>>
>>* INFO 2013-12-05 12:40:30,959 [data element id scheme: UID, org unit id scheme: UID, dry run: false, async: false, strategy: 
NEW_AND_UPDATES, skip check: false] (ImportDataValueAction.java [http-bio-8080-exec-41])
>>* INFO 2013-12-05 12:40:40,537 [Level: INFO, category: DATAVALUE_IMPORT,
 time: Thu Dec 05 12:40:40 EAT 2013, message: Process started] 
(InMemoryNotifier.java [taskScheduler-1])
>>* ERROR 2013-12-05 12:40:40,603 java.lang.IllegalStateException: Current event not START_ELEMENT
>>at com.ctc.wstx.sr.BasicStreamReader.getAttributeValue(BasicStreamReader.java:624)
>>at org.amplecode.staxwax.reader.DefaultXMLStreamReader.getAttributeValue(DefaultXMLStreamReader.java:220)
>>at org.hisp.dhis.dxf2.datavalueset.StreamingDataValueSet.getDataElementIdScheme(StreamingDataValueSet.java:86)
>>at org.hisp.dhis.dxf2.datavalueset.DefaultDataValueSetService.saveDataValueSet(DefaultDataValueSetService.java:269)
>>at org.hisp.dhis.dxf2.datavalueset.DefaultDataValueSetService.saveDataValueSet(DefaultDataValueSetService.java:205)
>>at org.hisp.dhis.importexport.action.util.ImportDataValueTask.run(ImportDataValueTask.java:86)
>>at org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:53)
>>at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>>at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
>>at java.util.concurrent.FutureTask.run(FutureTask.java:166)
>>at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178)
>>at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292)
>>at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
>>at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
>>at java.lang.Thread.run(Thread.java:722)
>>(DefaultDataValueSetService.java [taskScheduler-1])
>>* INFO 2013-12-05 12:40:40,604 [Level: ERROR, category: 
DATAVALUE_IMPORT, time: Thu Dec 05 12:40:40 EAT 2013, message: Process 
failed: Current event not START_ELEMENT] (InMemoryNotifier.java [taskScheduler-1])
>>
>>
>>
>>Regards,
>>
>>Emmanuel Kaunda,
>>Software developer.
>>
>>
>>
>>
>>_______________________________________________
>>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
>
>


-- 

Knut Staring
Dept. of Informatics, University of Oslo
+4791880522
http://dhis2.org

_______________________________________________
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

Follow ups

References