UFRM: ValueError: invalid entry in choice array

What is the issue or question you have?

When trying to run the UFRM tool I keep getting the same error

What do you expect to happen?

I expect it to run without issues as my soil raster data only contains values 1-4 but it keeps saying thats the issue.

What have you tried so far?

I have tried remaking my raster and ensuring it only contains values 1-4 but I still get the error message.

Final_soils_raster_nozero.tif (3.1 MB)

InVEST-urban_flood_risk_mitigation-log-2026-04-27–15_30_43.txt (5.8 KB)

Upload the logfile using the :outbox_tray: button

Hi @Phoebe, thanks for your question and for uploading your logfile and soils raster. It really helps to have this info upfront so we can help debug issues!

It looks like your raster actually contains many 0 values—I’m assuming these are meant to represent nodata? Could you try reclassifying your raster so that the nodata pixels have some other value? You may want to read through this thread on a similar issue—in it, two users share how they solved the same problem, one using QGIS and another using ArcMap: Urban Flood Risk Mitigation - Soil Group Raster preparation error?

Or in fact, if you set the NoData value of the raster to be 0, then the 0s should be properly ignored by the model. Right now it looks like the Soils raster does not have a NoData value defined.