Error in Existing Watershed Delineation

16 views
Skip to first unread message

Paige Babushkin

unread,
Nov 25, 2025, 10:48:27 AMNov 25
to QSWAT+

Hi, the following error message continues to come up after I have tried to fix it. I believe it has to do with the outlet file I am providing; however, I have tried delineating without the outlet file as it says optional and the error still comes up. The file I am using has the RES, INLET, and PTSOURCE set to 0, and each outlet has its own ID. Am I missing a value that's needed and does anyone know how to solve this? Thank you!


2025-11-24T10:38:34     WARNING    Traceback (most recent call last):
              File "C:\Users/Ye Lab/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\QSWATPlus\QSWATPlus\delineation.py", line 2348, in runExisting
              if self._gv.topo.setUp0(demLayer, channelLayer, outletLayer, None, self._gv):
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
              File "C:\Users/Ye Lab/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\QSWATPlus\QSWATPlus\QSWATTopology.py", line 353, in setUp0
              return self.saveOutletsAndSources(channelLayer, outletLayer, gv.streamFile, gv.useGridModel)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
              File "C:\Users/Ye Lab/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\QSWATPlus\QSWATPlus\QSWATTopology.py", line 4453, in saveOutletsAndSources
              chBasin = reach[self.wsnoIndex]
              ~~~~~^^^^^^^^^^^^^^^^
             KeyError: '-1'

Chris George

unread,
Nov 26, 2025, 8:39:38 AMNov 26
to Paige Babushkin, QSWAT+
Looks like your channel file has no WSNO field. Did you not get an
error message about this?

Chris


On 11/24/2025 4:25 PM, Paige Babushkin wrote:
> Hi, the following error message continues to come up after I have tried
> to fix it. I believe it has to do with the outlet file I am providing;
> however, I have tried delineating without the outlet file as it says
> optional and the error still
> ZjQcmQRYFpfptBannerStart
> This Message Is From an External Sender
> This message came from outside your organization.
> ZjQcmQRYFpfptBannerEnd
> --
> You received this message because you are subscribed to the Google
> Groups "QSWAT+" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to qswatplus+...@googlegroups.com
> <mailto:qswatplus+...@googlegroups.com>.
> To view this discussion visit https://groups.google.com/d/msgid/
> qswatplus/9a25c656-8d5d-4767-91a1-6f7e7427a61cn%40googlegroups.com
> <https://urldefense.com/v3/__https://groups.google.com/d/msgid/
> qswatplus/9a25c656-8d5d-4767-91a1-6f7e7427a61cn*40googlegroups.com?
> utm_medium=email&utm_source=footer__;JQ!!KwNVnqRv!
> BA4WVCyNArxs9Jh0CqoJfKY5Lz5ItusFdSRzV_F5WFbP1qGqXcs8iEkmiVguVtO5HZPRvZiNafqCz183i2fP5pm9bQ$>.

Reply all
Reply to author
Forward
0 new messages