Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import arcpy
- SDE_CONNECTION = "XXX_DEV.sde"
- TABLE_NAME = "Table01"
- fields = ["Field01"]
- with arcpy.da.SearchCursor(TABLE_NAME, fields) as cursor:
- for row in cursor:
- print(row)
- Connected to pydev debugger (build 141.1899)
- Traceback (most recent call last):
- File "C:Program Files (x86)JetBrainsPyCharm 4.5.2helperspydevpydevd.py", line 2358, in <module>
- globals = debugger.run(setup['file'], None, None, is_module)
- File "C:Program Files (x86)JetBrainsPyCharm 4.5.2helperspydevpydevd.py", line 1778, in run
- pydev_imports.execfile(file, globals, locals) # execute the script
- File "C:/XXX/_pg.py", line 10, in <module>
- with arcpy.da.SearchCursor(TABLE_NAME, fields) as cursor:
- RuntimeError: cannot open 'Table01'
- Process finished with exit code 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement