<?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: Publish CSV to Enterprise Portal Errors in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/publish-csv-to-enterprise-portal-errors/m-p/1591328#M11193</link>
    <description>&lt;P&gt;I've been using this code to upload and publish a csv file with no location to ArcGIS Enterprise (Portal).&amp;nbsp; Works fine, however recently &lt;EM&gt;content.add&lt;/EM&gt; has been deprecated and running the code will throw a warning message.&amp;nbsp; Users are advised to use &lt;EM&gt;Folder.add&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;I'm unable to locate a sample code or find anything useful researching the ArcGIS API for Python documentation.&amp;nbsp; All examples I've seen so far are for publishing csv with XY locations.&amp;nbsp; Any help you can provide getting me out of this rabbit-hole is greatly appreciated!&amp;nbsp; My code is below&lt;/P&gt;&lt;P&gt;from arcgis.gis import GIS&lt;BR /&gt;gis = GIS("home")&lt;BR /&gt;csv_file = r"C:\data\Demo_noLocation.csv"&lt;BR /&gt;csv_item = gis.content.add({}, csv_file)&lt;BR /&gt;display(csv_item)&lt;BR /&gt;params={"type":"csv","locationType":"none"}&lt;BR /&gt;csv_item.publish(publish_parameters=params)&lt;/P&gt;</description>
    <pubDate>Mon, 03 Mar 2025 18:40:05 GMT</pubDate>
    <dc:creator>John_Herrera</dc:creator>
    <dc:date>2025-03-03T18:40:05Z</dc:date>
    <item>
      <title>Publish CSV to Enterprise Portal Errors</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/publish-csv-to-enterprise-portal-errors/m-p/1035018#M5683</link>
      <description>&lt;P&gt;I'm trying to do something simple using the following help doc, but I can not seem to publish.&lt;BR /&gt;&lt;A href="https://geosaurus.maps.arcgis.com/home/item.html?id=a1db6db172bc49a8932daacc2ed3d3ac#preview" target="_blank"&gt;https://geosaurus.maps.arcgis.com/home/item.html?id=a1db6db172bc49a8932daacc2ed3d3ac#preview&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I'm able to add it to the Portal, but I cannot get it to publish.&lt;/P&gt;&lt;LI-CODE lang="python"&gt;from IPython.display import display
from arcgis.gis import GIS
import os
gis = GIS('Home')

csv_file = r'C:\Users\jpilbeam\Downloads\c19_Vaccine_Current.csv'
csv_item = gis.content.add({}, csv_file)#add csv to Portal

csv_layer = csv_item.publish(None, file_type='csv')&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Error:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;---------------------------------------------------------------------------
KeyError                                  Traceback (most recent call last)
In  [15]:
Line 1:     csv_layer = csv_item.publish(None, file_type='csv')

File C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\gis\__init__.py, in publish:
Line 10353: elif not buildInitialCache and ret[0]['type'].lower() == 'image service':

KeyError: 'type'
---------------------------------------------------------------------------&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Other attempts:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;csv_layer = csv_item.publish()

Error:
KeyError: 'type'&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;csv_layer = csv_item.publish('csv')

Error:
ValueError: dictionary update sequence element #0 has length 1; 2 is required&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Mar 2021 17:32:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/publish-csv-to-enterprise-portal-errors/m-p/1035018#M5683</guid>
      <dc:creator>JaredPilbeam2</dc:creator>
      <dc:date>2021-03-10T17:32:35Z</dc:date>
    </item>
    <item>
      <title>Re: Publish CSV to Enterprise Portal Errors</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/publish-csv-to-enterprise-portal-errors/m-p/1035026#M5684</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/294090"&gt;@JaredPilbeam2&lt;/a&gt;&amp;nbsp; try using the &lt;A href="https://developers.arcgis.com/rest/users-groups-and-items/publish-item.htm" target="_self"&gt;publishParameters&lt;/A&gt; parameter in the publish call.&amp;nbsp; You'll need this info if you're trying to publish the CSV as a feature service.&amp;nbsp; Ex:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;csv_layer = csv_item.publish(publishParameters={"type":"csv","name":"XY_Locations","locationType":"coordinates","latitudeFieldName":"Latitude","longitudeFieldName":"Longtidue"})&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The above is publishing a CSV to a feature service called &lt;STRONG&gt;XY_Locations&lt;/STRONG&gt;.&amp;nbsp; It's creating the spatial content using coordinates from fields &lt;STRONG&gt;Latitude&lt;/STRONG&gt; and &lt;STRONG&gt;Longitude&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Mar 2021 17:54:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/publish-csv-to-enterprise-portal-errors/m-p/1035026#M5684</guid>
      <dc:creator>JakeSkinner</dc:creator>
      <dc:date>2021-03-10T17:54:15Z</dc:date>
    </item>
    <item>
      <title>Re: Publish CSV to Enterprise Portal Errors</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/publish-csv-to-enterprise-portal-errors/m-p/1035087#M5686</link>
      <description>&lt;P&gt;Hi Jake,&lt;/P&gt;&lt;P&gt;This resulted in an error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;csv_layer = csv_item.publish(publishParameters={"type":"csv"})&lt;/LI-CODE&gt;&lt;LI-CODE lang="python"&gt;---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
