Skip to main content
added 4 characters in body
Source Link
PolyGeo
  • 65.5k
  • 29
  • 115
  • 352

Not sure if this is the root of your problem, but spaces in your file path can lead to unwanted (or no) results in your code. If you can, replace spaces with underscores or, better yet, camelCaseText. Also, it is a good habit to use r in your path so Python reads it as a text string:

arcpy.env.workspace = r"X:\311\Obtaining GIS Data\TaxParcels.gdb"

arcpy.env.workspace = r"X:\311\Obtaining GIS Data\TaxParcels.gdb"

Not sure if this is the root of your problem, but spaces in your file path can lead to unwanted (or no) results in your code. If you can, replace spaces with underscores or, better yet, camelCaseText. Also, it is a good habit to use r in your path so Python reads it as a text string:

arcpy.env.workspace = r"X:\311\Obtaining GIS Data\TaxParcels.gdb"

Not sure if this is the root of your problem, but spaces in your file path can lead to unwanted (or no) results in your code. If you can, replace spaces with underscores or, better yet, camelCaseText. Also, it is a good habit to use r in your path so Python reads it as a text string:

arcpy.env.workspace = r"X:\311\Obtaining GIS Data\TaxParcels.gdb"
Source Link

Not sure if this is the root of your problem, but spaces in your file path can lead to unwanted (or no) results in your code. If you can, replace spaces with underscores or, better yet, camelCaseText. Also, it is a good habit to use r in your path so Python reads it as a text string:

arcpy.env.workspace = r"X:\311\Obtaining GIS Data\TaxParcels.gdb"