<?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: Esri Example script erroring out with my server in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/esri-example-script-erroring-out-with-my-server/m-p/619577#M48299</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I ran the code as is, I didn't set anything.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 02 Nov 2020 13:32:50 GMT</pubDate>
    <dc:creator>JoeWeyl</dc:creator>
    <dc:date>2020-11-02T13:32:50Z</dc:date>
    <item>
      <title>Esri Example script erroring out with my server</title>
      <link>https://community.esri.com/t5/python-questions/esri-example-script-erroring-out-with-my-server/m-p/619575#M48297</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My GIS Server site (non Portal) has a lot of services and folders. I am trying to generate an output listing of the server because I am migrating to a new server. This inventory will help me figure out what I need to move to the new environment.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The script came from here:&amp;nbsp;&lt;A class="link-titled" href="https://enterprise.arcgis.com/en/server/latest/administer/windows/example-write-properties-of-all-services-to-a-csv-file.htm" title="https://enterprise.arcgis.com/en/server/latest/administer/windows/example-write-properties-of-all-services-to-a-csv-file.htm"&gt;Example: Write properties of all services to a CSV file—ArcGIS Server | Documentation for ArcGIS Enterprise&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But when it is trying to write the output to CSV, I am getting the following error message:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;line 373, in main&lt;BR /&gt; ln = str(jsonOBJ["serviceName"]) + "," + folder + "," + str(item["type"]) + "," + jsonOBJStatus['realTimeState'] + "," + str(jsonOBJ["minInstancesPerNode"]) + "," + str(jsonOBJ["maxInstancesPerNode"]) + "," + "NA" + "," + "NA" + "," + "NA" + "," + str(jsonOBJ["properties"]["maxRecordCount"]) + "," + str(jsonOBJ["clusterName"]) + "," + "NA" + "," + "NA" + "," + str(jsonOBJ["properties"]["outputDir"]) +"\n"&lt;BR /&gt;KeyError: 'maxRecordCount'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It looks to me like this error is from the Service Properties for MaxRecourds, defined under the service parameters, but I am not sure. I still working on it, but if anyone has any insight that would be great.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Oct 2020 21:00:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/esri-example-script-erroring-out-with-my-server/m-p/619575#M48297</guid>
      <dc:creator>JoeWeyl</dc:creator>
      <dc:date>2020-10-30T21:00:19Z</dc:date>
    </item>
    <item>
      <title>Re: Esri Example script erroring out with my server</title>
      <link>https://community.esri.com/t5/python-questions/esri-example-script-erroring-out-with-my-server/m-p/619576#M48298</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;KeyError: 'maxRecordCount'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;means there is something wrong with the dictionary key maxRecordCount ... do you have a value for it?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Oct 2020 21:46:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/esri-example-script-erroring-out-with-my-server/m-p/619576#M48298</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2020-10-30T21:46:24Z</dc:date>
    </item>
    <item>
      <title>Re: Esri Example script erroring out with my server</title>
      <link>https://community.esri.com/t5/python-questions/esri-example-script-erroring-out-with-my-server/m-p/619577#M48299</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I ran the code as is, I didn't set anything.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Nov 2020 13:32:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/esri-example-script-erroring-out-with-my-server/m-p/619577#M48299</guid>
      <dc:creator>JoeWeyl</dc:creator>
      <dc:date>2020-11-02T13:32:50Z</dc:date>
    </item>
  </channel>
</rss>

