HRU creation error with QSWAT+ 2.5.1

22 views
Skip to first unread message

Chris R

unread,
Jun 19, 2024, 3:07:18 AM (11 days ago) Jun 19
to QSWAT+
Hello,
I recently updated QGIS to 3.34.7 and thus had to update QSWAT+ to version 2.5.1 for Python 3.12.
I'm using the same exact data I successfully used with the previous versions of QSWAT+ (2.4.x).
Now when trying to create the HRUs I get multiple error messages during the very last step of HRU selection:

"Internal error: routing sink category CH id 9 not found as a source"

"There is a loop in the gis_routing table involving id 5, category PND, flow type tot"

Afterwards the button to import the watershed into the Editor becomes active, however when trying to do so I get the following error:

Traceback (most recent call last):
  File "actions\import_gis.py", line 1453, in get_connections
KeyError: 9

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "actions\import_gis.py", line 141, in insert_default
  File "actions\import_gis.py", line 1340, in insert_connections
  File "actions\import_gis.py", line 1458, in get_connections
KeyError: 'Check gis_routing. It is referencing a missing element. Key error id 12, con_row.sinkcat CH, con_row.sinkid 9. Error: 9'



Chris George

unread,
Jun 19, 2024, 7:35:24 AM (11 days ago) Jun 19
to Chris R, QSWAT+
Hi Chris,

Sorry you have this error. If you send me your project folder I will
investigate.

Chris

On 6/19/2024 8:07 AM, Chris R wrote:
> Hello, I recently updated QGIS to 3. 34. 7 and thus had to update QSWAT+
> to version 2. 5. 1 for Python 3. 12. I'm using the same exact data I
> successfully used with the previous versions of QSWAT+ (2. 4. x). Now
> when trying to create the HRUs I get
> ZjQcmQRYFpfptBannerStart
> This Message Is From an External Sender
> This message came from outside your organization.
> ZjQcmQRYFpfptBannerEnd
> Hello,
> I recently updated QGIS to 3.34.7 and thus had to update QSWAT+ to
> version 2.5.1 for Python 3.12.
> I'm using the same exact data I successfully used with the previous
> versions of QSWAT+ (2.4.x).
> Now when trying to create the HRUs I get multiple error messages during
> the very last step of HRU selection:
>
> "/Internal error: routing sink category CH id 9 not found as a source/"
>
> "/There is a loop in the gis_routing table involving id 5, category PND,
> flow type tot/"
>
> Afterwards the button to import the watershed into the Editor becomes
> active, however when trying to do so I get the following error:
>
> /Traceback (most recent call last):
>   File "actions\import_gis.py", line 1453, in get_connections
> KeyError: 9
>
> During handling of the above exception, another exception occurred:
>
> Traceback (most recent call last):
>   File "actions\import_gis.py", line 141, in insert_default
>   File "actions\import_gis.py", line 1340, in insert_connections
>   File "actions\import_gis.py", line 1458, in get_connections
> KeyError: 'Check gis_routing. It is referencing a missing element. Key
> error id 12, con_row.sinkcat CH, con_row.sinkid 9. Error: 9'/
>
>
> --
> 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 on the web visit
> https://groups.google.com/d/msgid/qswatplus/37503cd6-a903-45ae-aa7c-6972093e6771n%40googlegroups.com <https://urldefense.com/v3/__https://groups.google.com/d/msgid/qswatplus/37503cd6-a903-45ae-aa7c-6972093e6771n*40googlegroups.com?utm_medium=email&utm_source=footer__;JQ!!KwNVnqRv!FB_jaoQ-EWz2592zKhOBFI1d7FAjvdNM90jHEGAHbyeza32NB1q32cFBbu-zF7YXHlfCtMERwXBLGUfy8Sm8toBdlg$>.
Reply all
Reply to author
Forward
0 new messages