arcpy.SearchCursor
xls = r"\\spatialfiles.work\Local\scripts\python\Excel\Report.xls\'Dataset selection$'" for row in arcpy.SearchCursor(xls): print row.getValue("Layer")
IOError: "\\spatialfiles.work\Local\scripts\python\Excel\Report.xls\'Dataset selection$'"does not exist
Thanks for checking, but yes. It's .xls. I copied and pasted the path straight from Catalogue.The other weird anamolay is that, I can write the script through the python shell, line for line adn then it will work. When I do it from the pything window as a script, it throws that same error all the time.
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.