Hi everyone, Thank you for bringing this up Jhon Eric. I'm having this same issue, trying to iterate through rasters in a geodatabase, in Arc Pro 2.5. I am able to successfully output the first raster in my list, but it fails on the second time around. # text version def convert_depth_raster(self, parameters): arcpy.env.workspace = self.gdb_out db_rasters = arcpy.ListRasters("*") print("Converting depth bands: ", db_rasters) for r in db_rasters: convert = ((1.4661 * 182329)/(2 * arcpy.sa.Raster(r) * 1.732)) / 1852 lnm_name = r.replace('DepthBand', 'LNM') lnm_out = self.gdb_out + "\\" + lnm_name convert.save(lnm_path) print("Created: ", lnm_out)
Traceback (most recent call last): File "<string>", line 257, in execute File "<string>", line 234, in convert_depth_raster File "c:\users\matt sharr\appdata\local\programs\arcgis\pro\Resources\arcpy\arcpy\sa\Raster.py", line 79, in __new__ return super().__new__(cls, in_raster, is_multidimensional) RuntimeError: ERROR 000732: Input Raster: Dataset DepthBand_21_40 does not exist or is not supported
Are there any known solutions at this time? Are there other workarounds besides model builder and manually iterating?
Thank you,
-Matt
... View more