<?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: Using arcpy to copy a portal feature service to a fgdb feature class in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/using-arcpy-to-copy-a-portal-feature-service-to-a/m-p/4284#M393</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Joshua-&amp;nbsp; esri tech support provided this link to me :&amp;nbsp;&lt;A class="link-titled" href="https://support.esri.com/en/technical-article/000012968" title="https://support.esri.com/en/technical-article/000012968"&gt;How To: Create and download a file geodatabase replica from a hosted feature service using Python&lt;/A&gt;&amp;nbsp;.&amp;nbsp; This particular approach creates a replica and uses userLib2(); as I told them, I'm not interested in a replica and userlib2() is not available in 3.x.&amp;nbsp; Maybe ESRI can get on board to provide us a more modern approach....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 13 Jan 2020 15:28:31 GMT</pubDate>
    <dc:creator>JoeBorgione</dc:creator>
    <dc:date>2020-01-13T15:28:31Z</dc:date>
    <item>
      <title>Using arcpy to copy a portal feature service to a fgdb feature class</title>
      <link>https://community.esri.com/t5/python-questions/using-arcpy-to-copy-a-portal-feature-service-to-a/m-p/4281#M390</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ArcGIS Pro 2.4.3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In pro, you can add a feature service and manually export the features to a file geodatabase feature class.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do you mimic that functionality in python?&amp;nbsp; I have tried:&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; arcpy
source &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; r&lt;SPAN class="string token"&gt;'https://path/toOur/rest/services/MapServer/0'&lt;/SPAN&gt;

arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;FeatureClassToFeatureClass_conversion&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;source&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;r&lt;SPAN class="string token"&gt;'C:\pathTo\Test.gdb'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'newFC'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;and get :&lt;/P&gt;&lt;P&gt;ExecuteError: ERROR 000210: Cannot create output C:\pathTo\Test.gdb\newFC&lt;BR /&gt;Failed to execute (FeatureClassToFeatureClass).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://support.esri.com/en/technical-article/000011810" rel="nofollow noopener noreferrer" target="_blank"&gt;I googled the error&lt;/A&gt;, and then tried to use the same python approach with an Egdb feature class as the source, and it worked splendidly.&amp;nbsp; Is this a case for the python api?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 20:10:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/using-arcpy-to-copy-a-portal-feature-service-to-a/m-p/4281#M390</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2021-12-10T20:10:21Z</dc:date>
    </item>
    <item>
      <title>Re: Using arcpy to copy a portal feature service to a fgdb feature class</title>
      <link>https://community.esri.com/t5/python-questions/using-arcpy-to-copy-a-portal-feature-service-to-a/m-p/4282#M391</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Joe, ArcPy isn't really built to directly deal with "web GIS," which is why the &lt;A class="link-titled" href="https://developers.arcgis.com/python/" title="https://developers.arcgis.com/python/"&gt;ArcGIS API for Python | ArcGIS for Developers&lt;/A&gt; was developed.&amp;nbsp; Use &lt;A class="link-titled" href="https://developers.arcgis.com/python/api-reference/arcgis.features.toc.html#featureset" title="https://developers.arcgis.com/python/api-reference/arcgis.features.toc.html#featureset"&gt;arcgis.features module — arcgis 1.7.0 documentation&lt;/A&gt; to retrieve a FeatureLayer of the service layer, then query it to get a FeatureSet that has a save option to file geodatabase.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Jan 2020 15:46:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/using-arcpy-to-copy-a-portal-feature-service-to-a/m-p/4282#M391</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2020-01-12T15:46:58Z</dc:date>
    </item>
    <item>
      <title>Re: Using arcpy to copy a portal feature service to a fgdb feature class</title>
      <link>https://community.esri.com/t5/python-questions/using-arcpy-to-copy-a-portal-feature-service-to-a/m-p/4283#M392</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mondays project...&amp;nbsp; Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Jan 2020 16:04:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/using-arcpy-to-copy-a-portal-feature-service-to-a/m-p/4283#M392</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2020-01-12T16:04:20Z</dc:date>
    </item>
    <item>
      <title>Re: Using arcpy to copy a portal feature service to a fgdb feature class</title>
      <link>https://community.esri.com/t5/python-questions/using-arcpy-to-copy-a-portal-feature-service-to-a/m-p/4284#M393</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Joshua-&amp;nbsp; esri tech support provided this link to me :&amp;nbsp;&lt;A class="link-titled" href="https://support.esri.com/en/technical-article/000012968" title="https://support.esri.com/en/technical-article/000012968"&gt;How To: Create and download a file geodatabase replica from a hosted feature service using Python&lt;/A&gt;&amp;nbsp;.&amp;nbsp; This particular approach creates a replica and uses userLib2(); as I told them, I'm not interested in a replica and userlib2() is not available in 3.x.&amp;nbsp; Maybe ESRI can get on board to provide us a more modern approach....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jan 2020 15:28:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/using-arcpy-to-copy-a-portal-feature-service-to-a/m-p/4284#M393</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2020-01-13T15:28:31Z</dc:date>
    </item>
    <item>
      <title>Re: Using arcpy to copy a portal feature service to a fgdb feature class</title>
      <link>https://community.esri.com/t5/python-questions/using-arcpy-to-copy-a-portal-feature-service-to-a/m-p/4285#M394</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Wow, that is an Esri Support #fail for sure.&amp;nbsp; That technical article is ancient from a web GIS perspective.&amp;nbsp; It was "last published" right around the time of the first release of the ArcGIS API for Python, which likely explains why it is not using that API and instead having people make HTTP calls themselves.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here are some basic steps to download a feature service layer as a feature class in a file geodatabase:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;from&lt;/SPAN&gt; arcgis&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;gis &lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; GIS
