<?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 Bug in arcpy.mapping in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/bug-in-arcpy-mapping/m-p/222300#M17172</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Has anyone else had this problem?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have an mxd file with two layers in it, one of which is fairly 'heavy' (i.e. takes a minute or so to draw). All layers are visible by default.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have the following code, which opens the mxd file (from outside arcmap) and exports it to a tiff.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE class="python" name="code"&gt;import arcpy template = r"C:\mxd_templates\template1.mxd" mxd = arcpy.mapping.MapDocument(template) arcpy.mapping.ExportToTIFF(mxd, "C:/temp/test.tif")&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The tif file is created, but the second 'heavy' layer is never rendered.&lt;/P&gt;&lt;P&gt;This happens no matter what image format I export to.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've not found anywhere to be able to report bugs online, and I'm having a hard time to get ESRI to recognise this as a bug or to point out what I am doing wrong. Although it is hard to see what could possibly be wrong in 4 lines of code?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Same behaviour on 10.1, 10.2 and 10.2.2&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 30 Oct 2014 13:51:58 GMT</pubDate>
    <dc:creator>JamesRamm</dc:creator>
    <dc:date>2014-10-30T13:51:58Z</dc:date>
    <item>
      <title>Bug in arcpy.mapping</title>
      <link>https://community.esri.com/t5/python-questions/bug-in-arcpy-mapping/m-p/222300#M17172</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Has anyone else had this problem?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have an mxd file with two layers in it, one of which is fairly 'heavy' (i.e. takes a minute or so to draw). All layers are visible by default.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have the following code, which opens the mxd file (from outside arcmap) and exports it to a tiff.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE class="python" name="code"&gt;import arcpy template = r"C:\mxd_templates\template1.mxd" mxd = arcpy.mapping.MapDocument(template) arcpy.mapping.ExportToTIFF(mxd, "C:/temp/test.tif")&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The tif file is created, but the second 'heavy' layer is never rendered.&lt;/P&gt;&lt;P&gt;This happens no matter what image format I export to.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've not found anywhere to be able to report bugs online, and I'm having a hard time to get ESRI to recognise this as a bug or to point out what I am doing wrong. Although it is hard to see what could possibly be wrong in 4 lines of code?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Same behaviour on 10.1, 10.2 and 10.2.2&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Oct 2014 13:51:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/bug-in-arcpy-mapping/m-p/222300#M17172</guid>
      <dc:creator>JamesRamm</dc:creator>
      <dc:date>2014-10-30T13:51:58Z</dc:date>
    </item>
  </channel>
</rss>

