please he said the problem was with the soil

5 views
Skip to first unread message

Muhammad Afdal

unread,
Sep 23, 2025, 10:52:08 AMSep 23
to SWAT+ Editor
Traceback (most recent call last):
  File "peewee.py", line 7253, in get
  File "peewee.py", line 4553, in __getitem__
IndexError: list index out of range

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "swatplus_api.py", line 122, in <module>
  File "actions\write_files.py", line 95, in write
  File "actions\write_files.py", line 477, in write_hru
  File "fileio\hru.py", line 41, in write
  File "peewee.py", line 4700, in __get__
  File "peewee.py", line 4691, in get_rel_instance
  File "peewee.py", line 6805, in get
  File "peewee.py", line 7256, in get
database.project.soils.Soils_solDoesNotExist: <Model: Soils_sol> instance matching query does not exist:
SQL: SELECT "t1"."id", "t1"."name", "t1"."hyd_grp", "t1"."dp_tot", "t1"."anion_excl", "t1"."perc_crk", "t1"."texture", "t1"."description" FROM "soils_sol" AS "t1" WHERE ("t1"."id" = ?) LIMIT ? OFFSET ?
Params: [9, 1, 0]
[28768] Failed to execute script 'swatplus_api' due to unhandled exception!
Reply all
Reply to author
Forward
0 new messages