<?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: Analyze is not working in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/analyze-is-not-working/m-p/1009233#M59260</link>
    <description>&lt;P&gt;Greetings,&lt;/P&gt;&lt;P&gt;It was a user issue, the same first part of the script works for non-admin tasks.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Clive&lt;/P&gt;</description>
    <pubDate>Mon, 14 Dec 2020 09:13:32 GMT</pubDate>
    <dc:creator>Clive_S</dc:creator>
    <dc:date>2020-12-14T09:13:32Z</dc:date>
    <item>
      <title>Analyze is not working</title>
      <link>https://community.esri.com/t5/python-questions/analyze-is-not-working/m-p/1008116#M59238</link>
      <description>&lt;P&gt;Greetings,&lt;/P&gt;&lt;P&gt;I used this script about 8 months ago, working on SQL Server, but I cannot get it working on PostGres??&lt;/P&gt;&lt;P&gt;The ESRI Python example is:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;https://pro.arcgis.com/en/pro-app/help/data/geodatabases/manage-postgresql/update-statistics.htm#ESRI_SECTION1_EB0B43256A2B4027AF7E3246FD0EADCE

Error is at the dataList??
dataList = arcpy.ListTables() + arcpy.ListFeatureClasses() + arcpy.ListRasters()
print(dataList)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Because of the no data error I added:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;tbldataset = arcpy.ListDatasets(feature_type='Tables')
featdataset = arcpy.ListDatasets(feature_type='FeatureClasses')
rastdataset = arcpy.ListDatasets(feature_type='Rasters')

ListTables = tbldataset
ListFeatureClasses = featdataset
ListRasters = rastdataset&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Appreciate a pointer where this is going wrong??&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Clive&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Dec 2020 16:57:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/analyze-is-not-working/m-p/1008116#M59238</guid>
      <dc:creator>Clive_S</dc:creator>
      <dc:date>2020-12-09T16:57:50Z</dc:date>
    </item>
    <item>
      <title>Re: Analyze is not working</title>
      <link>https://community.esri.com/t5/python-questions/analyze-is-not-working/m-p/1008132#M59239</link>
      <description>&lt;P&gt;Cannot get it working?&amp;nbsp; What isn't working, exactly?&amp;nbsp; Are you getting an error or unexpected results?&amp;nbsp; If an error, it helps to paste the error and traceback for people to see.&amp;nbsp; if unexpected results, what you are expected and what are you getting?&lt;/P&gt;</description>
      <pubDate>Wed, 09 Dec 2020 17:19:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/analyze-is-not-working/m-p/1008132#M59239</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2020-12-09T17:19:57Z</dc:date>
    </item>
    <item>
      <title>Re: Analyze is not working</title>
      <link>https://community.esri.com/t5/python-questions/analyze-is-not-working/m-p/1008136#M59240</link>
      <description>&lt;P&gt;Hi Joshua,&lt;/P&gt;&lt;P&gt;I was expecting to return all datasets within SDE.&amp;nbsp;I am getting no data, thought I stated that in first post.&lt;/P&gt;&lt;P&gt;&lt;SPAN class="ansi-red-intense-fg ansi-bold"&gt;TypeError&lt;/SPAN&gt; Traceback (most recent call last) &lt;SPAN class="ansi-green-intense-fg ansi-bold"&gt;&amp;lt;ipython-input-24-772e862cda86&amp;gt;&lt;/SPAN&gt; in &lt;SPAN class="ansi-cyan-fg"&gt;&amp;lt;module&amp;gt;&lt;/SPAN&gt; &lt;SPAN class="ansi-green-fg"&gt;37&lt;/SPAN&gt; &lt;SPAN class="ansi-green-fg"&gt;38&lt;/SPAN&gt; &lt;SPAN class="ansi-green-intense-fg ansi-bold"&gt;---&amp;gt; 39&lt;/SPAN&gt; dataList &lt;SPAN class="ansi-yellow-intense-fg ansi-bold"&gt;=&lt;/SPAN&gt; arcpy&lt;SPAN class="ansi-yellow-intense-fg ansi-bold"&gt;.&lt;/SPAN&gt;ListTables&lt;SPAN class="ansi-yellow-intense-fg ansi-bold"&gt;(&lt;/SPAN&gt;&lt;SPAN class="ansi-yellow-intense-fg ansi-bold"&gt;)&lt;/SPAN&gt; &lt;SPAN class="ansi-yellow-intense-fg ansi-bold"&gt;+&lt;/SPAN&gt; arcpy&lt;SPAN class="ansi-yellow-intense-fg ansi-bold"&gt;.&lt;/SPAN&gt;ListFeatureClasses&lt;SPAN class="ansi-yellow-intense-fg ansi-bold"&gt;(&lt;/SPAN&gt;&lt;SPAN class="ansi-yellow-intense-fg ansi-bold"&gt;)&lt;/SPAN&gt; &lt;SPAN class="ansi-yellow-intense-fg ansi-bold"&gt;+&lt;/SPAN&gt; arcpy&lt;SPAN class="ansi-yellow-intense-fg ansi-bold"&gt;.&lt;/SPAN&gt;ListRasters&lt;SPAN class="ansi-yellow-intense-fg ansi-bold"&gt;(&lt;/SPAN&gt;&lt;SPAN class="ansi-yellow-intense-fg ansi-bold"&gt;)&lt;/SPAN&gt; &lt;SPAN class="ansi-green-fg"&gt;40&lt;/SPAN&gt; print&lt;SPAN class="ansi-yellow-intense-fg ansi-bold"&gt;(&lt;/SPAN&gt;dataList&lt;SPAN class="ansi-yellow-intense-fg ansi-bold"&gt;)&lt;/SPAN&gt; &lt;SPAN class="ansi-green-fg"&gt;41&lt;/SPAN&gt; &lt;SPAN class="ansi-red-intense-fg ansi-bold"&gt;TypeError&lt;/SPAN&gt;: unsupported operand type(s) for +: 'NoneType' and 'NoneType'&lt;/P&gt;&lt;P&gt;Don't get why there is a no data error??&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Dec 2020 17:28:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/analyze-is-not-working/m-p/1008136#M59240</guid>
      <dc:creator>Clive_S</dc:creator>
      <dc:date>2020-12-09T17:28:48Z</dc:date>
    </item>
    <item>
      <title>Re: Analyze is not working</title>
      <link>https://community.esri.com/t5/python-questions/analyze-is-not-working/m-p/1008149#M59241</link>
      <description>&lt;P&gt;The traceback shows multiple "List" functions are returning Python None.&amp;nbsp; The List functions will return empty lists when nothing is found and will return Python None when the workspace isn't valid.&amp;nbsp; So, you should look upstream in your code to see how you are setting your environment workspace before calling these functions.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Dec 2020 17:43:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/analyze-is-not-working/m-p/1008149#M59241</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2020-12-09T17:43:40Z</dc:date>
    </item>
    <item>
      <title>Re: Analyze is not working</title>
      <link>https://community.esri.com/t5/python-questions/analyze-is-not-working/m-p/1009233#M59260</link>
      <description>&lt;P&gt;Greetings,&lt;/P&gt;&lt;P&gt;It was a user issue, the same first part of the script works for non-admin tasks.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Clive&lt;/P&gt;</description>
      <pubDate>Mon, 14 Dec 2020 09:13:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/analyze-is-not-working/m-p/1009233#M59260</guid>
      <dc:creator>Clive_S</dc:creator>
      <dc:date>2020-12-14T09:13:32Z</dc:date>
    </item>
  </channel>
</rss>

