<?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: 'folders' key error on ServicesDirectory at ArcGIS API 1.4 in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/folders-key-error-on-servicesdirectory-at-arcgis/m-p/829930#M3149</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/206469" target="_blank"&gt;Phil Larkin&lt;/A&gt;‌, &lt;A href="https://community.esri.com/migrated-users/12512" target="_blank"&gt;Ben Holmes&lt;/A&gt;‌ since the objective is to get a list of `Service` objects in each folder, please refer to the doc here:&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/python/guide/managing-your-gis-servers/#Managing-the-services-on-your-server" title="https://developers.arcgis.com/python/guide/managing-your-gis-servers/#Managing-the-services-on-your-server" rel="nofollow noopener noreferrer" target="_blank"&gt;Managing your GIS servers | ArcGIS for Developers&lt;/A&gt;&amp;nbsp; In short below should work in version `1.4.1`&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;server1&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;services&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;list&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&amp;nbsp; &lt;SPAN class="comment token"&gt;# to get list of services in root&lt;/SPAN&gt;
server1&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;services&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;folders &lt;SPAN class="comment token"&gt;# to get list of folders&lt;/SPAN&gt;
server1&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;services&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;list&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;folder&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'System'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="comment token"&gt;# to get services in a particular folder&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 10:01:25 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2021-12-12T10:01:25Z</dc:date>
    <item>
      <title>'folders' key error on ServicesDirectory at ArcGIS API 1.4</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/folders-key-error-on-servicesdirectory-at-arcgis/m-p/829926#M3145</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've been trying to access the REST endpoint using the ArcGIS API for Python 1.4&lt;/P&gt;&lt;P&gt;When using any ServicesDirectory method which mentions folders, I get the key error seen here.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="key error in ServicesDirectory" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/401516_Error_arcgis_ServicesDirectory_20180416.PNG" style="width: 620px; height: 243px;" /&gt;&lt;/P&gt;&lt;P&gt;Any chance that could be fixed? &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Apr 2018 10:19:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/folders-key-error-on-servicesdirectory-at-arcgis/m-p/829926#M3145</guid>
      <dc:creator>BenHolmes1</dc:creator>
      <dc:date>2018-04-16T10:19:09Z</dc:date>
    </item>
    <item>
      <title>Re: 'folders' key error on ServicesDirectory at ArcGIS API 1.4</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/folders-key-error-on-servicesdirectory-at-arcgis/m-p/829927#M3146</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ben,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since I can't see your URLs, I'm going to assume that is the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;SPAN&gt;url = "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fmysite.com%2Fserver" rel="nofollow" target="_blank"&gt;http://mysite.com/server&lt;/A&gt;&lt;SPAN&gt;" # So it's net location / web adapter&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; gis = GIS(url="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fmysite.com%2Fportal" rel="nofollow" target="_blank"&gt;http://mysite.com/portal&lt;/A&gt;&lt;SPAN&gt;", username="******", password='*******')&lt;/SPAN&gt;&lt;BR /&gt; sd = ServicesDirectory(url=url, portal_connection=gis)&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Even though this will work, accessing a server this way is not recommended.&amp;nbsp; You would go through your GIS object instead since your site is federated.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;myservers = gis.admin.servers.list()&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;It will return an array of server objects.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Apr 2018 15:11:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/folders-key-error-on-servicesdirectory-at-arcgis/m-p/829927#M3146</guid>
      <dc:creator>AndrewChapkowski</dc:creator>
      <dc:date>2018-04-16T15:11:16Z</dc:date>
    </item>
    <item>
      <title>Re: 'folders' key error on ServicesDirectory at ArcGIS API 1.4</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/folders-key-error-on-servicesdirectory-at-arcgis/m-p/829928#M3147</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Andrew&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the response.&lt;/P&gt;&lt;P&gt;Sorry for my lack of clarity. The URLs were okay, I just left them out as they are internal.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My objective was to get lists of services in a folder on the server and then gather some further information on them.&lt;/P&gt;&lt;P&gt;I thought the ServicesDirectory.list(folder="abc") method&amp;nbsp;looked like an easy method in the API docs.&lt;/P&gt;&lt;P&gt;But any reference to 'folder' in any ServicesDirectory methods throws an error. That seems to have been around for a few versions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did remove the connection through the federated "gis" connection as you suggested though.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Ben&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Apr 2018 07:20:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/folders-key-error-on-servicesdirectory-at-arcgis/m-p/829928#M3147</guid>
      <dc:creator>BenHolmes1</dc:creator>
      <dc:date>2018-04-17T07:20:49Z</dc:date>
    </item>
    <item>
      <title>Re: 'folders' key error on ServicesDirectory at ArcGIS API 1.4</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/folders-key-error-on-servicesdirectory-at-arcgis/m-p/829929#M3148</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/12512" target="_blank"&gt;Ben Holmes&lt;/A&gt;‌ Have you found a resolution for this? I've experienced it from v1.2.3 - 1.4.1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can a group admin respond to this thread? &lt;A href="https://community.esri.com/migrated-users/44381" target="_blank"&gt;Jay Theodore&lt;/A&gt;&amp;nbsp;&lt;A href="https://community.esri.com/migrated-users/45514" target="_blank"&gt;Atma Mani&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is wrong with this code?&amp;nbsp;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;url &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2F" target="_blank"&gt;https://&lt;/A&gt;&lt;SPAN&gt;&amp;lt;servername&amp;gt;.spokanecounty.org:6443/arcgis/admin/"&lt;/SPAN&gt;&lt;/SPAN&gt;
