<?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 Cant publish csv layer as a Feature layer (hosted) containing a point layer in Developers Questions</title>
    <link>https://community.esri.com/t5/developers-questions/cant-publish-csv-layer-as-a-feature-layer-hosted/m-p/1591941#M7444</link>
    <description>&lt;P&gt;Hello I have the following html script where I am able to successfully generate a token, and upload a csv to my organization's Arcgis online platform. The csv contains some fields, latitude, and longitude. Clicking the publish function on the layer manually works to create a feature layer (hosted) containing a point layer from the provided latitude and longitude in the CSV.&lt;BR /&gt;However when I try to incorporate this function in my html script I get the following type of errors:&lt;/P&gt;&lt;P&gt;Error publishing CSV: Unexpected token '&amp;lt;', "&amp;lt;!DOCTYPE "... is not valid JSON&lt;/P&gt;&lt;P&gt;Error: Unable to parse the response as JSON.&lt;BR /&gt;&lt;BR /&gt;I also tried to add item type as&amp;nbsp;&lt;SPAN&gt;Feature Collection instead of csv to bypass the publish portion of the script but it said I did not have permission... (when I was able to do the same action but with item type as CSV)&lt;BR /&gt;&lt;BR /&gt;Appreciate any help on this&lt;BR /&gt;&lt;BR /&gt;html code:&amp;nbsp;&lt;A href="https://jsfiddle.net/hjmazn0x/" target="_blank" rel="noopener"&gt;https://jsfiddle.net/hjmazn0x/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Doing this in python is not an option for me.&lt;/SPAN&gt;&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, 04 Mar 2025 19:57:32 GMT</pubDate>
    <dc:creator>GISPolice</dc:creator>
    <dc:date>2025-03-04T19:57:32Z</dc:date>
    <item>
      <title>Cant publish csv layer as a Feature layer (hosted) containing a point layer</title>
      <link>https://community.esri.com/t5/developers-questions/cant-publish-csv-layer-as-a-feature-layer-hosted/m-p/1591941#M7444</link>
      <description>&lt;P&gt;Hello I have the following html script where I am able to successfully generate a token, and upload a csv to my organization's Arcgis online platform. The csv contains some fields, latitude, and longitude. Clicking the publish function on the layer manually works to create a feature layer (hosted) containing a point layer from the provided latitude and longitude in the CSV.&lt;BR /&gt;However when I try to incorporate this function in my html script I get the following type of errors:&lt;/P&gt;&lt;P&gt;Error publishing CSV: Unexpected token '&amp;lt;', "&amp;lt;!DOCTYPE "... is not valid JSON&lt;/P&gt;&lt;P&gt;Error: Unable to parse the response as JSON.&lt;BR /&gt;&lt;BR /&gt;I also tried to add item type as&amp;nbsp;&lt;SPAN&gt;Feature Collection instead of csv to bypass the publish portion of the script but it said I did not have permission... (when I was able to do the same action but with item type as CSV)&lt;BR /&gt;&lt;BR /&gt;Appreciate any help on this&lt;BR /&gt;&lt;BR /&gt;html code:&amp;nbsp;&lt;A href="https://jsfiddle.net/hjmazn0x/" target="_blank" rel="noopener"&gt;https://jsfiddle.net/hjmazn0x/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Doing this in python is not an option for me.&lt;/SPAN&gt;&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, 04 Mar 2025 19:57:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/cant-publish-csv-layer-as-a-feature-layer-hosted/m-p/1591941#M7444</guid>
      <dc:creator>GISPolice</dc:creator>
      <dc:date>2025-03-04T19:57:32Z</dc:date>
    </item>
  </channel>
</rss>

