hello
I am inserting some data from CSV files with the csv2istsos.py script and
the file is formated on the same manner from beginning to end, and some data get into the istSOS BD and some other no
I dont understand the errors I got below
Insert observations failed - Communication: 200 local variable 'e' referenced before assignment
and
'ValueError: could not convert string to float:
maybe some data are wrong into the file, but I have none ideas where they could be?
how can I debug the problem?
many thanks
Maurice
</ExceptionReport>
Insert ST: Omega
> Begin: 2012-10-25T09:11:25+01:00
+ End: 2013-12-31T23:39:03.300000+00:00
> Values: 9860
> Insert observation success of 5000/9860
(2012-10-25T09:11:25.000000+0100 / 2013-06-12T14:59:06.000000+0100)
observations:
False
Insert observations failed - Communication: 200 local variable 'e'
referenced before assignment - Response: <?xml version="1.0"
encoding="UTF-8" standalone="no"?><ExceptionReport
xmlns=
"http://www.opengis.net/ows/1.1"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="
http://www.opengis.net/ows/1.1
../owsExceptionReport.xsd" version="1.0.0" xml:lang="en">
<Exception exceptionCode="NoApplicableCode">
<ExceptionText>
['Traceback (most recent call last):\n', ' File "/usr/share/istsos/application_istsoslib.py", line 94, in executeSos\n response = FR.sosFactoryResponse(req_filter, pgdb)\n', ' File "/usr/share/istsos/istsoslib/responders/factory_response.py", line 50, in sosFactoryResponse\n return IOresponse.InsertObservationResponse(sosFilter, pgdb)\n', ' File "/usr/share/istsos/istsoslib/responders/IOresponse.py", line 506, in __init__\n val = float(filter.data[par]["vals"][ii])\n', 'ValueError: could not convert string to float: \n']
</ExceptionText>
</Exception>
</ExceptionReport>
> Values: 16839
> Insert observation success of 5000/16839
(2012-10-25T09:11:25.000000+0100 / 2013-06-12T14:59:06.000000+0100)
observations: False
Insert observations failed - Communication: 200 local variable 'e'
referenced before assignment - Response: <?xml version="1.0"
encoding="UTF-8" standalone="no"?><ExceptionReport
xmlns="http://www.opengis.net/ows/1.1"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="
http://www.opengis.net/ows/1.1
../owsExceptionReport.xsd" version="1.0.0" xml:lang="en">
<Exception exceptionCode="NoApplicableCode">
<ExceptionText>
> Insert observation success of 15000/16839
(2014-01-06T20:17:35.000000+0100 / 2014-09-03T21:19:15.000000+0100)
observations: True
> Insert observation success of 16839/16839
(2014-09-03T21:19:15.000000+0100 / 2014-11-19T10:14:03+00:00)
observations: True