Select to view content in your preferred language

Modelbuilder - Clip multiple rasters not working

60
0
3 hours ago
Labels (3)
RichardPearson_org
Occasional Contributor

Hi folks, I wonder if anyone else is experiencing a weird modelbuilder error around interators and clipping rasters?

I have an existing model I've used before, which I modified to work on a new set of rasters. The workflow is to take a raster tile and clip it using a 5km square polygon, then do the same for a further 5 rasters, each with a matching polygon. I iterate through the 6 polygons, using the text string in one of the fields to define the %Name% variable, which I then use to select the matching tif file for each polygon. That's how it used to work, anyway. Now, the model fails before the clipping stage with the following error:

Executing (Iterate Feature Selection): IterateFeatureSelection "England DTM grids\England_DTM_1m_grids_Test_area" "Tilename_join #" false

Start Time: 18 November 2025 10:48:19

Succeeded at 18 November 2025 10:48:19 (Elapsed Time: 0.01 seconds)

Executing (Clip Raster): Clip "J:\GIS\England lidar\DTM\DTM test area\SST36nebuffer_VATEngland_Lidar_DTM_test.tif" I_England_DTM_1m_grids_Test_area_Tilename_join "J:\GIS\England lidar\England Lidar.gdb\ST36nebuffer_VATEngland_Clip" I_England_DTM_1m_grids_Test_area_Tilename_join 3.4e+38 ClippingGeometry NO_MAINTAIN_EXTENT

Start Time: 18 November 2025 10:48:19

ERROR 999999: Something unexpected caused the tool to fail. Contact Esri Technical Support (http://esriurl.com/support) to Report a Bug, and refer to the error help for potential solutions or workarounds.

Failed to execute (Clip Raster).

Failed at 18 November 2025 10:48:19 (Elapsed Time: 0.01 seconds)

 

If I manually select one of the tif files as the raster to be clipped, the model works perfectly for that tile, but if I use the %Name% variable to define the exact same file name and path, the model fails.

 

If I modify the model slightly to clip one large raster into 6 individual tif files using the 6 polygons, rather than clipping 6 separate rasters, the model again works perfectly!

 

Just seems really odd. Any advice gratefully received....

 

Many thanks

 

Richard

 

 

0 Kudos
0 Replies