<?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: Service list Empty? in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/service-list-empty/m-p/779248#M1120</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;10.4.1&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 Oct 2017 18:44:04 GMT</pubDate>
    <dc:creator>JamesGustine</dc:creator>
    <dc:date>2017-10-04T18:44:04Z</dc:date>
    <item>
      <title>Service list Empty?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/service-list-empty/m-p/779246#M1118</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Running to another roadblock playing around with this API.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This gets me a list of servers nicely...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;gis_servers = gis.admin.servers.list()&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This gets me at the server I want...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;dev = gis_servers[0]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This validates to True nicely..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;gis.admin.servers.validate()&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can check if a service exists...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;gt;&amp;gt;&amp;gt; dev.services.exists("rwpc", "rwpc_auditissues", "MapServer")&lt;BR /&gt;True&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but this returns an empty list?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;gt;&amp;gt;&amp;gt; dev.services.list()&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;[]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need the list to get the service object, so I can start, stop, delete, etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone see this on thier end?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a freshly upgraded API and am connected with an Admin account.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Thanks in advance....again.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;James&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Oct 2017 17:43:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/service-list-empty/m-p/779246#M1118</guid>
      <dc:creator>JamesGustine</dc:creator>
      <dc:date>2017-10-04T17:43:08Z</dc:date>
    </item>
    <item>
      <title>Re: Service list Empty?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/service-list-empty/m-p/779247#M1119</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What version of Server/Portal are you using?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Oct 2017 17:55:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/service-list-empty/m-p/779247#M1119</guid>
      <dc:creator>AndrewChapkowski</dc:creator>
      <dc:date>2017-10-04T17:55:36Z</dc:date>
    </item>
    <item>
      <title>Re: Service list Empty?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/service-list-empty/m-p/779248#M1120</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;10.4.1&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Oct 2017 18:44:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/service-list-empty/m-p/779248#M1120</guid>
      <dc:creator>JamesGustine</dc:creator>
      <dc:date>2017-10-04T18:44:04Z</dc:date>
    </item>
    <item>
      <title>Re: Service list Empty?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/service-list-empty/m-p/779249#M1121</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In 10.6 calling the list throws an exception&lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;agsServiceManager=agsServer.services&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;agsServiceManager.list()&lt;/STRONG&gt;&lt;BR /&gt;Traceback (most recent call last):&lt;BR /&gt; File "C:\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\gis\server\_common\_base.py", line 83, in __getattr__&lt;BR /&gt; return self._properties.__getitem__(name)&lt;BR /&gt; File "C:\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\_impl\common\_mixins.py", line 340, in __getitem__&lt;BR /&gt; return self._mapping[key]&lt;BR /&gt;KeyError: '_services_list'&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;During handling of the above exception, another exception occurred:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Traceback (most recent call last):&lt;BR /&gt; File "&amp;lt;string&amp;gt;", line 1, in &amp;lt;module&amp;gt;&lt;BR /&gt; File "C:\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\gis\server\admin\_services.py", line 124, in list&lt;BR /&gt; return self._services_list&lt;BR /&gt; File "C:\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\gis\server\_common\_base.py", line 88, in __getattr__&lt;BR /&gt; raise AttributeError("'%s' object has no attribute '%s'" % (type(self).__name__, name))&lt;BR /&gt;AttributeError: 'ServiceManager' object has no attribute '_services_list'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Feb 2018 14:29:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/service-list-empty/m-p/779249#M1121</guid>
      <dc:creator>SandeepKuniel1</dc:creator>
      <dc:date>2018-02-02T14:29:26Z</dc:date>
    </item>
    <item>
      <title>Re: Service list Empty?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/service-list-empty/m-p/779250#M1122</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This issue was fixed in version 1.3 (released in mid Dec 2017). Could you upgrade the arcgis package and try again?&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/python/guide/install-and-set-up/#Upgrade-the-arcgis-package" title="https://developers.arcgis.com/python/guide/install-and-set-up/#Upgrade-the-arcgis-package"&gt;Install and set up | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Feb 2018 14:38:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/service-list-empty/m-p/779250#M1122</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2018-02-02T14:38:45Z</dc:date>
    </item>
    <item>
      <title>Re: Service list Empty?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/service-list-empty/m-p/779251#M1123</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Wonderful Atma Mani, that seems to have worked, took me some time to get upgraded to 1.3, had to do a manual install:)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Feb 2018 20:04:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/service-list-empty/m-p/779251#M1123</guid>
      <dc:creator>SandeepKuniel1</dc:creator>
      <dc:date>2018-02-02T20:04:20Z</dc:date>
    </item>
  </channel>
</rss>

