Problems that occur when importing watershed information from qswat+ to swat+editor

38 views
Skip to first unread message

최순군

unread,
Feb 17, 2023, 11:28:10 PM2/17/23
to SWAT+ Editor
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.name

During 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.

 

Jaclyn Tech

unread,
Feb 21, 2023, 9:53:53 AM2/21/23
to SWAT+ Editor
It kind of looks like something in your project database got corrupted. Can you check your Database Backups folder? Make a copy of this project database first, then replace it with the oldest sqlite from the backup folder and try again.

Soonkun Choi

unread,
Feb 22, 2023, 12:32:08 PM2/22/23
to SWAT+ Editor
I have resolved the issue I inquired about. It was a simple problem - I had written the land use code incorrectly. Thank you for your response. :)

2023년 2월 21일 화요일 오전 8시 53분 53초 UTC-6에 jaclyn...@tamu.edu님이 작성:
Reply all
Reply to author
Forward
0 new messages