<?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: Import KMZ folder using script in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/import-kmz-folder-using-script/m-p/1539960#M72895</link>
    <description>&lt;P&gt;Good day, used this:&lt;/P&gt;&lt;P&gt;import arcpy&lt;BR /&gt;arcpy.intelligence.BatchImportData("O:\Active Projects\New Braunfels\01_Project KMZ Files\2013", "H:\GIS PROJECTS\PROPOSALS\Enviromental 2023 Tom\Enviromental 2023 Locations\Enviromental 2023 Locations.gdb", "kml", "SUBFOLDERS", "NO_GROUNDOVERLAY")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;am getting this:&lt;/P&gt;&lt;PRE&gt; Traceback (most recent call last)
File &lt;SPAN class=""&gt;C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\Lib\ast.py&lt;/SPAN&gt;, in &lt;SPAN class=""&gt;parse&lt;/SPAN&gt;:
Line &lt;SPAN class=""&gt;50&lt;/SPAN&gt;:    &lt;SPAN class=""&gt;return&lt;/SPAN&gt; &lt;SPAN class=""&gt;compile&lt;/SPAN&gt;(source, filename, mode, flags,

&lt;SPAN class=""&gt;SyntaxError&lt;/SPAN&gt;: (unicode error) 'unicodeescape' codec can't decode bytes in position 18-19: malformed \N character escape (&amp;lt;string&amp;gt;, line 2)&lt;/PRE&gt;</description>
    <pubDate>Wed, 18 Sep 2024 14:20:01 GMT</pubDate>
    <dc:creator>Brucemartin</dc:creator>
    <dc:date>2024-09-18T14:20:01Z</dc:date>
    <item>
      <title>Import KMZ folder using script</title>
      <link>https://community.esri.com/t5/python-questions/import-kmz-folder-using-script/m-p/1539723#M72889</link>
      <description>&lt;P&gt;Good afternoon,&lt;/P&gt;&lt;P&gt;Apparently ESRI does not have the time for me and redirected me to ask this question on this board.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone know of a script for importing KMZ folders?&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Tue, 17 Sep 2024 21:39:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/import-kmz-folder-using-script/m-p/1539723#M72889</guid>
      <dc:creator>Brucemartin</dc:creator>
      <dc:date>2024-09-17T21:39:08Z</dc:date>
    </item>
    <item>
      <title>Re: Import KMZ folder using script</title>
      <link>https://community.esri.com/t5/python-questions/import-kmz-folder-using-script/m-p/1539762#M72890</link>
      <description>&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/intelligence/batch-import-data.htm" target="_blank"&gt;Batch Import Data (AllSource)—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;it will import kmz files within a folder, but if you have multiple folders to parse, it may have to be scripted&lt;/P&gt;</description>
      <pubDate>Tue, 17 Sep 2024 23:19:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/import-kmz-folder-using-script/m-p/1539762#M72890</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2024-09-17T23:19:12Z</dc:date>
    </item>
    <item>
      <title>Re: Import KMZ folder using script</title>
      <link>https://community.esri.com/t5/python-questions/import-kmz-folder-using-script/m-p/1539960#M72895</link>
      <description>&lt;P&gt;Good day, used this:&lt;/P&gt;&lt;P&gt;import arcpy&lt;BR /&gt;arcpy.intelligence.BatchImportData("O:\Active Projects\New Braunfels\01_Project KMZ Files\2013", "H:\GIS PROJECTS\PROPOSALS\Enviromental 2023 Tom\Enviromental 2023 Locations\Enviromental 2023 Locations.gdb", "kml", "SUBFOLDERS", "NO_GROUNDOVERLAY")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;am getting this:&lt;/P&gt;&lt;PRE&gt; Traceback (most recent call last)
File &lt;SPAN class=""&gt;C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\Lib\ast.py&lt;/SPAN&gt;, in &lt;SPAN class=""&gt;parse&lt;/SPAN&gt;:
Line &lt;SPAN class=""&gt;50&lt;/SPAN&gt;:    &lt;SPAN class=""&gt;return&lt;/SPAN&gt; &lt;SPAN class=""&gt;compile&lt;/SPAN&gt;(source, filename, mode, flags,

&lt;SPAN class=""&gt;SyntaxError&lt;/SPAN&gt;: (unicode error) 'unicodeescape' codec can't decode bytes in position 18-19: malformed \N character escape (&amp;lt;string&amp;gt;, line 2)&lt;/PRE&gt;</description>
      <pubDate>Wed, 18 Sep 2024 14:20:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/import-kmz-folder-using-script/m-p/1539960#M72895</guid>
      <dc:creator>Brucemartin</dc:creator>
      <dc:date>2024-09-18T14:20:01Z</dc:date>
    </item>
    <item>
      <title>Re: Import KMZ folder using script</title>
      <link>https://community.esri.com/t5/python-questions/import-kmz-folder-using-script/m-p/1540012#M72896</link>
      <description>&lt;P&gt;a python basic... use raw encoding to format strings ( r"...." )&lt;/P&gt;&lt;LI-CODE lang="python"&gt;# -- needs encoding
a = "O:\Active Projects\New Braunfels\01_Project KMZ Files\2013"
  Cell In[4], line 1
    a = "O:\Active Projects\New Braunfels\01_Project KMZ Files\2013"
                                                                    ^
SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 18-19: malformed \N character escape

a = r"O:\Active Projects\New Braunfels\01_Project KMZ Files\2013"

b = r"H:\GIS PROJECTS\PROPOSALS\Enviromental 2023 Tom\Enviromental 2023 Locations\Enviromental 2023 Locations.gdb"
Locations\Enviromental 2023 Locations.gdb"
a
'O:\\Active Projects\\New Braunfels\\01_Project KMZ Files\\2013'
b
'H:\\GIS PROJECTS\\PROPOSALS\\Enviromental 2023 Tom\\Enviromental 2023 Locations\\Enviromental 2023 Locations.gdb'&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 18 Sep 2024 16:05:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/import-kmz-folder-using-script/m-p/1540012#M72896</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2024-09-18T16:05:42Z</dc:date>
    </item>
  </channel>
</rss>

