<?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 Portal - Publish CSV as Table (not FeatureLayer) in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/portal-publish-csv-as-table-not-featurelayer/m-p/868317#M4537</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;upload_file = "c:\data.csv"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;file_properties = {'title': friendly_name,&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;'tags': 'public, data, animal, welfare',&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;'type': 'CSV'&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;item = gis.content.add(file_properties, upload_file)&lt;BR /&gt;misc = item.publish()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;===&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to publish it as a Table but item.publish() results in a FeatureLayer being published.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I do this interactively through portal, there is an option &lt;STRONG&gt;Locate Features By: coordinates or none&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not finding where I can in Python set this to none.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suggestions?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Apr 2020 20:55:24 GMT</pubDate>
    <dc:creator>GregHorne</dc:creator>
    <dc:date>2020-04-16T20:55:24Z</dc:date>
    <item>
      <title>Portal - Publish CSV as Table (not FeatureLayer)</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/portal-publish-csv-as-table-not-featurelayer/m-p/868317#M4537</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;upload_file = "c:\data.csv"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;file_properties = {'title': friendly_name,&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;'tags': 'public, data, animal, welfare',&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;'type': 'CSV'&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;item = gis.content.add(file_properties, upload_file)&lt;BR /&gt;misc = item.publish()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;===&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to publish it as a Table but item.publish() results in a FeatureLayer being published.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I do this interactively through portal, there is an option &lt;STRONG&gt;Locate Features By: coordinates or none&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not finding where I can in Python set this to none.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suggestions?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Apr 2020 20:55:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/portal-publish-csv-as-table-not-featurelayer/m-p/868317#M4537</guid>
      <dc:creator>GregHorne</dc:creator>
      <dc:date>2020-04-16T20:55:24Z</dc:date>
    </item>
    <item>
      <title>Re: Portal - Publish CSV as Table (not FeatureLayer)</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/portal-publish-csv-as-table-not-featurelayer/m-p/868318#M4538</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey &lt;A href="https://community.esri.com/migrated-users/394947" target="_blank"&gt;Greg Horne&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you look here you can see documentation on adding a csv and then publishing it as a feature layer:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/python/sample-notebooks/publishing-sd-shapefiles-and-csv/" title="https://developers.arcgis.com/python/sample-notebooks/publishing-sd-shapefiles-and-csv/" rel="nofollow noopener noreferrer" target="_blank"&gt;Publishing SDs, Shapefiles and CSVs | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you use just this part it should just add to the portal and not publish a feature layer:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;

upload_file = "c:\data.csv"
&amp;nbsp;
file_properties = {'title': friendly_name,
 &amp;nbsp;&amp;nbsp;&amp;nbsp;'tags': 'public, data, animal, welfare',
 &amp;nbsp;&amp;nbsp;&amp;nbsp;'type': 'CSV'
}
&amp;nbsp;
item = gis.content.add(file_properties, upload_file)
&lt;/BLOCKQUOTE&gt;&lt;/PRE&gt;&lt;P&gt;This line here is the part that is publishing the csv as a feature layer.&lt;/P&gt;&lt;P&gt;misc = item.publish()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ben&lt;/P&gt;&lt;HR /&gt;&lt;P&gt;&lt;EM&gt;If this answer was helpful please mark it as helpful. If this answer solved your question please mark it as the answer to help others who have the same question.&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 17:01:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/portal-publish-csv-as-table-not-featurelayer/m-p/868318#M4538</guid>
      <dc:creator>BenTurrell</dc:creator>
      <dc:date>2021-12-12T17:01:20Z</dc:date>
    </item>
  </channel>
</rss>

