<?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 arcpy.Copy_management is throwing a runtime error in Geodatabase Questions</title>
    <link>https://community.esri.com/t5/geodatabase-questions/arcpy-copy-management-is-throwing-a-runtime-error/m-p/799262#M2546</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to copy a table from SDE to a local file gdb.&lt;/P&gt;&lt;P&gt;Assuming&lt;/P&gt;&lt;P&gt;&amp;nbsp; SDEworkspace is the full path to the SDE database&lt;/P&gt;&lt;P&gt;&amp;nbsp; outGDB is the full path to the local file gdb&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;arcpy.env.workspace = SEDworkspace&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;tableName = "MasterStreetName"&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;outTableName = "{}\{}".format(outGDB, tableName)&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;arcpy.Copy_management(tableName, outTableName)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Runtime error&amp;nbsp; Traceback (most recent call last):&amp;nbsp; &amp;nbsp;File "&amp;lt;string&amp;gt;", line 1, in &amp;lt;module&amp;gt;&amp;nbsp; &amp;nbsp;File "c:\program files (x86)\arcgis\desktop10.6\arcpy\arcpy\management.py", line 4314, in Copy&amp;nbsp; &amp;nbsp; &amp;nbsp;raise e ExecuteError: ERROR 000840: The value is not a Data Element.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This script used to work and other features are copied correctly, just seem to have problem with tables.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 04 Jul 2019 00:30:01 GMT</pubDate>
    <dc:creator>MayKao1</dc:creator>
    <dc:date>2019-07-04T00:30:01Z</dc:date>
    <item>
      <title>arcpy.Copy_management is throwing a runtime error</title>
      <link>https://community.esri.com/t5/geodatabase-questions/arcpy-copy-management-is-throwing-a-runtime-error/m-p/799262#M2546</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to copy a table from SDE to a local file gdb.&lt;/P&gt;&lt;P&gt;Assuming&lt;/P&gt;&lt;P&gt;&amp;nbsp; SDEworkspace is the full path to the SDE database&lt;/P&gt;&lt;P&gt;&amp;nbsp; outGDB is the full path to the local file gdb&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;arcpy.env.workspace = SEDworkspace&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;tableName = "MasterStreetName"&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;outTableName = "{}\{}".format(outGDB, tableName)&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;arcpy.Copy_management(tableName, outTableName)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Runtime error&amp;nbsp; Traceback (most recent call last):&amp;nbsp; &amp;nbsp;File "&amp;lt;string&amp;gt;", line 1, in &amp;lt;module&amp;gt;&amp;nbsp; &amp;nbsp;File "c:\program files (x86)\arcgis\desktop10.6\arcpy\arcpy\management.py", line 4314, in Copy&amp;nbsp; &amp;nbsp; &amp;nbsp;raise e ExecuteError: ERROR 000840: The value is not a Data Element.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This script used to work and other features are copied correctly, just seem to have problem with tables.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jul 2019 00:30:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/arcpy-copy-management-is-throwing-a-runtime-error/m-p/799262#M2546</guid>
      <dc:creator>MayKao1</dc:creator>
      <dc:date>2019-07-04T00:30:01Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy.Copy_management is throwing a runtime error</title>
      <link>https://community.esri.com/t5/geodatabase-questions/arcpy-copy-management-is-throwing-a-runtime-error/m-p/799263#M2547</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/225271"&gt;May,&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One&amp;nbsp;notable item is a possible typo in your script,&amp;nbsp;"arcpy.env.workspace = SEDworkspace" may need to be&amp;nbsp;"SDEworkspace".&amp;nbsp; Or is this just a typo in your post?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jul 2019 04:18:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/arcpy-copy-management-is-throwing-a-runtime-error/m-p/799263#M2547</guid>
      <dc:creator>LanceCole</dc:creator>
      <dc:date>2019-07-04T04:18:16Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy.Copy_management is throwing a runtime error</title>
      <link>https://community.esri.com/t5/geodatabase-questions/arcpy-copy-management-is-throwing-a-runtime-error/m-p/799264#M2548</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What do you mean by this :&lt;/P&gt;&lt;P&gt;&lt;EM style="background-color: #ffffff; "&gt;SDEworkspace is the full path to the SDE database&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;The variable SDEworkspace should contain a full path and name of a sde connection file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jul 2019 08:55:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/arcpy-copy-management-is-throwing-a-runtime-error/m-p/799264#M2548</guid>
      <dc:creator>NeilAyres</dc:creator>
      <dc:date>2019-07-04T08:55:38Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy.Copy_management is throwing a runtime error</title>
      <link>https://community.esri.com/t5/geodatabase-questions/arcpy-copy-management-is-throwing-a-runtime-error/m-p/799265#M2549</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's just a typo in the post.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jul 2019 16:33:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/arcpy-copy-management-is-throwing-a-runtime-error/m-p/799265#M2549</guid>
      <dc:creator>MayKao1</dc:creator>
      <dc:date>2019-07-05T16:33:29Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy.Copy_management is throwing a runtime error</title>
      <link>https://community.esri.com/t5/geodatabase-questions/arcpy-copy-management-is-throwing-a-runtime-error/m-p/799266#M2550</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It has the full path name of a sde connection file.&lt;/P&gt;&lt;P&gt;I just posted pseudo code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jul 2019 16:34:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/arcpy-copy-management-is-throwing-a-runtime-error/m-p/799266#M2550</guid>
      <dc:creator>MayKao1</dc:creator>
      <dc:date>2019-07-05T16:34:24Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy.Copy_management is throwing a runtime error</title>
      <link>https://community.esri.com/t5/geodatabase-questions/arcpy-copy-management-is-throwing-a-runtime-error/m-p/799267#M2551</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/225271"&gt;May,&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Does the error message listed correspond to your sudo code? &amp;nbsp;In particular the &lt;STRONG&gt;File “&amp;lt;string&amp;gt;”, line 1&lt;/STRONG&gt; relate to the &lt;STRONG&gt;arcpy.env.workspace = SDEworkspace&lt;/STRONG&gt;&amp;nbsp;line 1 in your sudo code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;STRONG&gt;arcpy.env.workspace = SEDworkspace&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;tableName = "MasterStreetName"&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;outTableName = "{}\{}".format(outGDB, tableName)&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;arcpy.Copy&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Runtime error&amp;nbsp; Traceback (most recent call last):&amp;nbsp; &amp;nbsp;&lt;STRONG&gt;File "&amp;lt;string&amp;gt;", line 1&lt;/STRONG&gt;, in &amp;lt;module&amp;gt;&amp;nbsp; &amp;nbsp;File "c:\program files (x86)\arcgis\desktop10.6\arcpy\arcpy\management.py", line 4314, in Copy&amp;nbsp; &amp;nbsp; &amp;nbsp;raise e ExecuteError: ERROR 000840: The value is not a Data Element.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) is this running as a stand-alone script or in ArcGIS. &amp;nbsp;I have seen this error when coping a feature when it is active in the TOC from desktop scripts.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 Jul 2019 13:03:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/arcpy-copy-management-is-throwing-a-runtime-error/m-p/799267#M2551</guid>
      <dc:creator>LanceCole</dc:creator>
      <dc:date>2019-07-07T13:03:55Z</dc:date>
    </item>
  </channel>
</rss>