servDirectory &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; server&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;catalog&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;ServicesDirectory&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;url&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;&amp;lt;&lt;/SPAN&gt;User&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;&amp;lt;&lt;/SPAN&gt;Pw&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
servDirectory&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;folders
&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Results in this traceback:&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;Traceback (most recent call last):&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;File "&amp;lt;string&amp;gt;", line 1, in &amp;lt;module&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\gis\server\catalog.py", line &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;259, in folders&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return self.properties['folders']&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\_impl\common\_mixins.py", &amp;nbsp;&amp;nbsp;&amp;nbsp;line 340, in __getitem__&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return self._mapping[key]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;KeyError: 'folders'&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 10:01:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/folders-key-error-on-servicesdirectory-at-arcgis/m-p/829929#M3148</guid>
      <dc:creator>PhilLarkin1</dc:creator>
      <dc:date>2021-12-12T10:01:22Z</dc:date>
    </item>
    <item>
      <title>Re: 'folders' key error on ServicesDirectory at ArcGIS API 1.4</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/folders-key-error-on-servicesdirectory-at-arcgis/m-p/829930#M3149</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/206469" target="_blank"&gt;Phil Larkin&lt;/A&gt;‌, &lt;A href="https://community.esri.com/migrated-users/12512" target="_blank"&gt;Ben Holmes&lt;/A&gt;‌ since the objective is to get a list of `Service` objects in each folder, please refer to the doc here:&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/python/guide/managing-your-gis-servers/#Managing-the-services-on-your-server" title="https://developers.arcgis.com/python/guide/managing-your-gis-servers/#Managing-the-services-on-your-server" rel="nofollow noopener noreferrer" target="_blank"&gt;Managing your GIS servers | ArcGIS for Developers&lt;/A&gt;&amp;nbsp; In short below should work in version `1.4.1`&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;server1&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;services&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;list&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&amp;nbsp; &lt;SPAN class="comment token"&gt;# to get list of services in root&lt;/SPAN&gt;
server1&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;services&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;folders &lt;SPAN class="comment token"&gt;# to get list of folders&lt;/SPAN&gt;
server1&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;services&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;list&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;folder&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'System'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="comment token"&gt;# to get services in a particular folder&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 10:01:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/folders-key-error-on-servicesdirectory-at-arcgis/m-p/829930#M3149</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-12-12T10:01:25Z</dc:date>
    </item>
    <item>
      <title>Re: 'folders' key error on ServicesDirectory at ArcGIS API 1.4</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/folders-key-error-on-servicesdirectory-at-arcgis/m-p/829931#M3150</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Atma, thanks for your reply.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm attempting to access the &lt;A href="https://developers.arcgis.com/rest/enterprise-administration/server/servicesreport.htm"&gt;ServicesReport &lt;/A&gt;REST endpoint on a local enterprise server. Using the arcgis.gis.&lt;STRONG&gt;server&lt;/STRONG&gt; module offers the &lt;A href="https://esri.github.io/arcgis-python-api/apidoc/html/arcgis.gis.admin.html"&gt;ServicesDirectory.report&lt;/A&gt; function. It doesn't appear to me that the arcgis.gis.&lt;STRONG&gt;admin&lt;/STRONG&gt; module has any applicable functions. Can you tell me how i would use the admin module to get to the ServicesReport end point?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Aug 2018 17:50:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/folders-key-error-on-servicesdirectory-at-arcgis/m-p/829931#M3150</guid>
      <dc:creator>PhilLarkin1</dc:creator>
      <dc:date>2018-08-02T17:50:32Z</dc:date>
    </item>
    <item>
      <title>Re: 'folders' key error on ServicesDirectory at ArcGIS API 1.4</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/folders-key-error-on-servicesdirectory-at-arcgis/m-p/829932#M3151</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I wasn't able to get the ServicesReport so I iterated over services to get the status/statistics. Thanks for your help &lt;A href="https://community.esri.com/migrated-users/45514" target="_blank"&gt;Atma Mani&lt;/A&gt;‌.&lt;SPAN&gt;&amp;nbsp;&lt;A href="https://community.esri.com/migrated-users/12512" target="_blank"&gt;Ben Holmes&lt;/A&gt;‌&amp;nbsp;&lt;/SPAN&gt;hopefully this helps.&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;from&lt;/SPAN&gt; arcgis&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;gis &lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; server

