<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Layer to KML 'Name' missing when using python in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/layer-to-kml-name-missing-when-using-python/m-p/239887#M10441</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Now to find the reason... which is why I asked about Pro's arcpy... Do you have ArcMap also installed?&lt;/P&gt;&lt;P&gt;I know it uses python 2.7, but I used python 3.x when I used arcmap (just a matter of direction to arcpy)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Addendum&lt;/P&gt;&lt;P&gt;Are there any spaces in the names of the input or output files?&amp;nbsp; Pro doesn't like them (which is good) and that behaviour separates map from pro... although I haven't fully investigated yet&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Addendum 2&lt;/P&gt;&lt;P&gt;Check your installation of arcpy …. from whatever environment&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; arcpy

arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;__file__&amp;nbsp; &lt;SPAN class="comment token"&gt;# mine is installed in c:\arcgispro... not the normal install&lt;/SPAN&gt;

&lt;SPAN class="string token"&gt;'C:\\ArcGISPro\\Resources\\ArcPy\\arcpy\\__init__.py'&lt;/SPAN&gt;

arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;GetInstallInfo&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
 
&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'InstallDir'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'c:\\arcgispro\\'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
 &lt;SPAN class="string token"&gt;'Installer'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'dan_p'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
 &lt;SPAN class="string token"&gt;'ProductName'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'ArcGISPro'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
 &lt;SPAN class="string token"&gt;'Version'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'2.2'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
 &lt;SPAN class="string token"&gt;'SourceDir'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'C:\\Computer\\ArcGISPro_2_2\\ArcGISPro\\'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&amp;nbsp; &lt;SPAN class="comment token"&gt;# ---- msi file&lt;/SPAN&gt;
 &lt;SPAN class="string token"&gt;'InstallType'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'N/A'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
 &lt;SPAN class="string token"&gt;'BuildNumber'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'12813'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
 &lt;SPAN class="string token"&gt;'InstallDate'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'2018-07-05'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
 &lt;SPAN class="string token"&gt;'InstallTime'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'23:34:14'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
 &lt;SPAN class="string token"&gt;'SPNumber'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'N/A'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
 &lt;SPAN class="string token"&gt;'SPBuild'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'N/A'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 12:04:32 GMT</pubDate>
    <dc:creator>DanPatterson_Retired</dc:creator>
    <dc:date>2021-12-11T12:04:32Z</dc:date>
    <item>
      <title>Layer to KML 'Name' missing when using python</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/layer-to-kml-name-missing-when-using-python/m-p/239882#M10436</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm exporting a point features to kml via a python script but the generated kml has no 'Name'&amp;nbsp; information.&amp;nbsp; i.e. when you expand the list, every point says "[no name]".&amp;nbsp; All other data is correct.&lt;/P&gt;&lt;P&gt;There is a 'Name' field in the attribute table.&amp;nbsp; It is the first field after the Object ID and geometry field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;simplified code:&lt;/P&gt;&lt;P&gt;arcpy.management.MakeFeatureLayer(InFc, OutLyr, None, None, None)&lt;BR /&gt; OutKmzPath = ProjectPath + "out.kmz"&lt;BR /&gt; arcpy.conversion.LayerToKML(&lt;SPAN&gt;OutLyr&lt;/SPAN&gt;, OutKmzPath, 0, "NO_COMPOSITE", "DEFAULT", 1024, 96, "ABSOLUTE")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but, if i do the same from within ArcGIS Pro (v2.2) the generated kml has the name field correctly populated.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there another step to get the kml Name field to populate when running in a script?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jul 2018 02:41:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/layer-to-kml-name-missing-when-using-python/m-p/239882#M10436</guid>
      <dc:creator>MarkHansen1</dc:creator>
      <dc:date>2018-07-09T02:41:28Z</dc:date>
    </item>
    <item>
      <title>Re: Layer to KML 'Name' missing when using python</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/layer-to-kml-name-missing-when-using-python/m-p/239883#M10437</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you ensure that you are using Pro's arcpy?&lt;/P&gt;&lt;P&gt;Also... although they should be technically equal, try&lt;/P&gt;&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #4c4c4c; font-family: 'Consolas','Andale Mono','Lucida Console','Monaco',monospace; font-size: 17px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: pre-wrap; word-spacing: 0px; word-wrap: break-word;"&gt;arcpy.MakeFeatureLayer_management &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;and dump the None entries, since they aren't needed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jul 2018 03:20:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/layer-to-kml-name-missing-when-using-python/m-p/239883#M10437</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2018-07-09T03:20:48Z</dc:date>
    </item>
    <item>
      <title>Re: Layer to KML 'Name' missing when using python</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/layer-to-kml-name-missing-when-using-python/m-p/239884#M10438</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Python v3.6.5.&amp;nbsp; I'm using Idle - right-click the py file, choose "Edit with IDLE (ArcGIS Pro)".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tried arcpy.MakeFeatureLayer_management but no joy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;yeah... the code still needs a lot of clean-up.&amp;nbsp; &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jul 2018 04:02:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/layer-to-kml-name-missing-when-using-python/m-p/239884#M10438</guid>
      <dc:creator>MarkHansen1</dc:creator>
      <dc:date>2018-07-09T04:02:54Z</dc:date>
    </item>
    <item>
      <title>Re: Layer to KML 'Name' missing when using python</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/layer-to-kml-name-missing-when-using-python/m-p/239885#M10439</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't see anything obvious in your code though.&amp;nbsp; Try it within Pro's IDE so that Pro is also open.. I just have a feeling I have seen this before&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jul 2018 04:14:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/layer-to-kml-name-missing-when-using-python/m-p/239885#M10439</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2018-07-09T04:14:15Z</dc:date>
    </item>
    <item>
      <title>Re: Layer to KML 'Name' missing when using python</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/layer-to-kml-name-missing-when-using-python/m-p/239886#M10440</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;running it within the IDE works&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jul 2018 04:30:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/layer-to-kml-name-missing-when-using-python/m-p/239886#M10440</guid>
      <dc:creator>MarkHansen1</dc:creator>
      <dc:date>2018-07-09T04:30:50Z</dc:date>
    </item>
    <item>
      <title>Re: Layer to KML 'Name' missing when using python</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/layer-to-kml-name-missing-when-using-python/m-p/239887#M10441</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Now to find the reason... which is why I asked about Pro's arcpy... Do you have ArcMap also installed?&lt;/P&gt;&lt;P&gt;I know it uses python 2.7, but I used python 3.x when I used arcmap (just a matter of direction to arcpy)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Addendum&lt;/P&gt;&lt;P&gt;Are there any spaces in the names of the input or output files?&amp;nbsp; Pro doesn't like them (which is good) and that behaviour separates map from pro... although I haven't fully investigated yet&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Addendum 2&lt;/P&gt;&lt;P&gt;Check your installation of arcpy …. from whatever environment&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; arcpy

arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;__file__&amp;nbsp; &lt;SPAN class="comment token"&gt;# mine is installed in c:\arcgispro... not the normal install&lt;/SPAN&gt;

&lt;SPAN class="string token"&gt;'C:\\ArcGISPro\\Resources\\ArcPy\\arcpy\\__init__.py'&lt;/SPAN&gt;

arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;GetInstallInfo&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
 
&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'InstallDir'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'c:\\arcgispro\\'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
 &lt;SPAN class="string token"&gt;'Installer'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'dan_p'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
 &lt;SPAN class="string token"&gt;'ProductName'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'ArcGISPro'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
 &lt;SPAN class="string token"&gt;'Version'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'2.2'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
 &lt;SPAN class="string token"&gt;'SourceDir'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'C:\\Computer\\ArcGISPro_2_2\\ArcGISPro\\'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&amp;nbsp; &lt;SPAN class="comment token"&gt;# ---- msi file&lt;/SPAN&gt;
 &lt;SPAN class="string token"&gt;'InstallType'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'N/A'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
 &lt;SPAN class="string token"&gt;'BuildNumber'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'12813'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
 &lt;SPAN class="string token"&gt;'InstallDate'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'2018-07-05'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
 &lt;SPAN class="string token"&gt;'InstallTime'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'23:34:14'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
 &lt;SPAN class="string token"&gt;'SPNumber'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'N/A'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
 &lt;SPAN class="string token"&gt;'SPBuild'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'N/A'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 12:04:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/layer-to-kml-name-missing-when-using-python/m-p/239887#M10441</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2021-12-11T12:04:32Z</dc:date>
    </item>
    <item>
      <title>Re: Layer to KML 'Name' missing when using python</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/layer-to-kml-name-missing-when-using-python/m-p/239888#M10442</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ArcMap 10.6 is installed.&amp;nbsp; I started this project using map but switched to Pro because of this problem with the surface difference tool&amp;nbsp;&lt;A _jive_internal="true" href="https://community.esri.com/message/767562-using-a-las-dataset-with-the-surface-difference-tool" target="_blank"&gt;https://community.esri.com/message/767562-using-a-las-dataset-with-the-surface-difference-tool&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No spaces in the input or output data files.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; arcpy

arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;__file__
Out&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;2&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'C:\\Program Files\\ArcGIS\\Pro\\Resources\\ArcPy\\arcpy\\__init__.py'&lt;/SPAN&gt;

arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;GetInstallInfo&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
Out&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;3&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; 
&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'InstallDir'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'c:\\program files\\arcgis\\pro\\'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
 &lt;SPAN class="string token"&gt;'Installer'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'Mark.Hansen'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
 &lt;SPAN class="string token"&gt;'ProductName'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'ArcGISPro'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
 &lt;SPAN class="string token"&gt;'Version'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'2.2'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
 &lt;SPAN class="string token"&gt;'SourceDir'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'C:\\Users\\mark.hansen\\AppData\\Local\\Microsoft\\Windows\\INetCache\\ArcGISUpdate\\ArcGISPro\\esrisoftware.esri.com\\'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
 &lt;SPAN class="string token"&gt;'InstallType'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'N/A'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
 &lt;SPAN class="string token"&gt;'BuildNumber'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'12813'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
 &lt;SPAN class="string token"&gt;'InstallDate'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'27/06/2018'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
 &lt;SPAN class="string token"&gt;'InstallTime'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'9:43:07'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
 &lt;SPAN class="string token"&gt;'SPNumber'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'N/A'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
 &lt;SPAN class="string token"&gt;'SPBuild'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'N/A'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 12:04:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/layer-to-kml-name-missing-when-using-python/m-p/239888#M10442</guid>
      <dc:creator>MarkHansen1</dc:creator>
      <dc:date>2021-12-11T12:04:35Z</dc:date>
    </item>
    <item>
      <title>Re: Layer to KML 'Name' missing when using python</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/layer-to-kml-name-missing-when-using-python/m-p/239889#M10443</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My hunch is the issue revolves around a KML Placemark name being "name."&amp;nbsp; Just as a test, if you rename the "name" field to "name1", does it work in the script?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jul 2018 13:56:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/layer-to-kml-name-missing-when-using-python/m-p/239889#M10443</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2018-07-09T13:56:57Z</dc:date>
    </item>
    <item>
      <title>Re: Layer to KML 'Name' missing when using python</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/layer-to-kml-name-missing-when-using-python/m-p/239890#M10444</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Joshua,&lt;/P&gt;&lt;P&gt;'name1' makes no difference.&lt;/P&gt;&lt;P&gt;I first suspected it was something to do with the 'name' field.&amp;nbsp; I saw this post (&lt;A href="https://gis.stackexchange.com/questions/16934/how-is-the-default-label-field-chosen-by-arcmap"&gt;https://gis.stackexchange.com/questions/16934/how-is-the-default-label-field-chosen-by-arcmap&lt;/A&gt;)&amp;nbsp;and started playing with variations of name/NAME/Name.&amp;nbsp; My name field is a string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It works fine and the name is populated if you run it within the ArcPro python IDE or with the geoprocessing tools.&lt;/P&gt;&lt;P&gt;Because of this I suspect it has something to do with ArcPro being open and the layer is added to a map first and then exported to kml.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have been playing with this some more and&amp;nbsp;I am guessing there is some little behind-the-scenes extra that automatically sets the default label when you add the layer to a map, then when you run the layer-to-kml it picks that default label and populates the name field in the kml.&amp;nbsp; When I do this in ArcPro and check the label, it has already selected the field called 'name'.&amp;nbsp; As a test I reordered the fields in the table and put the name field last then added to the map - the 'name' field was still selected by default.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think that because my script doesn't run inside ArcPro and never adds to a map, the default label does not get set on the layer, therefore no name in the kml.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, is there a way to set the default field in python?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jul 2018 22:40:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/layer-to-kml-name-missing-when-using-python/m-p/239890#M10444</guid>
      <dc:creator>MarkHansen1</dc:creator>
      <dc:date>2018-07-09T22:40:19Z</dc:date>
    </item>
    <item>
      <title>Re: Layer to KML 'Name' missing when using python</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/layer-to-kml-name-missing-when-using-python/m-p/239891#M10445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nothing that I have found from the links, but... in desperation, perhaps you need to add&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://pro.arcgis.com/en/pro-app/tool-reference/data-management/save-to-layer-file.htm" title="http://pro.arcgis.com/en/pro-app/tool-reference/data-management/save-to-layer-file.htm"&gt;Save To Layer File—Data Management toolbox | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;after the makefeaturelayer to see if it persists... and if you really need to… Delete_management it after&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jul 2018 22:57:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/layer-to-kml-name-missing-when-using-python/m-p/239891#M10445</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2018-07-09T22:57:48Z</dc:date>
    </item>
    <item>
      <title>Re: Layer to KML 'Name' missing when using python</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/layer-to-kml-name-missing-when-using-python/m-p/239892#M10446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Dan,&lt;/P&gt;&lt;P&gt;The 'save to layer file' alone didn't work but it got me thinking - so I created a single point and labeled/styled it and saved a lyrx file, then used &amp;nbsp;arcpy.management.ApplySymbologyFromLayer using my saved lyrx file and it worked.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jul 2018 23:50:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/layer-to-kml-name-missing-when-using-python/m-p/239892#M10446</guid>
      <dc:creator>MarkHansen1</dc:creator>
      <dc:date>2018-07-09T23:50:03Z</dc:date>
    </item>
    <item>
      <title>Re: Layer to KML 'Name' missing when using python</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/layer-to-kml-name-missing-when-using-python/m-p/239893#M10447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So... some mystery lurks between the within-Pro and without-Pro functionality. &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jul 2018 23:54:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/layer-to-kml-name-missing-when-using-python/m-p/239893#M10447</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2018-07-09T23:54:56Z</dc:date>
    </item>
  </channel>
</rss>

