<?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 publish a Microsoft Excel to hosted Table using ArcGIS API for Python? in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-publish-a-microsoft-excel-to-hosted-table/m-p/1140190#M7078</link>
    <description>&lt;P&gt;How could I publish the table as a hosted table instead of a hosted feature layer?&lt;/P&gt;</description>
    <pubDate>Thu, 03 Feb 2022 06:42:03 GMT</pubDate>
    <dc:creator>GonzalezMorales</dc:creator>
    <dc:date>2022-02-03T06:42:03Z</dc:date>
    <item>
      <title>How to publish a Microsoft Excel to hosted Table using ArcGIS API for Python?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-publish-a-microsoft-excel-to-hosted-table/m-p/770005#M646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ihave upload into a Microsoft Excel on portal,I want to publish it to a hosted Table.&lt;BR /&gt;If I use Item.publish() it will be ValueError,what should I do?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;csv_file = 'D:/Test.csv'&lt;BR /&gt;csv_properties={'type':'Microsoft Excel','title':'Test','tags':['Test','Excel']}&lt;/P&gt;&lt;P&gt;csv_item = gis.content.add(csv_properties, None, None, None, None,'Test_Folder')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2018 00:52:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-publish-a-microsoft-excel-to-hosted-table/m-p/770005#M646</guid>
      <dc:creator>Chai-YuanLiu</dc:creator>
      <dc:date>2018-07-24T00:52:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to publish a Microsoft Excel to hosted Table using ArcGIS API for Python?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-publish-a-microsoft-excel-to-hosted-table/m-p/770006#M647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&amp;nbsp;Chai-Yuan Liu,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to publish a csv to portal you can do the following....&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; arcgis
&lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; json
&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


gis &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; GIS&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;None&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'username'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'password'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; verify_cert&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="token boolean"&gt;False&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;


&lt;SPAN class="keyword token"&gt;try&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="comment token"&gt;# Path to the CSV file&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; pathToFile &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; r&lt;SPAN class="string token"&gt;'path to file'&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="comment token"&gt;# Add the CSV file to portal.&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; item &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; gis&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;content&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;add&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'title'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'testcsv'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; pathToFile&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="comment token"&gt;# If you want the table as a hosted feature layer then publish the item&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; item&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;publish&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;except&lt;/SPAN&gt; Exception &lt;SPAN class="keyword token"&gt;as&lt;/SPAN&gt; e&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;e&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;/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>Sun, 12 Dec 2021 08:35:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-publish-a-microsoft-excel-to-hosted-table/m-p/770006#M647</guid>
      <dc:creator>MunachisoOgbuchiekwe</dc:creator>
      <dc:date>2021-12-12T08:35:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to publish a Microsoft Excel to hosted Table using ArcGIS API for Python?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-publish-a-microsoft-excel-to-hosted-table/m-p/1140190#M7078</link>
      <description>&lt;P&gt;How could I publish the table as a hosted table instead of a hosted feature layer?&lt;/P&gt;</description>
      <pubDate>Thu, 03 Feb 2022 06:42:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-publish-a-microsoft-excel-to-hosted-table/m-p/1140190#M7078</guid>
      <dc:creator>GonzalezMorales</dc:creator>
      <dc:date>2022-02-03T06:42:03Z</dc:date>
    </item>
  </channel>
</rss>

