NEED HELP FOR HRU CREATION ERROR

14 views
Skip to first unread message

Oshadhee Perera

unread,
Oct 20, 2025, 11:55:32 AM (14 days ago) Oct 20
to QSWAT+
When I create HRU s the following error is coming..... HELP MEEEEEEE:

2025-10-20T16:25:28     WARNING    Traceback (most recent call last):
              File "C:\Users/Osadhee Perera/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\QSWATPlus\QSWATPlus\hrus.py", line 5598, in readFiles
              self.CreateHRUs.printBasins(False, None)
              File "C:\Users/Osadhee Perera/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\QSWATPlus\QSWATPlus\hrus.py", line 3110, in printBasins
              self.printBasinsDetails(basinHa, False, fw, None, fullHRUsLayer, horizLine)
              File "C:\Users/Osadhee Perera/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\QSWATPlus\QSWATPlus\hrus.py", line 3162, in printBasinsDetails
              basinData = self.basins[basin]
              ~~~~~~~~~~~^^^^^^^
             KeyError: 2
             


Chris George

unread,
Oct 20, 2025, 1:03:38 PM (14 days ago) Oct 20
to Oshadhee Perera, QSWAT+
Is this the first error or warning you had?

On 10/20/2025 11:57 AM, Oshadhee Perera wrote:
> When I create HRU s the following error is coming. . . . . HELP
> MEEEEEEE: 2025-10-20T16: 25: 28     WARNING    Traceback (most recent
> call last):               File "C: \Users/Osadhee Perera/AppData/
> Roaming/QGIS/QGIS3\profiles\default/python/
> plugins\QSWATPlus\QSWATPlus\hrus. py",
> 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/c7a7888a-3dd7-415a-bdb5-339e2bf7e9aen%40googlegroups.com
> <https://urldefense.com/v3/__https://groups.google.com/d/msgid/
> qswatplus/c7a7888a-3dd7-415a-bdb5-339e2bf7e9aen*40googlegroups.com?
> utm_medium=email&utm_source=footer__;JQ!!KwNVnqRv!
> HWhN8XTYfaHLoS5kAtpWIYWl9J4DpD_Ona3NSRsKTTGV6arTEy_d9zWOyCTamwlwQdpNW5jy6i1T0yRBAV3heocmVw$>.

Oshadhee Perera

unread,
Oct 24, 2025, 10:34:43 AM (10 days ago) Oct 24
to QSWAT+
Yes. This came when I use read the maps. The HRUs are displaying but I cant go to the next step (HRU tab remaining locked), which is adjusting thresholds and create HRU s
Reply all
Reply to author
Forward
0 new messages