&lt;SPAN class="keyword token"&gt;from&lt;/SPAN&gt; arcgis&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;features &lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; FeatureLayer

url_gis &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="comment token"&gt;# URL to AGOL or Portal&lt;/SPAN&gt;
url_fl &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;  &lt;SPAN class="comment token"&gt;# URL for feature layer to download as feature class&lt;/SPAN&gt;
user &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;  &lt;SPAN class="comment token"&gt;# AGOL or Portal username&lt;/SPAN&gt;
pwd &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="comment token"&gt;# user password&lt;/SPAN&gt;
fgdb &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="comment token"&gt;# path to file geodatabase&lt;/SPAN&gt;
fc &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="comment token"&gt;# name of feature class&lt;/SPAN&gt;

gis &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; GIS&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;url_gis&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; user&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; pwd&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
fl &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; FeatureLayer&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;url_fl&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
fs &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; fl&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;query&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
fs&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;save&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;fgdb&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; fc&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 20:10:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/using-arcpy-to-copy-a-portal-feature-service-to-a/m-p/4285#M394</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2021-12-10T20:10:23Z</dc:date>
    </item>
    <item>
      <title>Re: Using arcpy to copy a portal feature service to a fgdb feature class</title>
      <link>https://community.esri.com/t5/python-questions/using-arcpy-to-copy-a-portal-feature-service-to-a/m-p/4286#M395</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you so much Joshua. I've been floundering about with Jupyter notebooks for the pas hour or so, but this looks just like what I need.&amp;nbsp; Locally, we do have a little glitch&amp;nbsp; with the GIS() method, but I'm working with the S.A to get past that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jan 2020 18:20:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/using-arcpy-to-copy-a-portal-feature-service-to-a/m-p/4286#M395</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2020-01-13T18:20:25Z</dc:date>
    </item>
    <item>
      <title>Re: Using arcpy to copy a portal feature service to a fgdb feature class</title>
      <link>https://community.esri.com/t5/python-questions/using-arcpy-to-copy-a-portal-feature-service-to-a/m-p/4287#M396</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Joshua- following the instructions given here:&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/python/guide/working-with-different-authentication-schemes/#User-authentication-with-OAuth-2.0" title="https://developers.arcgis.com/python/guide/working-with-different-authentication-schemes/#User-authentication-with-OAuth-2.0" rel="nofollow noopener noreferrer" target="_blank"&gt;Working with different authentication schemes | ArcGIS for Developers&lt;/A&gt;&amp;nbsp; I'm taking a slightly different approach in passing the user, and pwd variables; I need to pass a 'client_id' as well:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;gis &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; GIS&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;url_gis&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;user&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;pwd&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;client_id &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'Ox05rrnllB1biFgW'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I get an error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;  File &lt;SPAN class="string token"&gt;"C:\EnvClones\arcgispro-py3-clone243\lib\site-packages\arcgis\_impl\connection.py"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; line &lt;SPAN class="number token"&gt;449&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; oauth_authenticate
    &lt;SPAN class="keyword token"&gt;from&lt;/SPAN&gt; bs4 &lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; BeautifulSoup

