I am surprised by this error, because QSWAT+ has a check that the
routing table has no such errors. Can you send me your project folder
so I can investigate.
Chris
On 6/29/2025 11:37 AM, Engr. Moazzam Mushtaq wrote:
> Dear SWAT+ team and community, I am encountering an error while
> importing my GIS data from QSWAT+ into SWAT+ Editor 3. 0. 8. The error
> message is as follows: Traceback (most recent call last): File
> "actions\import_gis. py", line 1571, in get_connections
> ZjQcmQRYFpfptBannerStart
> This Message Is From an External Sender
> This message came from outside your organization.
> ZjQcmQRYFpfptBannerEnd
>
> Dear SWAT+ team and community,
>
> I am encountering an error while importing my GIS data from QSWAT+ into
> SWAT+ Editor 3.0.8. The error message is as follows:
>
> Traceback (most recent call last):
> File "actions\import_gis.py", line 1571, in get_connections
> KeyError: 64
>
> During handling of the above exception, another exception occurred:
>
> Traceback (most recent call last):
> File "actions\import_gis.py", line 146, in insert_default
> File "actions\import_gis.py", line 1429, in insert_connections
> File "actions\import_gis.py", line 1576, in get_connections
> KeyError: 'Check gis_routing. It is referencing a missing element. Key
> error id 1, con_row.sinkcat CH, con_row.sinkid 64. Error: 64'
>
> From this message, it appears that the gis_routing table is referencing
> a missing element with sinkid 64 (sink category CH for channel).
>
> I suspect that there might be a mismatch or missing channel in my QSWAT+
> project, but I am not sure how to identify and fix it properly.
>
> Could you please guide me on how to:
>
> 1.
>
> Check and correct the routing connections in QSWAT+?
>
> 2.
>
> Ensure that all sink IDs are valid and match existing channels
> before exporting to SWAT+ Editor?
>
> 3.
>
> Avoid such errors in future delineations?
>
>
> Thank you very much for your support!
>
> Best regards,
> Moazzam Mushtaq
>
>
>
>
>
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "SWAT+ Editor" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to
swatplus-edit...@googlegroups.com
> <mailto:
swatplus-edit...@googlegroups.com>.
> To view this discussion visit
https://groups.google.com/d/msgid/
> swatplus-editor/6a87f2f3-b417-4716-b696-a913e3a13a77n%
40googlegroups.com
> <
https://urldefense.com/v3/__https://groups.google.com/d/msgid/swatplus-
> editor/6a87f2f3-b417-4716-b696-a913e3a13a77n*
40googlegroups.com?
> utm_medium=email&utm_source=footer__;JQ!!KwNVnqRv!
> DLKPTrll82ZPJJzSoUWntvk5NM3LYChsfDpvnZxiSUz-
> mPwi8qpCvOvTeo7IyzAsmjyJ13kde6yK-LWlduoqdtG51Q$>.