When creating a SWAT+ Editor Project imported from QSWAT+, the following errors are returned depending on these conditions.
1. When Channel threshold and Stream threshold are set low in Delineate Watershed
2. When setting the Percent of subbasin value of short channel merge low in Create HRUs
# Error comments ----------------------------
There was an error importing your GIS data.
If you do not know the cause of the error, please copy and paste the log below into the SWAT+ Editor user group. Please include your project database and any other relevant files.
Traceback (most recent call last):
File "peewee.py", line 3160, in execute_sql
sqlite3.IntegrityError: UNIQUE constraint failed:
plant_ini.nameDuring handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "actions\import_gis.py", line 135, in insert_default
File "actions\import_gis.py", line 908, in insert_hrus
File "actions\import_gis.py", line 786, in insert_landuse
File "peewee.py", line 6393, in create
File "peewee.py", line 6603, in save
File "peewee.py", line 1911, in inner
File "peewee.py", line 1982, in execute
File "peewee.py", line 2761, in _execute
File "peewee.py", line 2479, in _execute
File "peewee.py", line 3173, in execute
File "peewee.py", line 3157, in execute_sql
File "peewee.py", line 2933, in __exit__
File "peewee.py", line 191, in reraise
File "peewee.py", line 3160, in execute_sql
peewee.IntegrityError: UNIQUE constraint failed:
plant_ini.name# -----------------------------------------------------------------------------
I'm trying to attach a project with an error (Imsil_Singi_prj0) and a project without an error (Imsil_Singi_prj1) ... However, the file size exceeds the allowable range (24Mb) and could not be attached.