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
Solved! Go to Solution.
Solution: forgot the // in my environment.
Solution: forgot the // in my environment.