<?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: GetCount_Management: ERROR 000732: Input rows does not exist or is not supported in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/getcount-management-error-000732-input-rows-does/m-p/753228#M58138</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have the same problem. I have a script to export records from mxd to csv based on sql query.&lt;/P&gt;&lt;P&gt;In the script I have a continion&lt;/P&gt;&lt;P&gt;if int(arcpy.GetCount_management(fc).getOutput(0))&amp;gt;0:&amp;nbsp; that throws me the same error&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Traceback (most recent call last):&lt;/P&gt;&lt;P&gt;&amp;nbsp; File "C:\ELTODO\pracovnislozka\nastroj_upravy\GenerateData.py", line 334, in &amp;lt;module&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if arcpy.GetCount_management(fc)&amp;gt;0:&lt;/P&gt;&lt;P&gt;&amp;nbsp; File "c:\program files (x86)\arcgis\desktop10.3\arcpy\arcpy\management.py", line 15370, in GetCount&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; raise e&lt;/P&gt;&lt;P&gt;ExecuteError: Failed to execute. Parameters are not valid.&lt;/P&gt;&lt;P&gt;ERROR 000732: Input Rows: Dataset Info_VO does not exist or is not supported&lt;/P&gt;&lt;P&gt;Failed to execute (GetCount).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's interesting that when I load the script to python window in ArcMap everything is OK and the script runs fine. But when I build a script in a toolbox and run it, it throws me the error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone help please?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 15 Feb 2016 13:34:37 GMT</pubDate>
    <dc:creator>ZdeněkSoldán</dc:creator>
    <dc:date>2016-02-15T13:34:37Z</dc:date>
    <item>
      <title>GetCount_Management: ERROR 000732: Input rows does not exist or is not supported</title>
      <link>https://community.esri.com/t5/python-questions/getcount-management-error-000732-input-rows-does/m-p/753227#M58137</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;I am using ArcMap 10.2.1. Python 2.7&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am building a script tool that updates definition queryies that I need to work on any computer.&amp;nbsp; We all use the same SDE database but our connection file names vary computer to computer/ mxd to mxd. We all use a connection with network logins though.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the tool I find all the layers that are visible and have selections, then loop through them to look for an existing definition query, get the OIDs of the selected features, and paste those in the definition query box. It works great, unless the sde connection file that was used to add the layer to the mxd can't be found on that computer. This it throws this error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Traceback (most recent call last):&lt;/P&gt;&lt;P&gt;&amp;nbsp; File "\\eprime\Enogexgis\Tools\PythonScripts\DefinitionQueryCalculator_choose.py", line 35, in &amp;lt;module&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; countDefQ1 = arcpy.GetCount_management(lyr2).getOutput(0)&lt;/P&gt;&lt;P&gt;&amp;nbsp; File "c:\program files (x86)\arcgis\desktop10.2\arcpy\arcpy\management.py", line 14483, in GetCount&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; raise e&lt;/P&gt;&lt;P&gt;ExecuteError: Failed to execute. Parameters are not valid.&lt;/P&gt;&lt;P&gt;ERROR 000732: Input Rows: Dataset Database Connections\myDatabase\GAS\Pipesegment does not exist or is not supported&lt;/P&gt;&lt;P&gt;Failed to execute (GetCount).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when you look at the attached code, it is on line 35 countDefQ1 = arcpy.GetCount_management(lyr2).getOutput(0) that throws the error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could somebody please help me fix it so that it will always find the database?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ellen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Apr 2015 17:21:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/getcount-management-error-000732-input-rows-does/m-p/753227#M58137</guid>
      <dc:creator>EllenTejan</dc:creator>
      <dc:date>2015-04-09T17:21:20Z</dc:date>
    </item>
    <item>
      <title>Re: GetCount_Management: ERROR 000732: Input rows does not exist or is not supported</title>
      <link>https://community.esri.com/t5/python-questions/getcount-management-error-000732-input-rows-does/m-p/753228#M58138</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have the same problem. I have a script to export records from mxd to csv based on sql query.&lt;/P&gt;&lt;P&gt;In the script I have a continion&lt;/P&gt;&lt;P&gt;if int(arcpy.GetCount_management(fc).getOutput(0))&amp;gt;0:&amp;nbsp; that throws me the same error&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Traceback (most recent call last):&lt;/P&gt;&lt;P&gt;&amp;nbsp; File "C:\ELTODO\pracovnislozka\nastroj_upravy\GenerateData.py", line 334, in &amp;lt;module&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if arcpy.GetCount_management(fc)&amp;gt;0:&lt;/P&gt;&lt;P&gt;&amp;nbsp; File "c:\program files (x86)\arcgis\desktop10.3\arcpy\arcpy\management.py", line 15370, in GetCount&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; raise e&lt;/P&gt;&lt;P&gt;ExecuteError: Failed to execute. Parameters are not valid.&lt;/P&gt;&lt;P&gt;ERROR 000732: Input Rows: Dataset Info_VO does not exist or is not supported&lt;/P&gt;&lt;P&gt;Failed to execute (GetCount).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's interesting that when I load the script to python window in ArcMap everything is OK and the script runs fine. But when I build a script in a toolbox and run it, it throws me the error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone help please?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Feb 2016 13:34:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/getcount-management-error-000732-input-rows-does/m-p/753228#M58138</guid>
      <dc:creator>ZdeněkSoldán</dc:creator>
      <dc:date>2016-02-15T13:34:37Z</dc:date>
    </item>
    <item>
      <title>Re: GetCount_Management: ERROR 000732: Input rows does not exist or is not supported</title>
      <link>https://community.esri.com/t5/python-questions/getcount-management-error-000732-input-rows-does/m-p/753229#M58139</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If the connection path is the problem use &lt;A href="http://desktop.arcgis.com/en/arcmap/10.3/tools/data-management-toolbox/create-arcsde-connection-file.htm" title="http://desktop.arcgis.com/en/arcmap/10.3/tools/data-management-toolbox/create-arcsde-connection-file.htm"&gt;Create ArcSDE Connection File—Help | ArcGIS for Desktop&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Feb 2016 15:48:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/getcount-management-error-000732-input-rows-does/m-p/753229#M58139</guid>
      <dc:creator>WesMiller</dc:creator>
      <dc:date>2016-02-15T15:48:51Z</dc:date>
    </item>
  </channel>
</rss>

