<?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: Unable to access ArcGIS Server via .ags from stand-alone script in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/unable-to-access-arcgis-server-via-ags-from-stand/m-p/1628813#M74451</link>
    <description>&lt;P&gt;How are you running the script exactly?&amp;nbsp; Is it running from the same machine with the same user credentials?&lt;/P&gt;</description>
    <pubDate>Tue, 01 Jul 2025 12:06:31 GMT</pubDate>
    <dc:creator>JoshuaBixby</dc:creator>
    <dc:date>2025-07-01T12:06:31Z</dc:date>
    <item>
      <title>Unable to access ArcGIS Server via .ags from stand-alone script</title>
      <link>https://community.esri.com/t5/python-questions/unable-to-access-arcgis-server-via-ags-from-stand/m-p/1628803#M74450</link>
      <description>&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;when I am using .ags file with ArcGIS Pro I can e.g. run this function via Notebook/PythonWindow:&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/functions/listdatastoreitems.htm" target="_blank"&gt;https://pro.arcgis.com/en/pro-app/latest/arcpy/functions/listdatastoreitems.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, when I am running standalone script, I am receiving:&lt;/P&gt;&lt;P&gt;RuntimeError: Cannot open AGS Server connection.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is stand-alone AGS server.&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Yanu&lt;/P&gt;</description>
      <pubDate>Tue, 01 Jul 2025 10:54:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/unable-to-access-arcgis-server-via-ags-from-stand/m-p/1628803#M74450</guid>
      <dc:creator>Yanu</dc:creator>
      <dc:date>2025-07-01T10:54:00Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to access ArcGIS Server via .ags from stand-alone script</title>
      <link>https://community.esri.com/t5/python-questions/unable-to-access-arcgis-server-via-ags-from-stand/m-p/1628813#M74451</link>
      <description>&lt;P&gt;How are you running the script exactly?&amp;nbsp; Is it running from the same machine with the same user credentials?&lt;/P&gt;</description>
      <pubDate>Tue, 01 Jul 2025 12:06:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/unable-to-access-arcgis-server-via-ags-from-stand/m-p/1628813#M74451</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2025-07-01T12:06:31Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to access ArcGIS Server via .ags from stand-alone script</title>
      <link>https://community.esri.com/t5/python-questions/unable-to-access-arcgis-server-via-ags-from-stand/m-p/1628814#M74452</link>
      <description>&lt;P&gt;Seems like you've got some sort of error in how you're passing the connection file to the function. You're using the correct environment since the error is related to the AGS connection and not the arcpy import, but the connection is failing in the standalone. Mind sharing the ListDataStoreItems call that's failing?&lt;/P&gt;</description>
      <pubDate>Tue, 01 Jul 2025 12:07:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/unable-to-access-arcgis-server-via-ags-from-stand/m-p/1628814#M74452</guid>
      <dc:creator>HaydenWelch</dc:creator>
      <dc:date>2025-07-01T12:07:49Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to access ArcGIS Server via .ags from stand-alone script</title>
      <link>https://community.esri.com/t5/python-questions/unable-to-access-arcgis-server-via-ags-from-stand/m-p/1628816#M74453</link>
      <description>&lt;P&gt;Exactly the same user, there is no issue with the license. I guess ArcGISPro is setting some additional params...&lt;/P&gt;</description>
      <pubDate>Tue, 01 Jul 2025 12:11:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/unable-to-access-arcgis-server-via-ags-from-stand/m-p/1628816#M74453</guid>
      <dc:creator>Yanu</dc:creator>
      <dc:date>2025-07-01T12:11:21Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to access ArcGIS Server via .ags from stand-alone script</title>
      <link>https://community.esri.com/t5/python-questions/unable-to-access-arcgis-server-via-ags-from-stand/m-p/1628819#M74454</link>
      <description>&lt;P&gt;My code is&lt;/P&gt;&lt;P&gt;import arcpy&lt;/P&gt;&lt;P&gt;ags_file = 'path_tofile.ags'&lt;/P&gt;&lt;P&gt;print(arcpy.ListDataStoreItems(ags_file,&amp;nbsp;&lt;SPAN class=""&gt;"DATABASE"&lt;/SPAN&gt;&lt;SPAN&gt;))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Jul 2025 12:14:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/unable-to-access-arcgis-server-via-ags-from-stand/m-p/1628819#M74454</guid>
      <dc:creator>Yanu</dc:creator>
      <dc:date>2025-07-01T12:14:41Z</dc:date>
    </item>
  </channel>
</rss>

