LayerToKML issue: null vectors from a loop

Discussion created by davide_pavia on Apr 13, 2018
Latest reply on Apr 17, 2018 by davide_pavia

Hy everyone, 


I'm working on a python script that loops the LayerToKML tool on a set of layers; here's the problem: the first execution works fine, all the others (hundreds) creates .kmz files like the one below...



...the whole set of geometries are invisible and placed at Equator or North Pole; on the contrary, all the attributes are correct.


I'm running the script with an IDE (PyScripter, 32 Bit, python 2.7.2): if I run the same code within the ArcGIS (10.1) python window, it works perfectly!!


Any idea would be really appreciated, thanks in advance.