Python Error

218
1
Jump to solution
02-08-2019 06:43 AM
MarcoPretorius1
New Contributor II

I keep getting this error when trying to batch export KMZ's into a file geodatabase. There are KMZ in the environment so confused on the error. 

TypeError                                 Traceback (most recent call last)<ipython-input-23-ee7602b7dcab> in <module>()     17      18 # Convert all KMZ and KML files found in the current workspace---> 19 for kmz in arcpy.ListFiles('*.KM*'):     20     print("CONVERTING: {0}".format(os.path.join(arcpy.env.workspace, kmz)))     21     arcpy.KMLToLayer_conversion(kmz, out_location)TypeError: 'NoneType' object is not iterable
Tags (1)
0 Kudos
1 Solution

Accepted Solutions
MarcoPretorius1
New Contributor II

Solution: forgot the // in my environment. 

View solution in original post

1 Reply
MarcoPretorius1
New Contributor II

Solution: forgot the // in my environment.