<?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: IndexError: List Index Out Of Range in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/indexerror-list-index-out-of-range/m-p/757687#M58469</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Damon,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is usually an indication that the layer does not exist within the MXD.&amp;nbsp; Try using a wildcard:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;lyr = arcpy.mapping.ListLayers(mxd,"Burg*",df)[0]&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 22 Apr 2013 11:39:55 GMT</pubDate>
    <dc:creator>JakeSkinner</dc:creator>
    <dc:date>2013-04-22T11:39:55Z</dc:date>
    <item>
      <title>IndexError: List Index Out Of Range</title>
      <link>https://community.esri.com/t5/python-questions/indexerror-list-index-out-of-range/m-p/757686#M58468</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;What is this error referring to?&amp;nbsp; The line of code is:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;lyr = mapping.ListLayers(mxd,"Burglary",df)[0]&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Apr 2013 11:27:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/indexerror-list-index-out-of-range/m-p/757686#M58468</guid>
      <dc:creator>DamonOsbourne</dc:creator>
      <dc:date>2013-04-22T11:27:11Z</dc:date>
    </item>
    <item>
      <title>Re: IndexError: List Index Out Of Range</title>
      <link>https://community.esri.com/t5/python-questions/indexerror-list-index-out-of-range/m-p/757687#M58469</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Damon,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is usually an indication that the layer does not exist within the MXD.&amp;nbsp; Try using a wildcard:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;lyr = arcpy.mapping.ListLayers(mxd,"Burg*",df)[0]&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Apr 2013 11:39:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/indexerror-list-index-out-of-range/m-p/757687#M58469</guid>
      <dc:creator>JakeSkinner</dc:creator>
      <dc:date>2013-04-22T11:39:55Z</dc:date>
    </item>
    <item>
      <title>Re: IndexError: List Index Out Of Range</title>
      <link>https://community.esri.com/t5/python-questions/indexerror-list-index-out-of-range/m-p/757688#M58470</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The wildcard worked.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Apr 2013 17:52:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/indexerror-list-index-out-of-range/m-p/757688#M58470</guid>
      <dc:creator>DamonOsbourne</dc:creator>
      <dc:date>2013-04-22T17:52:56Z</dc:date>
    </item>
  </channel>
</rss>

