I am trying to cursor search through a .xls file using
My code is this:
I'm baffled. Yesterday this code worked fine. Today I am getting an error:
IOError: "\\spatialfiles.work\Local\scripts\python\Excel\Report.xls\'Dataset selection$'"
does not exist
The xls file does exist. I can navigate to it in ArcCataloge without issue and view the table. The path is correct because I copied and pasted it right out of Catalogue.
Can anyone suggest why this is occuring?
Thanks,
Mike
Code:
arcpy.SearchCursor
Code:
xls = r"\\spatialfiles.work\Local\scripts\python\Excel\Report.xls\'Dataset selection$'"
for row in arcpy.SearchCursor(xls):
print row.getValue("Layer")
Quote:
IOError: "\\spatialfiles.work\Local\scripts\python\Excel\Report.xls\'Dataset selection$'"
does not exist
Can anyone suggest why this is occuring?
Thanks,
Mike