Hi there,
I am simply following Analyze the source csv item on Append Features | ArcGIS for Developers.
Upon executing the below:
source_info <SPAN class="operator token">=</SPAN> gis<SPAN class="punctuation token">.</SPAN>content<SPAN class="punctuation token">.</SPAN>analyze<SPAN class="punctuation token">(</SPAN>item<SPAN class="operator token">=</SPAN>ws_item<SPAN class="punctuation token">.</SPAN>id<SPAN class="punctuation token">,</SPAN>
file_type<SPAN class="operator token">=</SPAN><SPAN class="string token">"csv"</SPAN><SPAN class="punctuation token">,</SPAN>
location_type<SPAN class="operator token">=</SPAN><SPAN class="string token">'none'</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="line-numbers-rows"><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN></SPAN>I get the following error on Jupyter Notebook.
Unable to analyze item.
Item type'url' is not supported for anzlyzing, The item needs to be of type file
Somehow the analyze method is not taking in the earlier "type":"CSV" in:
world_sov_props <SPAN class="operator token">=</SPAN> <SPAN class="punctuation token">{</SPAN><SPAN class="string token">"title"</SPAN><SPAN class="punctuation token">:</SPAN><SPAN class="string token">"world_sovereignty_"</SPAN> <SPAN class="operator token">+</SPAN> now_dt<SPAN class="punctuation token">(</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">,</SPAN>
<SPAN class="string token">"type"</SPAN><SPAN class="punctuation token">:</SPAN><SPAN class="string token">"CSV"</SPAN><SPAN class="punctuation token">,</SPAN>
<SPAN class="string token">"tags"</SPAN><SPAN class="punctuation token">:</SPAN><SPAN class="string token">"indepedence, politics, international boundaries, geopolitics"</SPAN><SPAN class="punctuation token">,</SPAN>
<SPAN class="string token">"snippet"</SPAN><SPAN class="punctuation token">:</SPAN><SPAN class="string token">"Data about the sovereignty of many of the world's nations"</SPAN><SPAN class="punctuation token">,</SPAN>
<SPAN class="string token">"description"</SPAN><SPAN class="punctuation token">:</SPAN><SPAN class="string token">"Data collected from wikipedia regarding national sovereignty across the world"</SPAN><SPAN class="punctuation token">}</SPAN><SPAN class="line-numbers-rows"><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN></SPAN>Has anyone encountered this problem?
Thanks,