Hi,
I'm trying to import point source files by three ways and neither is working.
First, I tried to add a directory where I have all the files (e.g. pt001.csv) and I get this error:
Traceback (most recent call last):
File "swatplus_api.py", line 162, in <module>
File "actions\import_export_data.py", line 57, in import_recall
File "fileio\recall.py", line 57, in read_data
File "database\lib.py", line 13, in bulk_insert
File "peewee.py", line 2011, in inner
File "peewee.py", line 2082, in execute
File "peewee.py", line 2887, in _execute
File "peewee.py", line 2600, in _execute
File "peewee.py", line 3298, in execute
File "peewee.py", line 660, in sql
File "peewee.py", line 2872, in __sql__
File "peewee.py", line 2748, in _generate_insert
AttributeError: type object 'Recall_dat' has no attribute '"jday"'
[18244] Failed to execute script 'swatplus_api' due to unhandled exception!
Second, I tried to import the file one by one in each point source, but when I tryied, i get the same error:
Traceback (most recent call last):
File "swatplus_api.py", line 155, in <module>
File "actions\import_export_data.py", line 123, in import_csv
File "fileio\recall.py", line 57, in read_data
File "database\lib.py", line 13, in bulk_insert
File "peewee.py", line 2011, in inner
File "peewee.py", line 2082, in execute
File "peewee.py", line 2887, in _execute
File "peewee.py", line 2600, in _execute
File "peewee.py", line 3298, in execute
File "peewee.py", line 660, in sql
File "peewee.py", line 2872, in __sql__
File "peewee.py", line 2748, in _generate_insert
AttributeError: type object 'Recall_dat' has no attribute '"jday"'
[8616] Failed to execute script 'swatplus_api' due to unhandled exception!
Finally, I tried to create a new record and I get this error:
Unable to get table metadata from database. The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.
Please, does anyone know how can I import the files without having these errors? Thanks