<?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 Create Feature Layer using ArcGIS API for Python in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/create-feature-layer-using-arcgis-api-for-python/m-p/808879#M2379</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a feature layer hosted in my organization that I want to turn into a new feature layer in my content, similar to this functionality:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="333755" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/333755_pastedImage_3.png" style="width: auto; height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was messing around with some code:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;SPAN style="color: #800000;"&gt;base_comment_layer = gis.content.get('&lt;STRONG&gt;# acutal item ID goes here&lt;/STRONG&gt;')&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="color: #800000;"&gt;layer_properties={&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #800000;"&gt; 'title':'Test_Comment_Layer',&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #800000;"&gt; 'description':'This is a comment layer that is being used for testing purposes only',&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #800000;"&gt; 'tags':'TPCM, Test, Python, Comment Layer'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #800000;"&gt; }&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000;"&gt;gis.content.add(item_properties=layer_properties, data=base_comment_layer, folder='test_NF')&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;but that didn't seem to work, I was getting an error:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;PRE&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;SPAN class="" style="color: #800000;"&gt;&lt;SPAN class=""&gt;AttributeError&lt;/SPAN&gt;: 'Item' object has no attribute 'replace'&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;&lt;/PRE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;This is obviously after longing on using the GIS() method.&lt;/P&gt;&lt;P&gt;Any adivice?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 03 Mar 2017 22:28:45 GMT</pubDate>
    <dc:creator>ZacharyNeumann1</dc:creator>
    <dc:date>2017-03-03T22:28:45Z</dc:date>
    <item>
      <title>Create Feature Layer using ArcGIS API for Python</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/create-feature-layer-using-arcgis-api-for-python/m-p/808879#M2379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a feature layer hosted in my organization that I want to turn into a new feature layer in my content, similar to this functionality:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="333755" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/333755_pastedImage_3.png" style="width: auto; height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was messing around with some code:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;SPAN style="color: #800000;"&gt;base_comment_layer = gis.content.get('&lt;STRONG&gt;# acutal item ID goes here&lt;/STRONG&gt;')&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="color: #800000;"&gt;layer_properties={&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #800000;"&gt; 'title':'Test_Comment_Layer',&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #800000;"&gt; 'description':'This is a comment layer that is being used for testing purposes only',&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #800000;"&gt; 'tags':'TPCM, Test, Python, Comment Layer'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #800000;"&gt; }&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000;"&gt;gis.content.add(item_properties=layer_properties, data=base_comment_layer, folder='test_NF')&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;but that didn't seem to work, I was getting an error:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;PRE&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;SPAN class="" style="color: #800000;"&gt;&lt;SPAN class=""&gt;AttributeError&lt;/SPAN&gt;: 'Item' object has no attribute 'replace'&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;&lt;/PRE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;This is obviously after longing on using the GIS() method.&lt;/P&gt;&lt;P&gt;Any adivice?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Mar 2017 22:28:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/create-feature-layer-using-arcgis-api-for-python/m-p/808879#M2379</guid>
      <dc:creator>ZacharyNeumann1</dc:creator>
      <dc:date>2017-03-03T22:28:45Z</dc:date>
    </item>
    <item>
      <title>Re: Create Feature Layer using ArcGIS API for Python</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/create-feature-layer-using-arcgis-api-for-python/m-p/808880#M2380</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I solved my issue. For those interested:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;layer_properties={&lt;BR /&gt; 'title':'Test_Comment_Layer',&lt;BR /&gt; 'description':'This is a comment layer that is being used for testing purposes only',&lt;BR /&gt; 'tags':'TPCM, Test, Python, Comment Layer',&lt;BR /&gt; 'type':'Feature Service',&lt;BR /&gt; 'url':'URL to Feature Service'&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;gis.content.add(item_properties=layer_properties, data="URL to Feature Service", folder='test_NF')&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Mar 2017 19:00:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/create-feature-layer-using-arcgis-api-for-python/m-p/808880#M2380</guid>
      <dc:creator>ZacharyNeumann1</dc:creator>
      <dc:date>2017-03-06T19:00:13Z</dc:date>
    </item>
    <item>
      <title>Re: Create Feature Layer using ArcGIS API for Python</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/create-feature-layer-using-arcgis-api-for-python/m-p/808881#M2381</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Zachary! Very helpful. This is not the most intuitive, and not covered very well in the docs.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Nov 2018 20:19:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/create-feature-layer-using-arcgis-api-for-python/m-p/808881#M2381</guid>
      <dc:creator>philnagel</dc:creator>
      <dc:date>2018-11-20T20:19:46Z</dc:date>
    </item>
    <item>
      <title>Re: Create Feature Layer using ArcGIS API for Python</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/create-feature-layer-using-arcgis-api-for-python/m-p/808882#M2382</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can you define more on how you get the item's ID ? Especially if you generate the results automatically from a script and you simply want to move that feature layer into another folder on your arcgis online profile?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jan 2019 19:30:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/create-feature-layer-using-arcgis-api-for-python/m-p/808882#M2382</guid>
      <dc:creator>MaximeCampeau</dc:creator>
      <dc:date>2019-01-31T19:30:54Z</dc:date>
    </item>
  </channel>
</rss>

