Based on this How to batch Check geometry in ArcGIS for a list of datasets from a CSV? code, i'm trying to extract the mosaic dataset path's within multiple folders. If i directly provide the mosaic_dataset path instead of fcs, the code works fine. But don't know why it's not reading the path from csv file. This is the path in the csv file(row 0) D:\QAQC\Test.gdb\Aus_Geology.gdb\250K_Geology. If i copy and replace fcs with exact same thing, the code works.
import csv import arcpy csvpath = r"D:\QAQC\Open2.csv" with open(csvpath, "r") as csvfile: fcs = [r for r in csv.reader(csvfile)] arcpy.ExportMosaicDatasetPaths_management(fcs,"D:\Test\Paths.dbf")
This is the error i am getting
File "", line 6, in File "c:\program files\arcgis\desktop10.3\arcpy\arcpy\management.py", line 11099, in ExportMosaicDatasetPaths raise e RuntimeError: Object: Error in executing tool