ModuleNotFoundError&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; No module named &lt;SPAN class="string token"&gt;'bs4'&lt;/SPAN&gt;‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not having a whole lot of luck with dr.google trying to find a remedy for this: it seems as though with the python 3.6 install from Pro, bs4 is no where to be found...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;edited to add: actually found a couple threads that suggest using pip3 to install bs4 into python 3.6: &lt;A href="https://www.quora.com/How-do-I-install-Beautiful-Soup-in-Python-3-6" rel="nofollow noopener noreferrer" target="_blank"&gt;here is one from quora&lt;/A&gt;.&amp;nbsp; &lt;A href="https://anaconda.org/anaconda/beautifulsoup4" rel="nofollow noopener noreferrer" target="_blank"&gt;Anaconda offers one as well.&lt;/A&gt;&amp;nbsp; I guess I need to use one of these while in my cloned environment?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 20:10:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/using-arcpy-to-copy-a-portal-feature-service-to-a/m-p/4287#M396</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2021-12-10T20:10:26Z</dc:date>
    </item>
    <item>
      <title>Re: Using arcpy to copy a portal feature service to a fgdb feature class</title>
      <link>https://community.esri.com/t5/python-questions/using-arcpy-to-copy-a-portal-feature-service-to-a/m-p/4288#M397</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It appears to be trying to load a Python package/module that isn't installed in your virtual env.&amp;nbsp; Confirm that beautifulsoup4 is installed, and if not, install it.&amp;nbsp; It might be a defect in ArcGIS API for Python where they aren't packaging a dependency.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jan 2020 19:59:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/using-arcpy-to-copy-a-portal-feature-service-to-a/m-p/4288#M397</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2020-01-13T19:59:38Z</dc:date>
    </item>
    <item>
      <title>Re: Using arcpy to copy a portal feature service to a fgdb feature class</title>
      <link>https://community.esri.com/t5/python-questions/using-arcpy-to-copy-a-portal-feature-service-to-a/m-p/4289#M398</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;From Esri Tech Support:&amp;nbsp;&amp;nbsp;&lt;SPAN style="font-size: 10.5pt;"&gt;&lt;STRONG&gt;BUG-000118107 -&amp;nbsp;In ArcGIS API for Python, requests for installing a third-party module named bs4 when the User Authentication with OAuth 2.0 method is used to login into ArcGIS Online.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;&lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;by the way:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/478305_pastedImage_1.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;&lt;A href="https://community.esri.com/migrated-users/45316"&gt;Kory Kramer&lt;/A&gt;‌&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jan 2020 21:11:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/using-arcpy-to-copy-a-portal-feature-service-to-a/m-p/4289#M398</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2020-01-13T21:11:51Z</dc:date>
    </item>
    <item>
      <title>Re: Using arcpy to copy a portal feature service to a fgdb feature class</title>
      <link>https://community.esri.com/t5/python-questions/using-arcpy-to-copy-a-portal-feature-service-to-a/m-p/4290#M399</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/478303_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://support.esri.com/en/bugs/nimbus/QlVHLTAwMDExODEwNw==" title="https://support.esri.com/en/bugs/nimbus/QlVHLTAwMDExODEwNw=="&gt;BUG-000118107: In ArcGIS API for Python, requests for installing a ..&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jan 2020 21:38:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/using-arcpy-to-copy-a-portal-feature-service-to-a/m-p/4290#M399</guid>
      <dc:creator>KoryKramer</dc:creator>
      <dc:date>2020-01-13T21:38:35Z</dc:date>
    </item>
    <item>
      <title>Re: Using arcpy to copy a portal feature service to a fgdb feature class</title>
      <link>https://community.esri.com/t5/python-questions/using-arcpy-to-copy-a-portal-feature-service-to-a/m-p/4291#M400</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I must be clairvoyant.&amp;nbsp; Nah, just worked with Esri for a long time. &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&amp;nbsp; This bug is fairly simple to work around yourself, assuming there isn't yet another bug just waiting right around the corner once the package import is resolved.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jan 2020 21:49:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/using-arcpy-to-copy-a-portal-feature-service-to-a/m-p/4291#M400</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2020-01-13T21:49:48Z</dc:date>
    </item>
    <item>
      <title>Re: Using arcpy to copy a portal feature service to a fgdb feature class</title>
      <link>https://community.esri.com/t5/python-questions/using-arcpy-to-copy-a-portal-feature-service-to-a/m-p/4292#M401</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;After going back and forth on this with the portal admin here, Joshua's approach works for me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jan 2020 22:22:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/using-arcpy-to-copy-a-portal-feature-service-to-a/m-p/4292#M401</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2020-01-13T22:22:01Z</dc:date>
    </item>
    <item>
      <title>Re: Using arcpy to copy a portal feature service to a fgdb feature class</title>
      <link>https://community.esri.com/t5/python-questions/using-arcpy-to-copy-a-portal-feature-service-to-a/m-p/4293#M402</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/3420"&gt;Joshua Bixby&lt;/A&gt;‌ - Back when I used to work with MapService type services, you had to set a maximum number of features that could be retrieved. The default was 1000 and you could set it higher, but a very large data set could always be more than whatever number you put in there. So a query like this always ran the risk of not getting all the features.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is that an issue with your code querying FeatureService type services? If so, any suggestions for a work-around? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Feb 2020 01:26:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/using-arcpy-to-copy-a-portal-feature-service-to-a/m-p/4293#M402</guid>
      <dc:creator>davedoesgis</dc:creator>
      <dc:date>2020-02-04T01:26:54Z</dc:date>
    </item>
    <item>
      <title>Re: Using arcpy to copy a portal feature service to a fgdb feature class</title>
      <link>https://community.esri.com/t5/python-questions/using-arcpy-to-copy-a-portal-feature-service-to-a/m-p/4294#M403</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;David, the ArcGIS API for Python is REST API-aware, so the underlying code addresses the feature limit of services and does the appropriate batching of records to retrieve the entire data set.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Feb 2020 15:06:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/using-arcpy-to-copy-a-portal-feature-service-to-a/m-p/4294#M403</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2020-02-04T15:06:24Z</dc:date>
    </item>
    <item>
      <title>Re: Using arcpy to copy a portal feature service to a fgdb feature class</title>
      <link>https://community.esri.com/t5/python-questions/using-arcpy-to-copy-a-portal-feature-service-to-a/m-p/4295#M404</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This code is very good, but my results is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/499789_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you help me?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jul 2020 21:18:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/using-arcpy-to-copy-a-portal-feature-service-to-a/m-p/4295#M404</guid>
      <dc:creator>SoratoSouza_e_Silva</dc:creator>
      <dc:date>2020-07-09T21:18:13Z</dc:date>
    </item>
    <item>
      <title>Re: Using arcpy to copy a portal feature service to a fgdb feature class</title>
      <link>https://community.esri.com/t5/python-questions/using-arcpy-to-copy-a-portal-feature-service-to-a/m-p/1276722#M67380</link>
      <description>&lt;P&gt;Hi Josh! Hoping to troubleshoot an error I'm getting in the query portion of my code. I think because of the number of features. Any tips on how I can adjust my code to accommodate the size of the feature layer I'm trying to download. The error I get is KeyError: 'count'&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="KoriKurtzeborn_0-1680906457684.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/67531iB0EB82B61E47C759/image-size/medium?v=v2&amp;amp;px=400" role="button" title="KoriKurtzeborn_0-1680906457684.png" alt="KoriKurtzeborn_0-1680906457684.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Apr 2023 22:27:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/using-arcpy-to-copy-a-portal-feature-service-to-a/m-p/1276722#M67380</guid>
      <dc:creator>KoriKurtzeborn</dc:creator>
      <dc:date>2023-04-07T22:27:47Z</dc:date>
    </item>
    <item>
      <title>Re: Using arcpy to copy a portal feature service to a fgdb feature class</title>
      <link>https://community.esri.com/t5/python-questions/using-arcpy-to-copy-a-portal-feature-service-to-a/m-p/1309213#M68195</link>
      <description>&lt;P&gt;Thanks, this is helpful! What would be the most efficient way to include attachments with the feature layer?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jul 2023 18:15:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/using-arcpy-to-copy-a-portal-feature-service-to-a/m-p/1309213#M68195</guid>
      <dc:creator>KatGIS</dc:creator>
      <dc:date>2023-07-18T18:15:20Z</dc:date>
    </item>
    <item>
      <title>Re: Using arcpy to copy a portal feature service to a fgdb feature class</title>
      <link>https://community.esri.com/t5/python-questions/using-arcpy-to-copy-a-portal-feature-service-to-a/m-p/1400812#M70167</link>
      <description>&lt;P&gt;Is there an modification of this that would work with an enterprise geodatabase? I have a script uses the API to query a feature service and then export the data to a table (no spatial data) in my EGDB. I also use arcpy to set privileges'. I currently use the API and ArcPy, I'm wondering if there is a way to do something similar to the .save() method to eliminate the arcpy. I suppose I could do something like an append to get around overwriting the entire table and having to reset privileges.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Mar 2024 11:24:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/using-arcpy-to-copy-a-portal-feature-service-to-a/m-p/1400812#M70167</guid>
      <dc:creator>JamesTurner2</dc:creator>
      <dc:date>2024-03-26T11:24:13Z</dc:date>
    </item>
  </channel>
</rss>

