title: How to fix "The table was not found. [Multipatches]" error thrown by KMLToLayer tool in ArcGIS Pro?
body: <p>I am trying to run the <code>KMLToLayer</code> tool available in ArcGIS Pro within <code>Python</code> code chunk inside <code>RStudio</code>, but I keep on getting the following errors:</p>
  
  <pre><code>The table was not found. [Multipatches]
  The table was not found. [Polygons]
  Failed to delete raster dataset
  Failed to execute (KMLToLayer).
  </code></pre>
  
  <p>The <code>KMZ</code> file that I am trying to convert only has <code>Placemarks</code> and <code>Line Paths</code>, but from the error messages it appears that the tool is also looking for <code>Polygons</code> and <code>Multipatches</code>. Interestingly, the tool generates the expected <code>file geodatabase</code> with both the <code>point</code> and <code>line</code> feature classes as I had expected, but it keeps on throwing the error messages! I am failing to understand what's going wrong. If anyone in the community experienced similar problems with the tool and were able to sort it out, can you please guide me do the same?</p>
  
  <p>Here is the code that I have used for the conversion:</p>
  
  <pre class="lang-py prettyprint-override"><code># r.getwd() is simply a hack to get workspace path with forward slashes on Windows
  spatial_path = r.getwd() + "/Results/SpatialFiles"
  kmz_file = "StopIntersectionListSortedByDrvFreq.kmz"
  arcpy.conversion.KMLToLayer(in_kml_file = spatial_path + "/" + kmz_file,
                              output_folder = spatial_path, 
                              output_data = "StopIntersections")
  </code></pre>