<?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: How to use Python API to export Online Feature Class as CSV? in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-use-python-api-to-export-online-feature/m-p/820494#M2763</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Luke,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just installed Pro 2.2 and the code still works for me.  It looks like 2.2 comes with the 1.4.1 API version- did you upgrade to 1.4.2?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mattias.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 29 Jun 2018 16:57:41 GMT</pubDate>
    <dc:creator>MattiasWallin</dc:creator>
    <dc:date>2018-06-29T16:57:41Z</dc:date>
    <item>
      <title>How to use Python API to export Online Feature Class as CSV?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-use-python-api-to-export-online-feature/m-p/820491#M2760</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm currently using the ArcREST API to download a feature class stored online as a CSV but I know that this is deprecated and the Python API is supposed to replace it. Can anyone offer any solutions for how to use the new API to download the attributes of a feature class in CSV format?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have attempted this (&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;) but it doesn't seem to work and also it seems to only offer gdb as the output whereas I need CSV.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope someone can help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Apr 2018 13:22:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-use-python-api-to-export-online-feature/m-p/820491#M2760</guid>
      <dc:creator>GeorgeClutterbuck</dc:creator>
      <dc:date>2018-04-20T13:22:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Python API to export Online Feature Class as CSV?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-use-python-api-to-export-online-feature/m-p/820492#M2761</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure if I understand the problem correct but have you tried using the Spatial DataFrame?&lt;/P&gt;&lt;P&gt;This works for me:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="402565" alt="Save to .CSV example" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/402565_SaveToCSV.PNG" style="width: 620px; height: 474px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Apr 2018 16:07:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-use-python-api-to-export-online-feature/m-p/820492#M2761</guid>
      <dc:creator>MattiasWallin</dc:creator>
      <dc:date>2018-04-20T16:07:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Python API to export Online Feature Class as CSV?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-use-python-api-to-export-online-feature/m-p/820493#M2762</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mattias,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not sure if can help but since the update to ArcGIS Pro 2.2 and the latest Python 3, your method is now broken for me... the line:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sdf = ethosequip.layers[0].query().df&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;produces:&lt;/P&gt;&lt;PRE style="color: #000000; background-color: #ffffff; border: 0px; font-size: 14px; padding: 1px 0px;"&gt;&lt;SPAN class="" style="color: #b22b31; font-weight: bold;"&gt;ValueError&lt;/SPAN&gt;: Invalid geometry type for method&lt;/PRE&gt;&lt;P&gt;The method still works on a pc that I haven't updated to the latest python... bit concerning that a minor python update seems to have broken it. I have been trying to figure out why but am drawing a blank. Any help would be great. I am also trying to use the export function but having no joy (&lt;A class="link-titled" href="https://esri.github.io/arcgis-python-api/apidoc/html/arcgis.gis.toc.html?highlight=export#arcgis.gis.Item.export" title="https://esri.github.io/arcgis-python-api/apidoc/html/arcgis.gis.toc.html?highlight=export#arcgis.gis.Item.export"&gt;arcgis.gis module — arcgis 1.4.2 documentation&lt;/A&gt;&amp;nbsp;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Luke&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jun 2018 11:45:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-use-python-api-to-export-online-feature/m-p/820493#M2762</guid>
      <dc:creator>GeorgeClutterbuck</dc:creator>
      <dc:date>2018-06-29T11:45:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Python API to export Online Feature Class as CSV?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-use-python-api-to-export-online-feature/m-p/820494#M2763</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Luke,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just installed Pro 2.2 and the code still works for me.  It looks like 2.2 comes with the 1.4.1 API version- did you upgrade to 1.4.2?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mattias.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jun 2018 16:57:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-use-python-api-to-export-online-feature/m-p/820494#M2763</guid>
      <dc:creator>MattiasWallin</dc:creator>
      <dc:date>2018-06-29T16:57:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Python API to export Online Feature Class as CSV?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-use-python-api-to-export-online-feature/m-p/820495#M2764</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mattias,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That's odd, it doesn't work on any of our computers running 2.2... I was running api version 1.4.1, i upgraded it to 1.4.2 today and it still creates the same error. It's very frustrating error and all the more if the script is working fine on your 2.2!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Luke&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jul 2018 15:08:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-use-python-api-to-export-online-feature/m-p/820495#M2764</guid>
      <dc:creator>GeorgeClutterbuck</dc:creator>
      <dc:date>2018-07-23T15:08:16Z</dc:date>
    </item>
  </channel>
</rss>

