<?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 Feature Layer Collection insert_layer not working in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/feature-layer-collection-insert-layer-not-working/m-p/1499944#M10272</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am wondering what I am doing wrong in regards to trying to add another layer to an already published Feature Layer Collection (flc). The FLC that is already published contains a point layer and a related table. I want to add another point layer with a related table to it.&lt;/P&gt;&lt;P&gt;I am trying to use the &lt;A href="https://developers.arcgis.com/python/api-reference/arcgis.features.managers.html?highlight=add%20definition#featurelayercollectionmanager" target="_blank" rel="noopener"&gt;FeatureLayerCollectionManager&lt;/A&gt;.insert_layer() but I receive this error:&amp;nbsp;&lt;SPAN&gt;'FeatureLayerCollectionManager' object has no attribute 'insert_layer'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;My code so far:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;item = gis.content.search(query='title:asc')[0]
type(item)
## arcgis.gis.Item

flc = FeatureLayerCollection.fromitem(item)
type(flc)
## arcgis.features.layer.FeatureLayerCollection

flc.manager.insert_layer(r"local path to shapefile.zip")
## AttributeError: 'FeatureLayerCollectionManager' object has no attribute 'insert_layer'
&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 01 Jul 2024 16:35:50 GMT</pubDate>
    <dc:creator>abrown8</dc:creator>
    <dc:date>2024-07-01T16:35:50Z</dc:date>
    <item>
      <title>Feature Layer Collection insert_layer not working</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/feature-layer-collection-insert-layer-not-working/m-p/1499944#M10272</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am wondering what I am doing wrong in regards to trying to add another layer to an already published Feature Layer Collection (flc). The FLC that is already published contains a point layer and a related table. I want to add another point layer with a related table to it.&lt;/P&gt;&lt;P&gt;I am trying to use the &lt;A href="https://developers.arcgis.com/python/api-reference/arcgis.features.managers.html?highlight=add%20definition#featurelayercollectionmanager" target="_blank" rel="noopener"&gt;FeatureLayerCollectionManager&lt;/A&gt;.insert_layer() but I receive this error:&amp;nbsp;&lt;SPAN&gt;'FeatureLayerCollectionManager' object has no attribute 'insert_layer'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;My code so far:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;item = gis.content.search(query='title:asc')[0]
type(item)
## arcgis.gis.Item

flc = FeatureLayerCollection.fromitem(item)
type(flc)
## arcgis.features.layer.FeatureLayerCollection

flc.manager.insert_layer(r"local path to shapefile.zip")
## AttributeError: 'FeatureLayerCollectionManager' object has no attribute 'insert_layer'
&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jul 2024 16:35:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/feature-layer-collection-insert-layer-not-working/m-p/1499944#M10272</guid>
      <dc:creator>abrown8</dc:creator>
      <dc:date>2024-07-01T16:35:50Z</dc:date>
    </item>
    <item>
      <title>Re: Feature Layer Collection insert_layer not working</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/feature-layer-collection-insert-layer-not-working/m-p/1499963#M10273</link>
      <description>&lt;P&gt;It seems you may be on a version of the API that does not have that function. I am on Version 2.3.0 and do have access to the function.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jul 2024 17:24:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/feature-layer-collection-insert-layer-not-working/m-p/1499963#M10273</guid>
      <dc:creator>EarlMedina</dc:creator>
      <dc:date>2024-07-01T17:24:12Z</dc:date>
    </item>
    <item>
      <title>Re: Feature Layer Collection insert_layer not working</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/feature-layer-collection-insert-layer-not-working/m-p/1500266#M10276</link>
      <description>&lt;P&gt;You are right - I am currently working with v2.1.0.4 and updating to the latest has solved it. Thanks.&lt;/P&gt;&lt;P&gt;Unfortunately, my production environment is stuck on v2.1.0.4 so will have to use the old-fashioned route of editing the definition...&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jul 2024 12:48:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/feature-layer-collection-insert-layer-not-working/m-p/1500266#M10276</guid>
      <dc:creator>abrown8</dc:creator>
      <dc:date>2024-07-02T12:48:14Z</dc:date>
    </item>
  </channel>
</rss>

