PROBLEM
In ArcGIS Pro, attempts to convert multiple KML files to shapefiles using the Batch KML To Layer tool fail, and return the following error message:
Error: Error 000258: Output <value> already exists.
The Output Data Name did not include '%Name%' at the end of the file name.
The Batch KML To Layer tool creates multiple geodatabases based on the name of the converted KML layer file, and these KML layer files are denoted by the '%Name%' expression. The correct format for naming the file is as follows:
<desired file name>_%Name%
Omitting this expression prevents the tool from creating multiple geodatabases, as once the first geodatabase is created for the first layer, subsequent geodatabases cannot be created as the tool attempts to create these geodatabases using the same name.
Note: For the Batch Input KML File tool to work, retain %NAME% in Output Data Name to allow the creation of multiple geodatabases.
In the Contents pane, a layer file is displayed for each converted KML file. The images below demonstrate a successful conversion using the Batch KML To Layer tool.
Get help from ArcGIS experts
Download the Esri Support App