In  [20]:
Line 1:     csv_layer = csv_item.publish(publishParameters={"type":"csv"})

TypeError: publish() got an unexpected keyword argument 'publishParameters'
---------------------------------------------------------------------------&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need the csv file published as a table. It doesn't have coordinate fields and it's not intended to be a spatial feature.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Mar 2021 19:50:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/publish-csv-to-enterprise-portal-errors/m-p/1035087#M5686</guid>
      <dc:creator>JaredPilbeam2</dc:creator>
      <dc:date>2021-03-10T19:50:41Z</dc:date>
    </item>
    <item>
      <title>Re: Publish CSV to Enterprise Portal Errors</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/publish-csv-to-enterprise-portal-errors/m-p/1035161#M5691</link>
      <description>&lt;P&gt;I also tried what the help doc does. It has a text field with place name values specified in the &lt;EM&gt;address_fields&lt;/EM&gt; parameter. My CountyName field is also a text field with place names. But, this also errors.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;csv_flayer = csv_item.publish(None, {"Address":"CountyName"})

---------------------------------------------------------------------------
KeyError                                  Traceback (most recent call last)
In  [23]:
Line 1:     csv_flayer = csv_item.publish(None, {"Address":"CountyName"})

File C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\gis\__init__.py, in publish:
Line 10353: elif not buildInitialCache and ret[0]['type'].lower() == 'image service':

KeyError: 'type'
---------------------------------------------------------------------------&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Mar 2021 22:07:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/publish-csv-to-enterprise-portal-errors/m-p/1035161#M5691</guid>
      <dc:creator>JaredPilbeam2</dc:creator>
      <dc:date>2021-03-10T22:07:30Z</dc:date>
    </item>
    <item>
      <title>Re: Publish CSV to Enterprise Portal Errors</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/publish-csv-to-enterprise-portal-errors/m-p/1035306#M5696</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/294090"&gt;@JaredPilbeam2&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I just tried to add and publish a CSV (no coordinates and no address ) to AGOL and it worked fine.&lt;/P&gt;&lt;P&gt;I just used the publish method without any input parameters.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;csv_layer = csv_item.publish()&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;I'd recommend trying to add and publish a different CSV file to check if this works for you too.&lt;/P&gt;&lt;P&gt;The other thing to consider is to check the field names and remove if they have any characters such as //\,()[],....&lt;/P&gt;</description>
      <pubDate>Thu, 11 Mar 2021 03:10:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/publish-csv-to-enterprise-portal-errors/m-p/1035306#M5696</guid>
      <dc:creator>MehdiPira1</dc:creator>
      <dc:date>2021-03-11T03:10:35Z</dc:date>
    </item>
    <item>
      <title>Re: Publish CSV to Enterprise Portal Errors</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/publish-csv-to-enterprise-portal-errors/m-p/1035475#M5698</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/43250"&gt;@MehdiPira1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I already tried that, as seen above. No luck. Also, I'm working with Enterprise Portal. I don't have the option to publish to AGOL.&lt;BR /&gt;&lt;BR /&gt;I tried with a blank CSV. It's throwing a KeyError still?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;csv_file = r'C:\Users\jpilbeam\test.csv'
csv_item = gis.content.add({}, csv_file) ##It adds the CSV with no errors

csv_lyr = csv_item.publish() ## throws KeyError: 'type'&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Mar 2021 15:18:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/publish-csv-to-enterprise-portal-errors/m-p/1035475#M5698</guid>
      <dc:creator>JaredPilbeam2</dc:creator>
      <dc:date>2021-03-11T15:18:22Z</dc:date>
    </item>
    <item>
      <title>Re: Publish CSV to Enterprise Portal Errors</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/publish-csv-to-enterprise-portal-errors/m-p/1035700#M5702</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/43250"&gt;@MehdiPira1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/10527"&gt;@JakeSkinner&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm used to my Visual Studio 2019 IDE so I brought the code over from the Pro Notebook it was in. And the error was still the same: &lt;EM&gt;KeyError: 'type'. &lt;/EM&gt;Then I was checking the encoding by reading it to file. New error.&lt;/P&gt;&lt;P&gt;Now it's telling me to specify the type.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;gis = GIS('url', 'user', 'password')

