<?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: ArcGIS API for Python Spatially Enabled Dataframe .spatial.to_featurelayer() error while using API Key to authenticate with AGOL in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-api-for-python-spatially-enabled-dataframe/m-p/1697491#M11922</link>
    <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/169842"&gt;@Noah-Sager&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/350691"&gt;@John-Foster&lt;/a&gt;&amp;nbsp;Tagging you guys because you were tagged on other api key issue posts. Like this one:&amp;nbsp;&lt;A href="https://community.esri.com/t5/arcgis-api-for-python-questions/api-key-using-user-role-not-key-privileges/m-p/1653655" target="_blank"&gt;API key using user role not key privileges - Esri Community&lt;/A&gt;.&amp;nbsp;&lt;BR /&gt;The issue presented in that thread seems pretty severe exposure of resources, and my issue seems like a severe lock down, so a move in the opposite direction... no access even though it was specifically granted to the key.&lt;/P&gt;</description>
    <pubDate>Tue, 21 Apr 2026 18:18:19 GMT</pubDate>
    <dc:creator>BenCapell_nwtf</dc:creator>
    <dc:date>2026-04-21T18:18:19Z</dc:date>
    <item>
      <title>ArcGIS API for Python Spatially Enabled Dataframe .spatial.to_featurelayer() error while using API Key to authenticate with AGOL</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-api-for-python-spatially-enabled-dataframe/m-p/1696485#M11915</link>
      <description>&lt;P&gt;The following function uses a gis object created by authenticating with an api key developer credential. The line uses a spatially enabled dataframe (SEDF) to overwrite a feature layer in AGOL. It was working successfully until the AGOL security updates to developer credentials in early-mid April 2026. Now it appears the code cannot successfully access the folder containing the feature layer even though the api key has full access (although not recommended), and specifically has access to the feature layer.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;zips_to_append_sedf&lt;/SPAN&gt;.spatial.to_featurelayer(&lt;SPAN&gt;gis&lt;/SPAN&gt;=&lt;SPAN&gt;gis&lt;/SPAN&gt;,&lt;SPAN&gt;sanitize_columns&lt;/SPAN&gt;=&lt;SPAN&gt;True&lt;/SPAN&gt;, &lt;SPAN&gt;overwrite&lt;/SPAN&gt;=&lt;SPAN&gt;True&lt;/SPAN&gt;,&lt;BR /&gt;&lt;SPAN&gt;service&lt;/SPAN&gt;=&lt;SPAN&gt;service_info&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;Error message:&lt;/P&gt;&lt;P&gt;User is anonymous, exiting&lt;BR /&gt;Traceback (most recent call last):&lt;BR /&gt;File "C:\Users\xyz\AppData\Local\ESRI\conda\envs\arcgispro-py3-automated_workflows\Lib\site-packages\IPython\core\interactiveshell.py", line 3579, in run_code&lt;BR /&gt;exec(code_obj, self.user_global_ns, self.user_ns)&lt;BR /&gt;File "&amp;lt;ipython-input-2-e7550eae93a9&amp;gt;", line 1, in &amp;lt;module&amp;gt;&lt;BR /&gt;zips_to_append_sedf.spatial.to_featurelayer(gis=gis, sanitize_columns=True, overwrite=True,&lt;BR /&gt;File "C:\Users\xyz\AppData\Local\ESRI\conda\envs\arcgispro-py3-automated_workflows\Lib\site-packages\arcgis\features\geo\_accessor.py", line 2459, in to_featurelayer&lt;BR /&gt;result = content.import_data(&lt;BR /&gt;^^^^^^^^^^^^^^^^^^^^&lt;BR /&gt;File "C:\Users\xyz\AppData\Local\ESRI\conda\envs\arcgispro-py3-automated_workflows\Lib\site-packages\arcgis\gis\__init__.py", line 9029, in import_data&lt;BR /&gt;return _cm_helper.import_as_item(self._gis, df, **kwargs)&lt;BR /&gt;^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^&lt;BR /&gt;File "C:\Users\xyz\AppData\Local\ESRI\conda\envs\arcgispro-py3-automated_workflows\Lib\site-packages\arcgis\gis\_impl\_content_manager\_import_data.py", line 271, in import_as_item&lt;BR /&gt;file_item, new_item = _create_items(gis, file, file_type, **kwargs)&lt;BR /&gt;^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^&lt;BR /&gt;File "C:\Users\xyz\AppData\Local\ESRI\conda\envs\arcgispro-py3-automated_workflows\Lib\site-packages\arcgis\gis\_impl\_content_manager\_import_data.py", line 151, in _create_items&lt;BR /&gt;file_item = folder.add(&lt;BR /&gt;^^^^^^^^^^&lt;BR /&gt;AttributeError: 'NoneType' object has no attribute 'add'&lt;/P&gt;</description>
      <pubDate>Wed, 15 Apr 2026 18:26:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-api-for-python-spatially-enabled-dataframe/m-p/1696485#M11915</guid>
      <dc:creator>BenCapell_nwtf</dc:creator>
      <dc:date>2026-04-15T18:26:25Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS API for Python Spatially Enabled Dataframe .spatial.to_featurelayer() error while using API Key to authenticate with AGOL</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-api-for-python-spatially-enabled-dataframe/m-p/1697491#M11922</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/169842"&gt;@Noah-Sager&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/350691"&gt;@John-Foster&lt;/a&gt;&amp;nbsp;Tagging you guys because you were tagged on other api key issue posts. Like this one:&amp;nbsp;&lt;A href="https://community.esri.com/t5/arcgis-api-for-python-questions/api-key-using-user-role-not-key-privileges/m-p/1653655" target="_blank"&gt;API key using user role not key privileges - Esri Community&lt;/A&gt;.&amp;nbsp;&lt;BR /&gt;The issue presented in that thread seems pretty severe exposure of resources, and my issue seems like a severe lock down, so a move in the opposite direction... no access even though it was specifically granted to the key.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Apr 2026 18:18:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-api-for-python-spatially-enabled-dataframe/m-p/1697491#M11922</guid>
      <dc:creator>BenCapell_nwtf</dc:creator>
      <dc:date>2026-04-21T18:18:19Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS API for Python Spatially Enabled Dataframe .spatial.to_featurelayer() error while using API Key to authenticate with AGOL</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-api-for-python-spatially-enabled-dataframe/m-p/1697526#M11923</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/823796"&gt;@BenCapell_nwtf&lt;/a&gt;,&amp;nbsp;thanks for the message. Have you verified that the old API Key still works outside of that script? Have you tried creating a new API Key since the update? This is not truly my area of expertise, I just try to be helpful.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Apr 2026 20:27:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-api-for-python-spatially-enabled-dataframe/m-p/1697526#M11923</guid>
      <dc:creator>Noah-Sager</dc:creator>
      <dc:date>2026-04-21T20:27:36Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS API for Python Spatially Enabled Dataframe .spatial.to_featurelayer() error while using API Key to authenticate with AGOL</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-api-for-python-spatially-enabled-dataframe/m-p/1697564#M11926</link>
      <description>&lt;P&gt;Your issue may be related to the &lt;A href="https://www.esri.com/arcgis-blog/products/trust-arcgis/administration/april2026_security_bulletin" target="_self"&gt;recent security patch&lt;/A&gt;. Most likely you need to create a new API key with all the same permission scopes you currently have set, plus add the Create, update, and delete privilege from the Content group:&lt;/P&gt;&lt;DIV class=""&gt;&lt;STRONG&gt;Create, update, and delete&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;Allow application to create, edit, and delete the application owner's content.&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Tue, 21 Apr 2026 23:28:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-api-for-python-spatially-enabled-dataframe/m-p/1697564#M11926</guid>
      <dc:creator>John-Foster</dc:creator>
      <dc:date>2026-04-21T23:28:20Z</dc:date>
    </item>
  </channel>
</rss>

