<?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: List Map Services - Function Error in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/list-map-services-function-error/m-p/152909#M11831</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;4Bart:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think I may have found what your issue is.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried running the simple sample script from a machine remote from the AGS server that had ArcMap v10.0 sp4 installed on it.&amp;nbsp; I received the same error message as you.&amp;nbsp; I then tried running the simple script on the AGS server itself and it worked as expected.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I then tried to create an Admin connection to the AGS server from the remote machine using ArcCatalog.&amp;nbsp; This connection failed as per this document:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://support.esri.com/en/knowledgebase/techarticles/detail/39475"&gt;http://support.esri.com/en/knowledgebase/techarticles/detail/39475&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It seems that this is a problem with a Windows 2008 Server.&amp;nbsp; If this is the same scenario for you, you could try upgrading the machine you are running the script from to Windows 7.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 May 2013 16:50:27 GMT</pubDate>
    <dc:creator>MichaelVolz</dc:creator>
    <dc:date>2013-05-09T16:50:27Z</dc:date>
    <item>
      <title>List Map Services - Function Error</title>
      <link>https://community.esri.com/t5/python-questions/list-map-services-function-error/m-p/152902#M11824</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Using this tool looks so easy (acording to &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/ListMapServices/00s30000004s000000/" rel="nofollow noopener noreferrer" target="_blank"&gt;http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/ListMapServices/00s30000004s000000/&lt;/A&gt;&lt;SPAN&gt;), but it is not working for me &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt; ...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import arcpy