csv_file = r'C:\Users\jpilbeam\Downloads\c19_Vaccine_Current.csv'
with open(csv_file, "r") as f:
    print(f)
    csv_item = gis.content.add({}, str(f)) ##&amp;lt;--error is pointing here
    csv_lyr = csv_item.publish()
    print(csv_lyr)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;&amp;lt;_io.TextIOWrapper name='C:\\Users\\jpilbeam\\Downloads\\c19_Vaccine_Current.csv' mode='r' encoding='cp1252'&amp;gt; ##&amp;lt;--1st print statement

Traceback (most recent call last):
  File "\\gisfile\GISstaff\Jared\Python Scripts\ArcGISPro\CSVtoPortal.py", line 11, in &amp;lt;module&amp;gt;
    csv_item = gis.content.add({}, str(f))
  File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\gis\__init__.py", line 4202, in add
    raise RuntimeError('Specify type in item_properties')
RuntimeError: Specify type in item_properties&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jul 2021 14:16:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/publish-csv-to-enterprise-portal-errors/m-p/1035700#M5702</guid>
      <dc:creator>JaredPilbeam2</dc:creator>
      <dc:date>2021-07-06T14:16:52Z</dc:date>
    </item>
    <item>
      <title>Re: Publish CSV to Enterprise Portal Errors</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/publish-csv-to-enterprise-portal-errors/m-p/1035781#M5704</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/294090"&gt;@JaredPilbeam2&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What version of ArcGIS API for Python are you using?&lt;/P&gt;&lt;P&gt;Perhaps a version upgrade helps!&lt;/P&gt;</description>
      <pubDate>Fri, 12 Mar 2021 01:06:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/publish-csv-to-enterprise-portal-errors/m-p/1035781#M5704</guid>
      <dc:creator>MehdiPira1</dc:creator>
      <dc:date>2021-03-12T01:06:13Z</dc:date>
    </item>
    <item>
      <title>Re: Publish CSV to Enterprise Portal Errors</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/publish-csv-to-enterprise-portal-errors/m-p/1035965#M5707</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/43250"&gt;@MehdiPira1&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;I'm using version 1.8.3. If there's been an update I'll look for it, thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Mar 2021 16:16:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/publish-csv-to-enterprise-portal-errors/m-p/1035965#M5707</guid>
      <dc:creator>JaredPilbeam2</dc:creator>
      <dc:date>2021-03-12T16:16:17Z</dc:date>
    </item>
    <item>
      <title>Re: Publish CSV to Enterprise Portal Errors</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/publish-csv-to-enterprise-portal-errors/m-p/1036034#M5710</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/43250"&gt;@MehdiPira1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ok, I upgraded to 1.8.4. And I tried all the same things again. Same errors.&lt;/P&gt;&lt;P&gt;Tried this:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;csv_layer = csv_item.publish(publishParameters={"type":"csv"})

---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
In  [9]:
Line 1:     csv_layer = csv_item.publish(publishParameters={"type":"csv"})

TypeError: publish() got an unexpected keyword argument 'publishParameters'
---------------------------------------------------------------------------&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;csv_layer = csv_item.publish(None, file_type='csv')

---------------------------------------------------------------------------
KeyError                                  Traceback (most recent call last)
In  [11]:
Line 1:     csv_layer = csv_item.publish(None, file_type='csv')

File C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\gis\__init__.py, in publish:
Line 10353: elif not buildInitialCache and ret[0]['type'].lower() == 'image service':

KeyError: 'type'
---------------------------------------------------------------------------&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;csv_layer = csv_item.publish()

---------------------------------------------------------------------------
KeyError                                  Traceback (most recent call last)
In  [14]:
Line 1:     csv_layer = csv_item.publish()

File C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\gis\__init__.py, in publish:
Line 10353: elif not buildInitialCache and ret[0]['type'].lower() == 'image service':

