Problem with "create HRUs"

25 views
Skip to first unread message

VIRGINIA LÓPEZ LINARES

unread,
Apr 7, 2026, 5:55:04 PMApr 7
to SWAT+
Hi! When I want to create HRUs, I obtain the following error:

"Failed to create HRUs: Traceback (most recent call last):

File "C:\Users/Virginia/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\QSWATPlus\QSWATPlus\hrus.py", line 5708, in calcHRUs

self.CreateHRUs.printBasins(True, fullHRUsLayer)

File "C:\Users/Virginia/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\QSWATPlus\QSWATPlus\hrus.py", line 3084, in printBasins

self._gv.topo.writePointsTable(demLayer, self.mergees, self._gv.useGridModel, self._gv.existingWshed)

File "C:\Users/Virginia/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\QSWATPlus\QSWATPlus\QSWATTopology.py", line 2775, in writePointsTable

subbasin = self.chBasinToSubbasin[chBasin]

~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^

KeyError: 205"


I'm using the same input files as a coworker and for him it works and I always obtain this error, could someone help me? 
Best regards




"Este mensaje es privado y confidencial y se dirige exclusivamente a su destinatario. Si usted recibe este mensaje por error, no debe revelar, distribuir o copiar este e-mail. Por favor, comuníquelo al remitente y borre el mensaje y los archivos adjuntos de su sistema. No hay renuncia a la confidencialidad ni a ningún privilegio a causa de una transmisión errónea o por mal funcionamiento". 

"This message is private and confidential and it is intended exclusively for the addressee. If your receive this message by mistake, you should not disseminate, distribute or copy this e-mail. Please inform the sender and delete the message and attachments from your system. No confidentiality or any privilege regarding the information is waived or lost by any mistransmission or malfunction".

No me imprimas si no es necesario.
Don't print me unless it's necessary.

Chris George

unread,
Apr 9, 2026, 3:01:16 PMApr 9
to VIRGINIA LÓPEZ LINARES, SWAT+
Did you get any previous error? If not, send me your complete project
folder and I will investigate.

Chris

On 4/6/2026 4:44 PM, VIRGINIA LÓPEZ LINARES wrote:
> Hi! When I want to create HRUs, I obtain the following error: "Failed to
> create HRUs: Traceback (most recent call last): File "C: \Users/
> Virginia/AppData/Roaming/QGIS/QGIS3\profiles\default/python/
> plugins\QSWATPlus\QSWATPlus\hrus. py", line 5708,
> ZjQcmQRYFpfptBannerStart
> This Message Is From an External Sender
> This message came from outside your organization.
> ZjQcmQRYFpfptBannerEnd
> Hi! When I want to create HRUs, I obtain the following error:
>
> "Failed to create HRUs: Traceback (most recent call last):
>
> File "C:\Users/Virginia/AppData/Roaming/QGIS/QGIS3\profiles\default/
> python/plugins\QSWATPlus\QSWATPlus\hrus.py", line 5708, in calcHRUs
>
> self.CreateHRUs.printBasins(True, fullHRUsLayer)
>
> File "C:\Users/Virginia/AppData/Roaming/QGIS/QGIS3\profiles\default/
> python/plugins\QSWATPlus\QSWATPlus\hrus.py", line 3084, in printBasins
>
> self._gv.topo.writePointsTable(demLayer, self.mergees,
> self._gv.useGridModel, self._gv.existingWshed)
>
> File "C:\Users/Virginia/AppData/Roaming/QGIS/QGIS3\profiles\default/
> python/plugins\QSWATPlus\QSWATPlus\QSWATTopology.py", line 2775, in
> writePointsTable
>
> subbasin = self.chBasinToSubbasin[chBasin]
>
> ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
>
> KeyError: 205"
>
>
> I'm using the same input files as a coworker and for him it works and I
> always obtain this error, could someone help me?
> Best regards
>
>
>
> ------------------------------------------------------------------------
> "Este mensaje es privado y confidencial y se dirige exclusivamente a su
> destinatario. Si usted recibe este mensaje por error, no debe revelar,
> distribuir o copiar este e-mail. Por favor, comuníquelo al remitente y
> borre el mensaje y los archivos adjuntos de su sistema. No hay renuncia
> a la confidencialidad ni a ningún privilegio a causa de una transmisión
> errónea o por mal funcionamiento".
>
> "This message is private and confidential and it is intended exclusively
> for the addressee. If your receive this message by mistake, you should
> not disseminate, distribute or copy this e-mail. Please inform the
> sender and delete the message and attachments from your system. No
> confidentiality or any privilege regarding the information is waived or
> lost by any mistransmission or malfunction".
>
> No me imprimas si no es necesario.
> Don't print me unless it's necessary.
>
> --
> You received this message because you are subscribed to the Google
> Groups "SWAT+" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to swatplus+u...@googlegroups.com
> <mailto:swatplus+u...@googlegroups.com>.
> To view this discussion visit https://groups.google.com/d/msgid/
> swatplus/6cf27ba0-98e8-40d3-b1b4-c4a7ac368726n%40googlegroups.com
> <https://urldefense.com/v3/__https://groups.google.com/d/msgid/
> swatplus/6cf27ba0-98e8-40d3-b1b4-c4a7ac368726n*40googlegroups.com?
> utm_medium=email&utm_source=footer__;JQ!!KwNVnqRv!
> FxeJL7_rn5WYj9s2gOHmz3sO3Hae0Q9j2U4A2MNgiSUUZYgOfDsaGDzsRlpf5qzoesZuviLKAPkHGYMG$>.

Reply all
Reply to author
Forward
0 new messages