<?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: Append .lyr to file geodatabase in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/append-lyr-to-file-geodatabase/m-p/134611#M10550</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Try &lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;arcpy.Append_management(os.path.join(outputFolder,"KML3"),FC,"NO_TEST")
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Edit: You need to import the os module for this method to work of course.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 07:31:59 GMT</pubDate>
    <dc:creator>MathewCoyle</dc:creator>
    <dc:date>2021-12-11T07:31:59Z</dc:date>
    <item>
      <title>Append .lyr to file geodatabase</title>
      <link>https://community.esri.com/t5/python-questions/append-lyr-to-file-geodatabase/m-p/134610#M10549</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi all, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Just learning python script and was wondering if you could help me out. I've got a script that will be converting a KML to lyr and then appending it to a feature class in a file geodatabase. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;import arcpy&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.env.workspace = r"C:\Users\KJacobsen\Desktop\Griffiths\Griffiths.gdb"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.env.overwriteOutput = True&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;#import GPS files&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;input = r"C:\Users\KJacobsen\Desktop\Griffiths\04232012_Documents\DATA from TEDEBAYE\garmin\120418 GARMIN\CCBJ.kmz"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;outputFolder = r"C:\Users\KJacobsen\Desktop\Griffiths"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;lyr = arcpy.KMLToLayer_conversion(input, outputFolder, "KML3")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;FC = r"C:\Users\KJacobsen\Desktop\Griffiths\Griffiths.gdb\CHAMP"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.Append_management(lyr,FC,"NO_TEST")&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm receiving the following error and am unsure of how to proceed... &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Traceback (most recent call last):&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; File "C:\Python26\ArcGIS10.0\lib\site-packages\pythonwin\pywin\framework\scriptutils.py", line 312, in RunScript&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; exec codeObject in __main__.__dict__&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; File "...\Desktop\ImportData.py", line 9, in &amp;lt;module&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.Append_management(lyr,FC,"NO_TEST")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; File "...\ArcGIS\Desktop10.0\arcpy\arcpy\management.py", line 2965, in Append&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; raise e&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ExecuteError: Failed to execute. Parameters are not valid.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ERROR 000349: The input parameter is not a Table View&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Failed to execute (Append).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jun 2012 15:16:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/append-lyr-to-file-geodatabase/m-p/134610#M10549</guid>
      <dc:creator>KylaJacobsen</dc:creator>
      <dc:date>2012-06-04T15:16:14Z</dc:date>
    </item>
    <item>
      <title>Re: Append .lyr to file geodatabase</title>
      <link>https://community.esri.com/t5/python-questions/append-lyr-to-file-geodatabase/m-p/134611#M10550</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Try &lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;arcpy.Append_management(os.path.join(outputFolder,"KML3"),FC,"NO_TEST")
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Edit: You need to import the os module for this method to work of course.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 07:31:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/append-lyr-to-file-geodatabase/m-p/134611#M10550</guid>
      <dc:creator>MathewCoyle</dc:creator>
      <dc:date>2021-12-11T07:31:59Z</dc:date>
    </item>
  </channel>
</rss>