KeyError: 'type'
---------------------------------------------------------------------------&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Mar 2021 17:48:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/publish-csv-to-enterprise-portal-errors/m-p/1036034#M5710</guid>
      <dc:creator>JaredPilbeam2</dc:creator>
      <dc:date>2021-03-12T17:48:25Z</dc:date>
    </item>
    <item>
      <title>Re: Publish CSV to Enterprise Portal Errors</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/publish-csv-to-enterprise-portal-errors/m-p/1036439#M5719</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/294090"&gt;@JaredPilbeam2&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Found the problem. The catch here is specifying &lt;STRONG&gt;none&lt;/STRONG&gt; for the location type since there is no coordinates in the csv file and I didn't know publishing a csv in Portal would require some parameters (type and location type) to specify in this case, compared to publishing to AGOL which you can (also) publish without parameters.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;params={"type":"csv","locationType":"none"}
csv_item.publish(publish_parameters=params)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Make sure you first delete the defective published csv feature layer.&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Mehdi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Mar 2021 03:42:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/publish-csv-to-enterprise-portal-errors/m-p/1036439#M5719</guid>
      <dc:creator>MehdiPira1</dc:creator>
      <dc:date>2021-03-15T03:42:58Z</dc:date>
    </item>
    <item>
      <title>Re: Publish CSV to Enterprise Portal Errors</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/publish-csv-to-enterprise-portal-errors/m-p/1036619#M5722</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/43250"&gt;@MehdiPira1&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thanks, I was able to publish a blank CSV with those parameters! But, I'm still getting a KeyError with the CSV I actually need published. I've continued the conversation in &lt;A href="https://community.esri.com/t5/arcgis-api-for-python-questions/exception-job-failed-when-publishing-csv-item/m-p/1036154" target="_self"&gt;my other post&lt;/A&gt; where I attached the troublesome CSV. Thanks for your help.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Mar 2021 14:19:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/publish-csv-to-enterprise-portal-errors/m-p/1036619#M5722</guid>
      <dc:creator>JaredPilbeam2</dc:creator>
      <dc:date>2021-03-15T14:19:03Z</dc:date>
    </item>
    <item>
      <title>Re: Publish CSV to Enterprise Portal Errors</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/publish-csv-to-enterprise-portal-errors/m-p/1036962#M5733</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/294090"&gt;@JaredPilbeam2&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Not a problem.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Mar 2021 00:48:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/publish-csv-to-enterprise-portal-errors/m-p/1036962#M5733</guid>
      <dc:creator>MehdiPira1</dc:creator>
      <dc:date>2021-03-16T00:48:45Z</dc:date>
    </item>
    <item>
      <title>Re: Publish CSV to Enterprise Portal Errors</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/publish-csv-to-enterprise-portal-errors/m-p/1075490#M6316</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I found this post quite randomly, but just wanted to let you know that the name of the Portal, your Username, and your Password is written in plain text in your post. I would suggest to edit and remove this asap.&lt;/P&gt;&lt;P&gt;BR,&lt;BR /&gt;Marcus&lt;/P&gt;</description>
      <pubDate>Sun, 04 Jul 2021 16:38:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/publish-csv-to-enterprise-portal-errors/m-p/1075490#M6316</guid>
      <dc:creator>MarcusAndersson</dc:creator>
      <dc:date>2021-07-04T16:38:03Z</dc:date>
    </item>
    <item>
      <title>Re: Publish CSV to Enterprise Portal Errors</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/publish-csv-to-enterprise-portal-errors/m-p/1591328#M11193</link>
      <description>&lt;P&gt;I've been using this code to upload and publish a csv file with no location to ArcGIS Enterprise (Portal).&amp;nbsp; Works fine, however recently &lt;EM&gt;content.add&lt;/EM&gt; has been deprecated and running the code will throw a warning message.&amp;nbsp; Users are advised to use &lt;EM&gt;Folder.add&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;I'm unable to locate a sample code or find anything useful researching the ArcGIS API for Python documentation.&amp;nbsp; All examples I've seen so far are for publishing csv with XY locations.&amp;nbsp; Any help you can provide getting me out of this rabbit-hole is greatly appreciated!&amp;nbsp; My code is below&lt;/P&gt;&lt;P&gt;from arcgis.gis import GIS&lt;BR /&gt;gis = GIS("home")&lt;BR /&gt;csv_file = r"C:\data\Demo_noLocation.csv"&lt;BR /&gt;csv_item = gis.content.add({}, csv_file)&lt;BR /&gt;display(csv_item)&lt;BR /&gt;params={"type":"csv","locationType":"none"}&lt;BR /&gt;csv_item.publish(publish_parameters=params)&lt;/P&gt;</description>
      <pubDate>Mon, 03 Mar 2025 18:40:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/publish-csv-to-enterprise-portal-errors/m-p/1591328#M11193</guid>
      <dc:creator>John_Herrera</dc:creator>
      <dc:date>2025-03-03T18:40:05Z</dc:date>
    </item>
  </channel>
</rss>

