<?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 CopyFeature Script returning tuple error in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/copyfeature-script-returning-tuple-error/m-p/1281323#M68239</link>
    <description>&lt;P&gt;I am trying to copy features from one feature class to another and for some reason I keep getting the error:&lt;/P&gt;&lt;P&gt;TypeError: 'tuple' object is not callable&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;import arcpy&lt;/P&gt;&lt;P&gt;from arcpy import env&lt;/P&gt;&lt;P&gt;Ceramic='E:\\GIS Data Generic\\Associated Artifacts\\Associated Artifacts.gdb\\Ceramic'&lt;/P&gt;&lt;P&gt;selCeramic='E:\\GIS Data Generic\\Associated Artifacts\\Associated Artifacts.gdb\\Ceramic_Selected'&lt;/P&gt;&lt;P&gt;arcpy.management.CopyFeatures(Ceramic, selCeramic)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've tried putting the file path directly into the function as well and am receiving the same error.&lt;/P&gt;&lt;P&gt;Other functions such as ExportTable and DeleteFeatures are working fine so I'm not sure why it is reading anything as a tuple.&lt;/P&gt;</description>
    <pubDate>Fri, 21 Apr 2023 15:39:17 GMT</pubDate>
    <dc:creator>KitJones</dc:creator>
    <dc:date>2023-04-21T15:39:17Z</dc:date>
    <item>
      <title>CopyFeature Script returning tuple error</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/copyfeature-script-returning-tuple-error/m-p/1281323#M68239</link>
      <description>&lt;P&gt;I am trying to copy features from one feature class to another and for some reason I keep getting the error:&lt;/P&gt;&lt;P&gt;TypeError: 'tuple' object is not callable&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;import arcpy&lt;/P&gt;&lt;P&gt;from arcpy import env&lt;/P&gt;&lt;P&gt;Ceramic='E:\\GIS Data Generic\\Associated Artifacts\\Associated Artifacts.gdb\\Ceramic'&lt;/P&gt;&lt;P&gt;selCeramic='E:\\GIS Data Generic\\Associated Artifacts\\Associated Artifacts.gdb\\Ceramic_Selected'&lt;/P&gt;&lt;P&gt;arcpy.management.CopyFeatures(Ceramic, selCeramic)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've tried putting the file path directly into the function as well and am receiving the same error.&lt;/P&gt;&lt;P&gt;Other functions such as ExportTable and DeleteFeatures are working fine so I'm not sure why it is reading anything as a tuple.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Apr 2023 15:39:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/copyfeature-script-returning-tuple-error/m-p/1281323#M68239</guid>
      <dc:creator>KitJones</dc:creator>
      <dc:date>2023-04-21T15:39:17Z</dc:date>
    </item>
    <item>
      <title>Re: CopyFeature Script returning tuple error</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/copyfeature-script-returning-tuple-error/m-p/1281327#M68240</link>
      <description>&lt;P&gt;First you need to read the project, let's say you opened the project "&lt;SPAN&gt;Associated Artifacts"&lt;/SPAN&gt;:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import arcpy
aprx = arcpy.mp.ArcGISProject("CURRENT")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;then you can reference the layers/Featureclasses by their name (string) and no need to pass the full path.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, from expand toolbar please use "insert/edit code sample" to show your code, that would make it easier to read.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Apr 2023 15:55:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/copyfeature-script-returning-tuple-error/m-p/1281327#M68240</guid>
      <dc:creator>Mahdi_Ch</dc:creator>
      <dc:date>2023-04-21T15:55:56Z</dc:date>
    </item>
    <item>
      <title>Re: CopyFeature Script returning tuple error</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/copyfeature-script-returning-tuple-error/m-p/1281340#M68241</link>
      <description>&lt;P&gt;looks ok, I'd prefer to use raw formatting on the path r'E:\Stuff.gdb\thing' so maybe try that.&lt;/P&gt;&lt;P&gt;Space in GDB names - probably not recommended&lt;/P&gt;&lt;P&gt;import env - what for?&amp;nbsp; Is this part of a longer script?&amp;nbsp; There must be more going on here.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Apr 2023 16:05:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/copyfeature-script-returning-tuple-error/m-p/1281340#M68241</guid>
      <dc:creator>DavidPike</dc:creator>
      <dc:date>2023-04-21T16:05:13Z</dc:date>
    </item>
    <item>
      <title>Re: CopyFeature Script returning tuple error</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/copyfeature-script-returning-tuple-error/m-p/1281363#M68243</link>
      <description>&lt;P&gt;This is eventually going to be part of a tool so I will eventually read in a geodatabase as a parameter using arcpy.env.workspace. Noted on the code, figured there was an easier way.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Apr 2023 16:25:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/copyfeature-script-returning-tuple-error/m-p/1281363#M68243</guid>
      <dc:creator>KitJones</dc:creator>
      <dc:date>2023-04-21T16:25:48Z</dc:date>
    </item>
    <item>
      <title>Re: CopyFeature Script returning tuple error</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/copyfeature-script-returning-tuple-error/m-p/1281371#M68244</link>
      <description>&lt;P&gt;So I think it must have been the space in the geodatabase since I changed that one thing and now it's working perfectly.&amp;nbsp; So odd that every other function worked fine with the space except for this one. Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 21 Apr 2023 16:35:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/copyfeature-script-returning-tuple-error/m-p/1281371#M68244</guid>
      <dc:creator>KitJones</dc:creator>
      <dc:date>2023-04-21T16:35:49Z</dc:date>
    </item>
  </channel>
</rss>

