<?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: Query FileGeodatabase Append to Feature Service in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/query-filegeodatabase-append-to-feature-service/m-p/1578909#M73637</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/633156"&gt;@kapalczynski&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;How does this workflow suit your needs (using ArcPy)&lt;/P&gt;&lt;P&gt;1. Select by Attributes of your Table.&lt;/P&gt;&lt;P&gt;2. Use the ArcPy Append tool (only selected features from step 1 will be appended). The target is your Table URL - set to maintain attachments (although In think it does this by default)&lt;/P&gt;&lt;P&gt;My preference is to use ArcPy to append to the Table in the Enterprise Geodatabase, but appending to the Service will work too.&amp;nbsp;&lt;/P&gt;&lt;P&gt;All the best,&lt;/P&gt;&lt;P&gt;Glen&lt;/P&gt;</description>
    <pubDate>Sat, 25 Jan 2025 13:50:11 GMT</pubDate>
    <dc:creator>Clubdebambos</dc:creator>
    <dc:date>2025-01-25T13:50:11Z</dc:date>
    <item>
      <title>Query FileGeodatabase Append to Feature Service</title>
      <link>https://community.esri.com/t5/python-questions/query-filegeodatabase-append-to-feature-service/m-p/1513577#M71174</link>
      <description>&lt;P&gt;I have a local File Geodatabase that I need to query a TABLE and append those records along with ATTACHMENTS to an Oracle DB SDE.&lt;/P&gt;&lt;P&gt;I would rather hit the Service directly using edit_features , but if its easier to hit the db directly I can go that route.&amp;nbsp; The big issue is that I NEED the attachments to come along with the TABLE values.&lt;/P&gt;&lt;P&gt;I have done this before but that was reading JSON files that I scraped from a Service and Attachments were NOT needed... SO I think a different approach is warranted.&lt;/P&gt;&lt;LI-CODE lang="c"&gt;        for x in os.listdir(path):
            if x.startswith("output"):
                filetoImport = path + x
                f = open(filetoImport)
                data = json.load(f)
                featureAddingAdd = data['features']
                add_result = ports_layer.edit_features(adds = featureAddingAdd)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;QUESTION:&lt;/P&gt;&lt;P&gt;I guess the basic question is whats the BEST way to query a Local File Geodatabase with a WHERE CLAUSE to get specific records from a TABLE and then add those TABLE records and ATTACHMENTS to an Enterprise DB via REST API 'edit_features'&lt;/P&gt;</description>
      <pubDate>Thu, 01 Aug 2024 13:21:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/query-filegeodatabase-append-to-feature-service/m-p/1513577#M71174</guid>
      <dc:creator>kapalczynski</dc:creator>
      <dc:date>2024-08-01T13:21:27Z</dc:date>
    </item>
    <item>
      <title>Re: Query FileGeodatabase Append to Feature Service</title>
      <link>https://community.esri.com/t5/python-questions/query-filegeodatabase-append-to-feature-service/m-p/1578909#M73637</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/633156"&gt;@kapalczynski&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;How does this workflow suit your needs (using ArcPy)&lt;/P&gt;&lt;P&gt;1. Select by Attributes of your Table.&lt;/P&gt;&lt;P&gt;2. Use the ArcPy Append tool (only selected features from step 1 will be appended). The target is your Table URL - set to maintain attachments (although In think it does this by default)&lt;/P&gt;&lt;P&gt;My preference is to use ArcPy to append to the Table in the Enterprise Geodatabase, but appending to the Service will work too.&amp;nbsp;&lt;/P&gt;&lt;P&gt;All the best,&lt;/P&gt;&lt;P&gt;Glen&lt;/P&gt;</description>
      <pubDate>Sat, 25 Jan 2025 13:50:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/query-filegeodatabase-append-to-feature-service/m-p/1578909#M73637</guid>
      <dc:creator>Clubdebambos</dc:creator>
      <dc:date>2025-01-25T13:50:11Z</dc:date>
    </item>
  </channel>
</rss>

