<?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: 'Cursor' object has no attribute 'getValue' in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/cursor-object-has-no-attribute-getvalue/m-p/105123#M8107</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I needed the attribute value for features I was selecting based off of the range I was running in the first for loop. If that makes sense.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 31 May 2012 21:38:31 GMT</pubDate>
    <dc:creator>DerekBannon</dc:creator>
    <dc:date>2012-05-31T21:38:31Z</dc:date>
    <item>
      <title>'Cursor' object has no attribute 'getValue'</title>
      <link>https://community.esri.com/t5/python-questions/cursor-object-has-no-attribute-getvalue/m-p/105118#M8102</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am trying to select an attribute value from one of my tables. Its does not seam to be working. It keeps giving me this error. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Runtime error &amp;lt;type 'exceptions.AttributeError'&amp;gt;: 'Cursor' object has no attribute 'getValue'&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt;&amp;gt;&amp;gt; mxd = arcpy.mapping.MapDocument("CURRENT") #defines the variable mxd to the current map&amp;gt;&amp;gt;&amp;gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;... #sets the current author of the mxd to Derek Bannon&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;... mxd.author = "Derek Bannon" &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;... #defines the variable df to the one and only dataframe&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;... df = arcpy.mapping.ListDataFrames(mxd, "Layers")[0] &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;... textnumb = 0 #defines varaible textnumb to equal 0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;... indexnumb = 295&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;... #defines the variable PDFdoc to save a blank pdf in memory for the appending pdf files&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;... PDFdoc = arcpy.mapping.PDFDocumentCreate(r"\\swg.ca\files\Jobs\35000\35628 ED41 Kinder Morgan Canada Inc\500CAD\GIS\MapOutput\PDFOutput\TMX-Parcels-Mapbook.pdf") &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;... #opens a loop that runs and assigns i to a new value in a range that counts from 3 to 233 #but not including 233 in increments of 3 &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;... for i in range (296, 356,1):&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;... #defines an if statement where if i is greater than 10 then the operation will break from #the loop and execute a PDF document save and close&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;... if i &amp;gt; 297: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;... #breaks the loop if i is equal to greater than 10&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;... break&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;... #saves and close the PDF document created before the loop&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;... PDFdoc.saveAndClose()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;... #this is the else statement that operates when the break statement has not yet been achieved&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;... else:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;... #defines variable j as equaling to i minus 3. Defines the kp range that the map will zoom to&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;... j=i-3&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;... #defines the variable textnumb which assigns each map through the loop an incremented number #starting at 1 and counting up&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;... textnumb=textnumb + 1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;... indexnumb=indexnumb + 1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;... #defines the variable where_clause for the Select Layer by Attribute tool&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;... where_clause = "\"PageNumber\" = " + str(i)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;... #runs the select layer by attribute tool selecting from the layer 'Kilometer Posts', a new #selection and using the where_clause variable for the selection criteria&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;... arcpy.SelectLayerByAttribute_management("TMPL_BC_IndexFile","NEW_SELECTION",where_clause)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;... #defines the variable where_clause_add for the Select Layer by Attribute tool&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;... #where_clause_add = "\"KP\" = " + str(i)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;... #runs the select layer by attribute tool selecting from the layer 'Kilometer Posts', a new #selection and using the where_clause_add variable for the selection criteria&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;... #arcpy.SelectLayerByAttribute_management("Kilometer Posts","ADD_TO_SELECTION",where_clause_add)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;... #refreshes the Table of Contents&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;... arcpy.RefreshTOC&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;... #refreshes the active view&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;... arcpy.RefreshActiveView&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;... cursor = arcpy.SearchCursor("TMPL_BC_IndexFile", where_clause) &amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt; something to do with this code here I think.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;... rotation = cursor.getValue("Angle")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;... &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;... &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;... &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;... df.rotation(rotation)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;... #zooms the dataframe to the selected features&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;... df.zoomToSelectedFeatures()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;... &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;... arcpy.SelectLayerByAttribute_management("TMPL_BC_IndexFile","CLEAR_SELECTION",where_clause)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;... dfAsFeature = arcpy.Polygon(arcpy.Array([df.extent.lowerLeft, df.extent.lowerRight, df.extent.upperRight, df.extent.upperLeft]),df.spatialReference)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;... &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;... #arcpy.SelectLayerByLocation_management("Annotations\Sectiontest4","COMPLETELY_WITHIN", dfAsFeature, "","NEW_SELECTION")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;... #arcpy.SelectLayerByLocation_management("Annotations\Sectiontest3","COMPLETELY_WITHIN", dfAsFeature, "","ADD_TO_SELECTION")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;... #arcpy.SelectLayerByLocation_management("Annotations\Sectiontest2","COMPLETELY_WITHIN", dfAsFeature, "","ADD_TO_SELECTION")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;... arcpy.SelectLayerByLocation_management("Annotations\BCParcelsAnno4","COMPLETELY_WITHIN", dfAsFeature, "","ADD_TO_SELECTION")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;... #arcpy.CalculateField_management("Annotations\Sectiontest4","Status",0,"VB")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;... #arcpy.CalculateField_management("Annotations\Sectiontest3","Status",0,"VB")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;... #arcpy.CalculateField_management("Annotations\Sectiontest2","Status",0,"VB")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;... arcpy.CalculateField_management("Annotations\BCParcelsAnno4","Status",0,"VB")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;... arcpy.SelectLayerByAttribute_management("Annotations\BCParcelsAnno4","CLEAR_SELECTION","")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;... &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;... #arcpy.SelectLayerByAttribute_management("Annotations\Sectiontest2","CLEAR_SELECTION","")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;... #arcpy.SelectLayerByAttribute_management("Annotations\Sectiontest3","CLEAR_SELECTION","")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;... #arcpy.SelectLayerByAttribute_management("Annotations\Sectiontest4","CLEAR_SELECTION","")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;... #arcpy.SelectLayerByLocation_management("Annotations\Sectiontest4","CROSSED_BY_THE_OUTLINE_OF", dfAsFeature, "","NEW_SELECTION")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;... #arcpy.SelectLayerByLocation_management("Annotations\Sectiontest3","CROSSED_BY_THE_OUTLINE_OF", dfAsFeature, "","ADD_TO_SELECTION")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;... #arcpy.SelectLayerByLocation_management("Annotations\Sectiontest2","CROSSED_BY_THE_OUTLINE_OF", dfAsFeature, "","ADD_TO_SELECTION")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;... arcpy.SelectLayerByLocation_management("Annotations\BCParcelsAnno4","CROSSED_BY_THE_OUTLINE_OF", dfAsFeature, "","ADD_TO_SELECTION")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;... arcpy.CalculateField_management("Annotations\BCParcelsAnno4","Status",1,"VB")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;... #arcpy.CalculateField_management("Annotations\Sectiontest2","Status",1,"VB")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;... #arcpy.CalculateField_management("Annotations\Sectiontest3","Status",1,"VB")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;... #arcpy.CalculateField_management("Annotations\Sectiontest4","Status",1,"VB")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;... arcpy.SelectLayerByAttribute_management("Annotations\BCParcelsAnno4","CLEAR_SELECTION","")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;... #arcpy.SelectLayerByAttribute_management("Annotations\Sectiontest2","CLEAR_SELECTION","")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;... #arcpy.SelectLayerByAttribute_management("Annotations\Sectiontest3","CLEAR_SELECTION","")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;... #arcpy.SelectLayerByAttribute_management("Annotations\Sectiontest4","CLEAR_SELECTION","")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;... #clears the current selection for pdf print&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;... arcpy.SelectLayerByAttribute_management("Kilometer Posts","CLEAR_SELECTION",where_clause_add)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;... #refreshes the active view&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;... arcpy.RefreshActiveView&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;... #defines the variable textelement to a piece of text within the layout, which us the map #number&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;... #textElement = arcpy.mapping.ListLayoutElements(mxd,"TEXT_ELEMENT","mapnumber")[0]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;... #changes the text from 00 to 00 plus the variable textnumb&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;... #textElement.text = "00"+str(textnumb)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;... #defines the variable textElementkpfrom which is for the kp from label in the layout&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;... #textElementkpfrom = arcpy.mapping.ListLayoutElements(mxd,"TEXT_ELEMENT","backkp")[0]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;... #changes the text in the kp from element to equal to the variable j&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;... #textElementkpfrom.text = j&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;... #defines the variable textElementkpto which is the kp to text piece in the layout&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;... #textElementkpto = arcpy.mapping.ListLayoutElements(mxd,"TEXT_ELEMENT","frontkp")[0]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;... #changes the kp to text element to equal the variable i&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;... #textElementkpto.text = i&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;... #defines the variable mxdaltname &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;... #mxdaltname = "TMX-Parcels-Map"+str(i)+".mxd"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;... #saves a the current map to an mxd referencing the variable mxdaltname as the filename&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;... #mxd.saveACopy(r"\\swg.ca\files\Jobs\35000\35628 ED41 Kinder Morgan Canada Inc\500CAD\GIS\MapOutput\\"+mxdaltname)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;... #defines the variable pdfname&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;... pdfname = "TMX-Parcels-Map"+str(i)+".pdf"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;... #export the current map to pdf format using pdfname variable as the filename&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;... arcpy.mapping.ExportToPDF(mxd,r"\\swg.ca\files\Jobs\35000\35628 ED41 Kinder Morgan Canada Inc\500CAD\GIS\MapOutput\PDFOutput\\"+pdfname) &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;... #appends the created pdf pages to the PDFdoc that was assigned before the loop&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;... PDFdoc.appendPages(r"\\swg.ca\files\Jobs\35000\35628 ED41 Kinder Morgan Canada Inc\500CAD\GIS\MapOutput\PDFOutput\\"+pdfname)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;... &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;... &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help much appreciated.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 May 2012 21:04:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/cursor-object-has-no-attribute-getvalue/m-p/105118#M8102</guid>
      <dc:creator>DerekBannon</dc:creator>
      <dc:date>2012-05-18T21:04:16Z</dc:date>
    </item>
    <item>
      <title>Re: 'Cursor' object has no attribute 'getValue'</title>
      <link>https://community.esri.com/t5/python-questions/cursor-object-has-no-attribute-getvalue/m-p/105119#M8103</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You have only set up a cursor at this point. To use it you need to loop through the features, like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;for row in cursor: &amp;nbsp;&amp;nbsp;&amp;nbsp; rotation = row.getValue("Angle") #You could also use row.Angle here &amp;nbsp;&amp;nbsp;&amp;nbsp; ...&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also: Please review the sticky topic on posting Python code.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 19 May 2012 20:08:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/cursor-object-has-no-attribute-getvalue/m-p/105119#M8103</guid>
      <dc:creator>BruceNielsen</dc:creator>
      <dc:date>2012-05-19T20:08:19Z</dc:date>
    </item>
    <item>
      <title>Re: 'Cursor' object has no attribute 'getValue'</title>
      <link>https://community.esri.com/t5/python-questions/cursor-object-has-no-attribute-getvalue/m-p/105120#M8104</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks a TON!!! Bruce. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This helped me out. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;for i in range (296, 356,1):&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;...&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for row in cursor:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;...&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rotation = row.getValue("Angle") &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Inserted the for loop for the variable row in cursor and assigned the rotation value and it ran great. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I still have yet to read the sticky on inserting python code into the forums. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Next time for sure. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks Again!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 May 2012 15:47:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/cursor-object-has-no-attribute-getvalue/m-p/105120#M8104</guid>
      <dc:creator>DerekBannon</dc:creator>
      <dc:date>2012-05-22T15:47:05Z</dc:date>
    </item>
    <item>
      <title>Re: 'Cursor' object has no attribute 'getValue'</title>
      <link>https://community.esri.com/t5/python-questions/cursor-object-has-no-attribute-getvalue/m-p/105121#M8105</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Don't forget to help future users by marking the question as answered.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 May 2012 22:24:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/cursor-object-has-no-attribute-getvalue/m-p/105121#M8105</guid>
      <dc:creator>BruceNielsen</dc:creator>
      <dc:date>2012-05-22T22:24:00Z</dc:date>
    </item>
    <item>
      <title>Re: 'Cursor' object has no attribute 'getValue'</title>
      <link>https://community.esri.com/t5/python-questions/cursor-object-has-no-attribute-getvalue/m-p/105122#M8106</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;for i in range (296, 356,1):
