<?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 Script ending at loop in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/script-ending-at-loop/m-p/709954#M55028</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm having an issue getting a loop to run in my map.&amp;nbsp; Something as simple as just trying to print "yay" won't iterate.&amp;nbsp; Here's what I have to even a test that I can't get to run.&amp;nbsp; Am I missing something?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;mxd = arcpy.mapping.MapDocument("Current")
mapLyr1 = arcpy.mapping.ListLayers(mxd, "sampleLayer") [0]
cursor = arcpy.SearchCursor(mapLyr1)
for row in cursor:
 print "yay"&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 23 Jun 2014 13:28:48 GMT</pubDate>
    <dc:creator>GeoffOlson</dc:creator>
    <dc:date>2014-06-23T13:28:48Z</dc:date>
    <item>
      <title>Script ending at loop</title>
      <link>https://community.esri.com/t5/python-questions/script-ending-at-loop/m-p/709954#M55028</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm having an issue getting a loop to run in my map.&amp;nbsp; Something as simple as just trying to print "yay" won't iterate.&amp;nbsp; Here's what I have to even a test that I can't get to run.&amp;nbsp; Am I missing something?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;mxd = arcpy.mapping.MapDocument("Current")
mapLyr1 = arcpy.mapping.ListLayers(mxd, "sampleLayer") [0]
cursor = arcpy.SearchCursor(mapLyr1)
for row in cursor:
 print "yay"&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jun 2014 13:28:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/script-ending-at-loop/m-p/709954#M55028</guid>
      <dc:creator>GeoffOlson</dc:creator>
      <dc:date>2014-06-23T13:28:48Z</dc:date>
    </item>
    <item>
      <title>Re: Script ending at loop</title>
      <link>https://community.esri.com/t5/python-questions/script-ending-at-loop/m-p/709955#M55029</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I tried the same script in a different mxd and it worked fine.&amp;nbsp; But it still won't run in the map I created it for.&amp;nbsp; What might cause this?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jun 2014 13:32:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/script-ending-at-loop/m-p/709955#M55029</guid>
      <dc:creator>GeoffOlson</dc:creator>
      <dc:date>2014-06-23T13:32:16Z</dc:date>
    </item>
    <item>
      <title>Re: Script ending at loop</title>
      <link>https://community.esri.com/t5/python-questions/script-ending-at-loop/m-p/709956#M55030</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;are there any rows in the table?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jun 2014 13:39:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/script-ending-at-loop/m-p/709956#M55030</guid>
      <dc:creator>markdenil</dc:creator>
      <dc:date>2014-06-23T13:39:50Z</dc:date>
    </item>
    <item>
      <title>Re: Script ending at loop</title>
      <link>https://community.esri.com/t5/python-questions/script-ending-at-loop/m-p/709957#M55031</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yeah, it's not the layer name.&amp;nbsp; Is it possible for an mxd to become corrupt that certain functions won't run?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jun 2014 13:40:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/script-ending-at-loop/m-p/709957#M55031</guid>
      <dc:creator>GeoffOlson</dc:creator>
      <dc:date>2014-06-23T13:40:56Z</dc:date>
    </item>
    <item>
      <title>Re: Script ending at loop</title>
      <link>https://community.esri.com/t5/python-questions/script-ending-at-loop/m-p/709958#M55032</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I created a new mxd with my layers in it and it's working.&amp;nbsp; So I don't know what caused the issue to begin with.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jun 2014 13:44:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/script-ending-at-loop/m-p/709958#M55032</guid>
      <dc:creator>GeoffOlson</dc:creator>
      <dc:date>2014-06-23T13:44:15Z</dc:date>
    </item>
    <item>
      <title>Re: Script ending at loop</title>
      <link>https://community.esri.com/t5/python-questions/script-ending-at-loop/m-p/709959#M55033</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You might try running MXD Doctor on your original map.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jun 2014 13:47:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/script-ending-at-loop/m-p/709959#M55033</guid>
      <dc:creator>Zeke</dc:creator>
      <dc:date>2014-06-23T13:47:08Z</dc:date>
    </item>
  </channel>
</rss>

