Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

G

34 views
Skip to first unread message

cawale shariif

unread,
Jan 10, 2025, 12:48:37 PMJan 10
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 149, in write
  File "actions\write_files.py", line 1052, in write_regions
  File "fileio\regions.py", line 24, in write
  File "peewee.py", line 6805, in get
  File "peewee.py", line 7256, in get
database.project.regions.Ls_unit_eleDoesNotExist: <Model: Ls_unit_ele> instance matching query does not exist:
SQL: SELECT "t1"."id", "t1"."name", "t1"."obj_typ", "t1"."obj_typ_no", "t1"."bsn_frac", "t1"."sub_frac", "t1"."reg_frac", "t1"."ls_unit_def_id" FROM "ls_unit_ele" AS "t1" LIMIT ? OFFSET ?
Params: [1, 0]
[15004] Failed to execute script 'swatplus_api' due to unhandled exception!

RAJESH RANJAN

unread,
Apr 21, 2025, 8:27:53 AMApr 21
to SWAT+ Editor
same error. Have you resolved it

Revanth Mamidala

unread,
May 7, 2025, 3:31:12 PMMay 7
to SWAT+ Editor
It looks like the HRUs are not generated properly due to some issue with the Land use layer. 
Did you get any errors while generating HRUs?
If yes, I would recommend you to check the land use raster values and the lookup table.

Regards
Revanth
Reply all
Reply to author
Forward
0 new messages