Error in weather generator

11 views
Skip to first unread message

jeremiah alika (Jamal)

unread,
Nov 25, 2025, 10:47:18 AM (5 days ago) Nov 25
to SWAT+ Editor
Traceback (most recent call last):
  File "peewee.py", line 3291, in execute_sql
sqlite3.IntegrityError: NOT NULL constraint failed: weather_wgn_cli_mon.wet_dry

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "swatplus_api.py", line 113, in <module>
  File "actions\import_weather.py", line 603, in import_data
  File "actions\import_weather.py", line 619, in add_wgn_stations
  File "actions\import_weather.py", line 633, in add_wgn_stations_tf
  File "fileio\base.py", line 149, in read_csv_file
  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 3299, in execute
  File "peewee.py", line 3289, in execute_sql
  File "peewee.py", line 3059, in __exit__
  File "peewee.py", line 192, in reraise
  File "peewee.py", line 3291, in execute_sql
peewee.IntegrityError: NOT NULL constraint failed: weather_wgn_cli_mon.wet_dry
[14472] Failed to execute script 'swatplus_api' due to unhandled exception!

Nancy B. Sammons

unread,
Nov 25, 2025, 11:17:58 AM (5 days ago) Nov 25
to jeremiah alika (Jamal), SWAT+ Editor

It looks to be complaining about the word ‘null’ in the weather-wgn.cli file, which will cause an error.  Please review and ensure it is a reasonable numerical input and not ‘null’.

 

 

From: swatplu...@googlegroups.com <swatplu...@googlegroups.com> On Behalf Of jeremiah alika (Jamal)
Sent: Saturday, November 22, 2025 6:12 AM
To: SWAT+ Editor <swatplu...@googlegroups.com>
Subject: [SWAT+ Editor User Group] Error in weather generator

 

You don't often get email from alikaj...@gmail.com. Learn why this is important

--
You received this message because you are subscribed to the Google Groups "SWAT+ Editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email to swatplus-edit...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/swatplus-editor/c4eaef6b-9e72-4f46-b924-b42fa3f7eb70n%40googlegroups.com.

Reply all
Reply to author
Forward
0 new messages