url &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2F" target="_blank"&gt;https://&lt;/A&gt;&lt;SPAN&gt;&amp;lt;servername&amp;gt;.spokanecounty.org:6443/arcgis/admin"&lt;/SPAN&gt;&lt;/SPAN&gt;
srv &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; server&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Server&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;url&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;url&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; username&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;&amp;lt;&lt;/SPAN&gt;username&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; password &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;&amp;lt;&lt;/SPAN&gt;password&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

srvManager &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; srv&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;services

&lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; folder &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; srvManager&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;folders&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; service &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; srv&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;services&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;list&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;folder&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; summary &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; service&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;statistics&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'summary'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; status &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; service&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;status&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 10:01:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/folders-key-error-on-servicesdirectory-at-arcgis/m-p/829932#M3151</guid>
      <dc:creator>PhilLarkin1</dc:creator>
      <dc:date>2021-12-12T10:01:28Z</dc:date>
    </item>
    <item>
      <title>Re: 'folders' key error on ServicesDirectory at ArcGIS API 1.4</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/folders-key-error-on-servicesdirectory-at-arcgis/m-p/829933#M3152</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I experienced the same error and found that the methods and properties of ServicesDirectory didn't work with a url from Server 10.4&amp;nbsp;was used. BUT It worked with a url from 10.6. Could this be a bug &lt;A href="https://community.esri.com/migrated-users/45514"&gt;Atma Mani&lt;/A&gt;&amp;nbsp;?&amp;nbsp;Is ArcGIS API for Python only for versions &amp;gt; 10.5?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/438386_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Feb 2019 15:38:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/folders-key-error-on-servicesdirectory-at-arcgis/m-p/829933#M3152</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2019-02-28T15:38:33Z</dc:date>
    </item>
    <item>
      <title>Re: 'folders' key error on ServicesDirectory at ArcGIS API 1.4</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/folders-key-error-on-servicesdirectory-at-arcgis/m-p/1008343#M5296</link>
      <description>&lt;P&gt;This has since broken at AGS 10.7.1 in a shared site configuration. Using API 1.8.1&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;AttributeError: 'Server' object has no attribute 'services'&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Dec 2020 00:43:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/folders-key-error-on-servicesdirectory-at-arcgis/m-p/1008343#M5296</guid>
      <dc:creator>PhilLarkin1</dc:creator>
      <dc:date>2020-12-10T00:43:19Z</dc:date>
    </item>
    <item>
      <title>Re: 'folders' key error on ServicesDirectory at ArcGIS API 1.4</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/folders-key-error-on-servicesdirectory-at-arcgis/m-p/1415625#M9940</link>
      <description>&lt;P&gt;I am able to reproduce the problem in version 2.2.0.2 of the Python API with the following code. I have replaced my server's fully-qualified domain name with "&lt;A href="http://www.example.net" target="_blank" rel="noopener"&gt;www.example.net&lt;/A&gt;".&lt;/P&gt;&lt;PRE&gt;from arcgis.gis import server&lt;BR /&gt;import getpass&lt;BR /&gt;&lt;BR /&gt;server_base_url = "https://www.example.net:6443"&lt;BR /&gt;&lt;BR /&gt;username=input("What is your AGS username?")&lt;BR /&gt;password = getpass.getpass(prompt=f"What is your ArcGIS Server password at {server_base_url}?")&lt;BR /&gt;&lt;BR /&gt;result = server.Server(url=server_base_url, username=username, password=password, all_ssl=True, initialize=True)&lt;BR /&gt;&lt;BR /&gt;result.content&lt;BR /&gt;&lt;BR /&gt;result.content.folders&lt;/PRE&gt;</description>
      <pubDate>Thu, 25 Apr 2024 22:09:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/folders-key-error-on-servicesdirectory-at-arcgis/m-p/1415625#M9940</guid>
      <dc:creator>ZianChoy</dc:creator>
      <dc:date>2024-04-25T22:09:22Z</dc:date>
    </item>
    <item>
      <title>Re: 'folders' key error on ServicesDirectory at ArcGIS API 1.4</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/folders-key-error-on-servicesdirectory-at-arcgis/m-p/1505087#M10344</link>
      <description>&lt;P&gt;Has anyone found a workaround for this? I can confirm that [server].content.folders and [server].services both throw KeyErrors when run against Server 11.2, however, they appear to work against older Server 10.7. Here, the server object is a standalone server.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jul 2024 22:34:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/folders-key-error-on-servicesdirectory-at-arcgis/m-p/1505087#M10344</guid>
      <dc:creator>ElijahMlawsky</dc:creator>
      <dc:date>2024-07-12T22:34:05Z</dc:date>
    </item>
  </channel>
</rss>

