error importing inlet

12 views
Skip to first unread message

Mary Proteau

unread,
Nov 25, 2025, 10:47:26 AMNov 25
to SWAT+ Editor
I am trying to run a spatially small model just between two stations at the plot level. So I am trying to import inlet flow (first station) and in order to model the flow at the second station. 

When importing the csv for the daily inlet flow I get this error:

Traceback (most recent call last):
  File "swatplus_api.py", line 166, in <module>
  File "actions\import_export_data.py", line 57, in import_recall
  File "fileio\recall.py", line 49, in read_data
KeyError: 'ob_typ'
[PYI-12940:ERROR] Failed to execute script 'swatplus_api' due to unhandled exception!

Is it maybe expecting a different type of csv or data other than flow? Or specific naming of columns? 

Thank you!

Jaclyn Tech

unread,
Dec 4, 2025, 11:52:57 AMDec 4
to SWAT+ Editor
Yes, looks like a formatting issue in your data. Be sure to follow instructions here: https://swatplus.gitbook.io/docs/user/editor/inputs/connections/recall, and sample data is provided from that link as well.

'ob_typ' is the timestep, and should be pt_day, pt_mon, or pt_yr. This column is not present for constant data.

Reply all
Reply to author
Forward
0 new messages