I am trying to extract all KMZ and kml files from a folder but it's giving me an error. File does exist in that folder.
for kmz in arcpy.ListFiles('*.km*'): print ("CONVERTING: " + os.path.join(arcpy.env.workspace,kmz)) arcpy.KMLToLayer_conversion(kmz, outLocation, "", "NO_GROUNDOVERLAY")
ERROR 000732: Input KML File: Dataset NMR102020202_XZCD7S_4850NW_ABCD5W_Poin.kmz does not exist or is not supported
I am not sure what's missing in this code.