Demo Discussion
Forum Config Examples Contributions Vulnerabilities
  Discussion forum about ELOG  Not logged in ELOG logo
icon4.gif   Importing XML/CSV, posted by Barend on Tue Oct 8 18:14:20 2013 import.xml
    icon2.gif   Re: Importing XML/CSV, posted by Andreas Luedeke on Wed Oct 9 09:19:54 2013 
       icon2.gif   Re: Importing XML/CSV, posted by Barend on Sun Oct 13 16:32:05 2013 umowy.cfg
          icon3.gif   Re: Importing XML/CSV, posted by Andreas Luedeke on Wed Oct 16 16:53:55 2013 elogd.cfgimp.xml
             icon2.gif   Re: Importing XML/CSV, posted by Barend on Tue Oct 22 10:56:13 2013 
Message ID: 67571     Entry time: Tue Oct 8 18:14:20 2013     Reply to this: 67572
Icon: Warning  Author: Barend  Author Email: office@amtc2.com 
Category: Bug report  OS: Windows  ELOG Version: 2.9.2 
Subject: Importing XML/CSV 

Hi Stefan,

I'm experiencing problems importing XML (.csv is not working at all for me).

My logbook contains 3 date-attributes besides the system DATE (entry time), date-format is defined as %d %b %y.
The XML file hold the date format "DD.MM.YYYY"

- During "preview" I see that all entries are listed.

- During the import I get the "wrong date format" error.

- When I review the Summary, I see that only the first XML entry (all 3 date-attributes hold a date) was imported.

- When I try to re-import the XML from the second entry (after removing the 1st entry from XML - this second entry hold NO date-value on one of the date-attributes) the elogd.exe crashes and I get the "Service Temporarily Unavailable" error page.

- When I try to re-import the XML from the modified second entry (after removing the 1st entry from XML - this second entry holds date-value on all of the date-attributes) the elogd.exe crashes and I get the "Service Temporarily Unavailable" error page.

 

Any suggestion what could be wrong? Is it the missing date-value?

Attachment 1: import.xml  1 kB  | Hide | Hide all
<?xml version="1.0" encoding="ISO-8859-1"?>
<ELOG_LIST>
	<ENTRY>
		<MID>1</MID>
		<DATE>Mon  07 Oct 2013 11:41:42 +0200</DATE>
		<ENCODING>plain</ENCODING>
		<Data_dekretacji>01.10.2013</Data_dekretacji>
		<Numer_rejestru>XXX/2013/001</Numer_rejestru>
		<Numer_umowy>44/333/N/2012</Numer_umowy>
		<Nazwa_dokumentu>XXXXXXXXXXXXXXXX</Nazwa_dokumentu>
		<Przedmiot_umowy></Przedmiot_umowy>
		<Kontrahent>AAAAAAAA BBBBBBBBBB</Kontrahent>
		<Data_zawarcia>10.07.2012</Data_zawarcia>
		<Data_konca>10.07.2013</Data_konca>
		<Dzial></Dzial>
		<Status>Nieaktualna</Status>
		<Aneksy></Aneksy>
		<Opis></Opis>
		<Opis2></Opis2>
		<Opis3></Opis3>
	</ENTRY>
	<ENTRY>
		<MID>2</MID>
		<DATE>Mon  07 Oct 2013 11:41:42 +0200</DATE>
		<ENCODING>plain</ENCODING>
		<Data_dekretacji>01.10.2013</Data_dekretacji>
		<Numer_rejestru>XXX/2013/002</Numer_rejestru>
		<Numer_umowy>33/330/N/2012</Numer_umowy>
		<Nazwa_dokumentu>CCCCCC DDDDDDDD</Nazwa_dokumentu>
		<Przedmiot_umowy></Przedmiot_umowy>
		<Kontrahent>XXXXXXXXXXXXXX</Kontrahent>
		<Data_zawarcia>01.06.2012</Data_zawarcia>
		<Data_konca></Data_konca>
		<Dzial></Dzial>
		<Status>Aktualna</Status>
		<Aneksy></Aneksy>
		<Opis></Opis>
		<Opis2></Opis2>
		<Opis3></Opis3>
	</ENTRY>
</ELOG_LIST>
ELOG V3.1.5-fe60aaf