HRU ERROR

9 views
Skip to first unread message

Eunice Wangui

unread,
Feb 20, 2026, 12:03:48 PM (21 hours ago) Feb 20
to swat...@googlegroups.com, arc...@googlegroups.com
Dear SWAT Community,
Using QSWAT+ 3.1.2: I'm trying to run HRU using HWSD data alongside ESA Sentinel Landcover and SRTM DEM. The 1st tab reads my data successfully (rasters and lookup tables), but when I get to the 2nd tab of creating HRU, once I click run, I get an error that :

Could not create soils_sol and soils_sol_layer tables from naivasha_usersoil table in soil database C:/SWAT/NAIVASHA_16022026/NAIVASHA_16022026.sqlite: Traceback (most recent call last):

File "C:\Users/eunice.mwangi/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\QSWATPlus\QSWATPlus\DBUtils.py", line 1081, in writeSoilsTable

lid = self.writeUsedSoilRow(sid, lid, name, row, writeCursor, insert, insertLayer)

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "C:\Users/eunice.mwangi/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\QSWATPlus\QSWATPlus\DBUtils.py", line 1107, in writeUsedSoilRow

cursor.execute(insertLayer, (lid, sid, i+1) + row[startLayer:startLayer+layerWidth] + (row[startCal+i], row[startPh+i]))

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

IndexError: tuple index out of range


Any idea how to solve this? Ill really appreciate.


Thank you.


--
Regards, 
Eunice Wangui
Mobile: +254 724 106 552

Chris George

unread,
Feb 20, 2026, 12:30:58 PM (20 hours ago) Feb 20
to Eunice Wangui, swat...@googlegroups.com, arc...@googlegroups.com
Check that your usersoil table has 152 columns.

On 2/20/2026 6:57 AM, Eunice Wangui wrote:
> Dear SWAT Community, Using QSWAT+ 3. 1. 2: I'm trying to run HRU using
> HWSD data alongside ESA Sentinel Landcover and SRTM DEM. The 1st tab
> reads my data successfully (rasters and lookup tables), but when I get
> to the 2nd tab of creating HRU,
> ZjQcmQRYFpfptBannerStart
> This Message Is From an External Sender
> This message came from outside your organization.
> ZjQcmQRYFpfptBannerEnd
> email: meunic...@gmail.com <mailto:meunic...@gmail.com>
> *
> *
>
> --
> You received this message because you are subscribed to the Google
> Groups "SWAT-user" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to swatuser+u...@googlegroups.com
> <mailto:swatuser+u...@googlegroups.com>.
> To view this discussion visit https://groups.google.com/d/msgid/
> swatuser/CAMT148zH2_4KgO8hTUnbPXF9yUkmPuG7ZRRxLSU%3D-
> dNGWtkN%2BA%40mail.gmail.com <https://urldefense.com/v3/__https://
> groups.google.com/d/msgid/swatuser/
> CAMT148zH2_4KgO8hTUnbPXF9yUkmPuG7ZRRxLSU*3D-
> dNGWtkN*2BA*40mail.gmail.com?utm_medium=email&utm_source=footer__;JSUl!!
> KwNVnqRv!
> D7FCQH4bElwq_zUXDean0haWZSeoSZFXtLglo_eEoaL45G2M5zc_fBJd_ODMr59NZBcOaZAGEwhZPFGVhGbBOLE$>.

Reply all
Reply to author
Forward
0 new messages