&amp;nbsp;&amp;nbsp;&amp;nbsp; for row in cursor:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rotation = row.getValue("Angle") &lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Could you elaborate little more why you are using two for loops?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Follow the screenshot to insert code block. Click on the hash symbol and paste your code within CODE tags copying them from a Python editor (such as IDLE).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]14647[/ATTACH]&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 06:25:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/cursor-object-has-no-attribute-getvalue/m-p/105122#M8106</guid>
      <dc:creator>NobbirAhmed</dc:creator>
      <dc:date>2021-12-11T06:25:07Z</dc:date>
    </item>
    <item>
      <title>Re: 'Cursor' object has no attribute 'getValue'</title>
      <link>https://community.esri.com/t5/python-questions/cursor-object-has-no-attribute-getvalue/m-p/105123#M8107</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I needed the attribute value for features I was selecting based off of the range I was running in the first for loop. If that makes sense.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 May 2012 21:38:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/cursor-object-has-no-attribute-getvalue/m-p/105123#M8107</guid>
      <dc:creator>DerekBannon</dc:creator>
      <dc:date>2012-05-31T21:38:31Z</dc:date>
    </item>
    <item>
      <title>Re: 'Cursor' object has no attribute 'getValue'</title>
      <link>https://community.esri.com/t5/python-questions/cursor-object-has-no-attribute-getvalue/m-p/105124#M8108</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Once your cursor is iterated over the first time, it becomes empty. So, even if you run the inner loop 5 or 10 times, it does not do anything. If you insert a print statement as the following code, you'll see that row values are not printed after the first iteraton.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;for i in range (296, 356,1):
&amp;nbsp;&amp;nbsp;&amp;nbsp; print "Iteration", i
&amp;nbsp;&amp;nbsp;&amp;nbsp; for row in cursor:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rotation = row.getValue("Angle")
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print rotation&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here, "Iteration n" will print 60 times but rotation will be printed only once (for the first iteration). That's why I wanted to know what is the purpose of the outer for loop. I'm sure you have something else there as per your need &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; I was just wondering what that could be.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 06:25:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/cursor-object-has-no-attribute-getvalue/m-p/105124#M8108</guid>
      <dc:creator>NobbirAhmed</dc:creator>
      <dc:date>2021-12-11T06:25:10Z</dc:date>
    </item>
  </channel>
</rss>