serviceList = arcpy.mapping.ListMapServices("http://sampleserver1.arcgisonline.com/arcgis/services","sampleserver1.arcgisonline.com")
for serviceName in serviceList:
&amp;nbsp;&amp;nbsp;&amp;nbsp; print serviceName&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And Im still getting "IOError: Object: Connection error ?"... What is wrong? Can someone help, please?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;eddit: version ArcGIS 10.0 SP5, Python 2.6.5, target ArcGIS Server 10.0 SP4 (I think)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 08:11:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/list-map-services-function-error/m-p/152902#M11824</guid>
      <dc:creator>J_B__K_</dc:creator>
      <dc:date>2021-12-11T08:11:56Z</dc:date>
    </item>
    <item>
      <title>Re: List Map Services - Function Error</title>
      <link>https://community.esri.com/t5/python-questions/list-map-services-function-error/m-p/152903#M11825</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I tried to make a User Connection to the ArcGIS Server in ArcCatalog that you referenced in your post, but it asked for credentials.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you try the same thing in ArcCatalog on your machine?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It does not appear you are supplying a username and password in your code.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I did try to connect to this server with my ArcGIS Online credentials, but that did not work.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 May 2013 11:48:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/list-map-services-function-error/m-p/152903#M11825</guid>
      <dc:creator>MichaelVolz</dc:creator>
      <dc:date>2013-05-03T11:48:39Z</dc:date>
    </item>
    <item>
      <title>Re: List Map Services - Function Error</title>
      <link>https://community.esri.com/t5/python-questions/list-map-services-function-error/m-p/152904#M11826</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes, it is possible to make a user connection to this AcrGIS Server without any problems, without credentials needed (see the image). It is just a basic, "open", ESRI´s sample server, I have put it into my code just to show the error, just because it is easily accessible... &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]23992[/ATTACH]&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 May 2013 12:04:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/list-map-services-function-error/m-p/152904#M11826</guid>
      <dc:creator>J_B__K_</dc:creator>
      <dc:date>2013-05-03T12:04:17Z</dc:date>
    </item>
    <item>
      <title>Re: List Map Services - Function Error</title>
      <link>https://community.esri.com/t5/python-questions/list-map-services-function-error/m-p/152905#M11827</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;When I try to duplicate your internet connection to this server I am prompted with a dialog box that asks for Proxy Credentials.&amp;nbsp; I can not get past this prompt with either my network credentials or AGOL credentials.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 May 2013 12:43:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/list-map-services-function-error/m-p/152905#M11827</guid>
      <dc:creator>MichaelVolz</dc:creator>
      <dc:date>2013-05-03T12:43:53Z</dc:date>
    </item>
    <item>
      <title>Re: List Map Services - Function Error</title>
      <link>https://community.esri.com/t5/python-questions/list-map-services-function-error/m-p/152906#M11828</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The below thread shows another user who was unable to use the ListMapServices method in python.&amp;nbsp; It is interesting how ESRI's response did not show this person the correct syntax to actually get this method to work.&amp;nbsp; I have also reproduced your error even on an internal server so it seems something is missing from the ESRI documentation.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.arcgis.com/threads/51961-ListMapServices-and-ExportToPDF-how-to-pull-in-external-layers?highlight=listmapservices"&gt;http://forums.arcgis.com/threads/51961-ListMapServices-and-ExportToPDF-how-to-pull-in-external-layers?highlight=listmapservices&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I was finally able to make a user connection to &lt;/SPAN&gt;&lt;A href="http://sampleserver1.arcgisonline.com/arcgis/services"&gt;http://sampleserver1.arcgisonline.com/arcgis/services&lt;/A&gt;&lt;SPAN&gt; from ArcCatalog on my system.&amp;nbsp; There might have been organization network issues (that seemed unrelated) which caused a disruption in being able to connect to ESRI's public server.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 May 2013 13:27:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/list-map-services-function-error/m-p/152906#M11828</guid>
      <dc:creator>MichaelVolz</dc:creator>
      <dc:date>2013-05-03T13:27:17Z</dc:date>
    </item>
    <item>
      <title>Re: List Map Services - Function Error</title>
      <link>https://community.esri.com/t5/python-questions/list-map-services-function-error/m-p/152907#M11829</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Michael, thank you for your attempts!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there anybody who can answer - what is wrong with this short, easy script? What should I do to use this method successfully?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 May 2013 05:23:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/list-map-services-function-error/m-p/152907#M11829</guid>
      <dc:creator>J_B__K_</dc:creator>
      <dc:date>2013-05-06T05:23:05Z</dc:date>
    </item>
    <item>
      <title>Re: List Map Services - Function Error</title>
      <link>https://community.esri.com/t5/python-questions/list-map-services-function-error/m-p/152908#M11830</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;4Bart:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is the response I received from ESRI after I opened an incident:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;"Thanks very much for the links and details. I was able to call ListMapServices successfully on 10.0 for one server at the office but not for another one, and I don't know what the difference is in their configuration. This function, however, is no longer supported at 10.1:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#//00s30000004s000000"&gt;http://resources.arcgis.com/en/help/main/10.1/index.html#//00s30000004s000000&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Have you tried running Fiddler or other network analysis tool to see if any other details can be obtained? &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;A href="http://fiddler2.com/"&gt;http://fiddler2.com/&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;There could be some restriction due to permissions, group policy, or other network settings."&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I hope this info helps you out.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 May 2013 11:48:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/list-map-services-function-error/m-p/152908#M11830</guid>
      <dc:creator>MichaelVolz</dc:creator>
      <dc:date>2013-05-06T11:48:32Z</dc:date>
    </item>
    <item>
      <title>Re: List Map Services - Function Error</title>
      <link>https://community.esri.com/t5/python-questions/list-map-services-function-error/m-p/152909#M11831</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;4Bart:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think I may have found what your issue is.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried running the simple sample script from a machine remote from the AGS server that had ArcMap v10.0 sp4 installed on it.&amp;nbsp; I received the same error message as you.&amp;nbsp; I then tried running the simple script on the AGS server itself and it worked as expected.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I then tried to create an Admin connection to the AGS server from the remote machine using ArcCatalog.&amp;nbsp; This connection failed as per this document:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://support.esri.com/en/knowledgebase/techarticles/detail/39475"&gt;http://support.esri.com/en/knowledgebase/techarticles/detail/39475&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It seems that this is a problem with a Windows 2008 Server.&amp;nbsp; If this is the same scenario for you, you could try upgrading the machine you are running the script from to Windows 7.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 May 2013 16:50:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/list-map-services-function-error/m-p/152909#M11831</guid>
      <dc:creator>MichaelVolz</dc:creator>
      <dc:date>2013-05-09T16:50:27Z</dc:date>
    </item>
  </channel>
</rss>

