Getting error:
ExecuteError: ERROR 999999: Something unexpected caused the tool to fail.
with arcpy.management.AddRastersToMosaicDataset
Don't usually do much imagery work. So, it's possible I'm making a rookie mistake here.
I created a Mosaic Dataset using Tools in ArcGIS Pro 3.1 and adding 200 (discontinuous) file system rasters (TIFF).
Now, I want to see how I can script this with arcpy but the below fails:
import arcpy
rastertype = "Raster Dataset"
mdname = r"<path_to_mosaic_dataset>"
inpath = r"<path_to_file_system_raster>"
arcpy.management.AddRastersToMosaicDataset(
mdname, rastertype, inpath)
# I can use arcpy.Describe to confirm that both paths are valid paths to the right data/file typeI see some similar reports related to this tool but for older versions of Pro. Anyone seeing this in Pro 3.x or have a suggestion what I should try?