<?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: Error regarding row.getValue(): 'function' object has no attribute &amp;quot;xxx&amp;quot; in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/error-regarding-row-getvalue-function-object-has/m-p/389704#M30787</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You did leave out the parenthesis on the first row=rows.next&lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;()&amp;lt;--missing&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 19 Aug 2011 15:30:55 GMT</pubDate>
    <dc:creator>BruceNielsen</dc:creator>
    <dc:date>2011-08-19T15:30:55Z</dc:date>
    <item>
      <title>Error regarding row.getValue(): 'function' object has no attribute &amp;quot;xxx&amp;quot;</title>
      <link>https://community.esri.com/t5/python-questions/error-regarding-row-getvalue-function-object-has/m-p/389701#M30784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;OS: Windows 7, 64-bit&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;IDE: PyScripter&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ArcGIS: 10.0 - Concurrent Use license accessed remotely&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am receiving the following error when trying to run a basic while-loop over feature class rows:&amp;nbsp; 'function' object has no attribute "getValue".&amp;nbsp; My code is:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;import arcpy&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;from arcpy import env&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;env.workspace = "C:/***/TestScripts_UsingNHL"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;env.overwriteOutput = True&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;inTable = "C:/***/Bbuffers.shp"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;inField = "CITY_TOWN"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;rows = arcpy.SearchCursor(inTable)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;row = rows.next&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;while row:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; City = row.getValue(inField)&amp;nbsp; #Error thrown here&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; row = rows.next()&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;print "Finished!"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The field "CITY_TOWN" does exist, and it is spelled correctly.&amp;nbsp; I get the same error even if I try to print instead of getValue: print row.CITY_TOWN.&amp;nbsp; This seems basic, but I cannot find a fix.&amp;nbsp; Any help/suggestions would be appreciated.&amp;nbsp; Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Aug 2011 13:58:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-regarding-row-getvalue-function-object-has/m-p/389701#M30784</guid>
      <dc:creator>AbbyFlory</dc:creator>
      <dc:date>2011-08-19T13:58:07Z</dc:date>
    </item>
    <item>
      <title>Re: Error regarding row.getValue(): 'function' object has no attribute "xxx"</title>
      <link>https://community.esri.com/t5/python-questions/error-regarding-row-getvalue-function-object-has/m-p/389702#M30785</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;OS: Windows 7, 64-bit&lt;BR /&gt;IDE: PyScripter&lt;BR /&gt;ArcGIS: 10.0 - Concurrent Use license accessed remotely&lt;BR /&gt;&lt;BR /&gt;Hi,&lt;BR /&gt;I am receiving the following error when trying to run a basic while-loop over feature class rows:&amp;nbsp; 'function' object has no attribute "getValue".&amp;nbsp; My code is:&lt;BR /&gt;&lt;BR /&gt;import arcpy&lt;BR /&gt;from arcpy import env&lt;BR /&gt;env.workspace = "C:/***/TestScripts_UsingNHL"&lt;BR /&gt;env.overwriteOutput = True&lt;BR /&gt;&lt;BR /&gt;inTable = "C:/***/Bbuffers.shp"&lt;BR /&gt;inField = "CITY_TOWN"&lt;BR /&gt;rows = arcpy.SearchCursor(inTable)&lt;BR /&gt;row = rows.next&lt;BR /&gt;&lt;BR /&gt;while row:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; City = row.getValue(inField)&amp;nbsp; #Error thrown here&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; row = rows.next()&lt;BR /&gt;&lt;BR /&gt;print "Finished!"&lt;BR /&gt;&lt;BR /&gt;The field "CITY_TOWN" does exist, and it is spelled correctly.&amp;nbsp; I get the same error even if I try to print instead of getValue: print row.CITY_TOWN.&amp;nbsp; This seems basic, but I cannot find a fix.&amp;nbsp; Any help/suggestions would be appreciated.&amp;nbsp; Thanks!&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;City =row.CITY_TOWN&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Aug 2011 14:04:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-regarding-row-getvalue-function-object-has/m-p/389702#M30785</guid>
      <dc:creator>HemingZhu</dc:creator>
      <dc:date>2011-08-19T14:04:09Z</dc:date>
    </item>
    <item>
      <title>Re: Error regarding row.getValue(): 'function' object has no attribute "xxx"</title>
      <link>https://community.esri.com/t5/python-questions/error-regarding-row-getvalue-function-object-has/m-p/389703#M30786</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;...didn't work.&amp;nbsp; Any other thoughts?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Aug 2011 14:10:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-regarding-row-getvalue-function-object-has/m-p/389703#M30786</guid>
      <dc:creator>AbbyFlory</dc:creator>
      <dc:date>2011-08-19T14:10:01Z</dc:date>
    </item>
    <item>
      <title>Re: Error regarding row.getValue(): 'function' object has no attribute "xxx"</title>
      <link>https://community.esri.com/t5/python-questions/error-regarding-row-getvalue-function-object-has/m-p/389704#M30787</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You did leave out the parenthesis on the first row=rows.next&lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;()&amp;lt;--missing&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Aug 2011 15:30:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-regarding-row-getvalue-function-object-has/m-p/389704#M30787</guid>
      <dc:creator>BruceNielsen</dc:creator>
      <dc:date>2011-08-19T15:30:55Z</dc:date>
    </item>
    <item>
      <title>Re: Error regarding row.getValue(): 'function' object has no attribute "xxx"</title>
      <link>https://community.esri.com/t5/python-questions/error-regarding-row-getvalue-function-object-has/m-p/389705#M30788</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes!&amp;nbsp; Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Aug 2011 15:35:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-regarding-row-getvalue-function-object-has/m-p/389705#M30788</guid>
      <dc:creator>AbbyFlory</dc:creator>
      <dc:date>2011-08-19T15:35:05Z</dc:date>
    </item>
    <item>
      <title>Re: Error regarding row.getValue(): 'function' object has no attribute "xxx"</title>
      <link>https://community.esri.com/t5/python-questions/error-regarding-row-getvalue-function-object-has/m-p/389706#M30789</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Things changed in version 10, try:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;inTable = "C:/***/Bbuffers.shp"
 inField = "CITY_TOWN"
 rows = arcpy.SearchCursor(inTable)
 #row = rows.next
 
for row in rows:
&amp;nbsp; City = row.getValue(inField) #Error thrown here
&amp;nbsp; #row = rows.next()
 &lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;see&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;cursors&amp;nbsp; &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//002z0000001q000000.htm" rel="nofollow noopener noreferrer" target="_blank"&gt;http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//002z0000001q000000.htm&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;getValue etc.&amp;nbsp; &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//000v000000nv000000.htm" rel="nofollow noopener noreferrer" target="_blank"&gt;http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//000v000000nv000000.htm&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 17:52:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-regarding-row-getvalue-function-object-has/m-p/389706#M30789</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2021-12-11T17:52:38Z</dc:date>
    </item>
  </channel>
</rss>

