<?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: arcpy.PolygonToRaster Field input error in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/arcpy-polygontoraster-field-input-error/m-p/104796#M8060</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The workaround is to save the joined files to a new file so that the join becomes permanent. This could be done by directing to an in_memory location I suppose, but it should clear up whether the fieldname alias or its joined name/alias is used&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Mar 2017 18:02:02 GMT</pubDate>
    <dc:creator>DanPatterson_Retired</dc:creator>
    <dc:date>2017-03-16T18:02:02Z</dc:date>
    <item>
      <title>arcpy.PolygonToRaster Field input error</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-polygontoraster-field-input-error/m-p/104795#M8059</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;script won't recognize input field for polygon to raster - error says : "Field 'x' does not exist within the table"&lt;/P&gt;&lt;P&gt;I join a text file to a polygon feature class. &amp;nbsp;I can list the fields no problem :&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; for field in theDateFields:&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;outputname = str(field.name)&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;print outputname&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;have tried the field name and join file field name in python shell as a test - neither work. &amp;nbsp;For example, text file field name of "r19141231" or join file name of "rain1914.txt.r19140101" &amp;nbsp;- &amp;nbsp;neither work.. &amp;nbsp;But again, they will both list in print statement above, but immediately following with tool does not recognize field (dayField):&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; arcpy.PolygonToRaster_conversion(yearGrid, dayField, outrast)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can run toolbox Polygon To raster tool and select field and it runs, but script does not. I can even create model with tool loaded (it runs), then export to script, but script won't run - doesn't recognize field. &amp;nbsp;?????&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is there some formatting, parsing, etc I need to do for the field to be recognized in the script?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Mar 2017 12:39:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-polygontoraster-field-input-error/m-p/104795#M8059</guid>
      <dc:creator>TroyMullins</dc:creator>
      <dc:date>2017-03-16T12:39:14Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy.PolygonToRaster Field input error</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-polygontoraster-field-input-error/m-p/104796#M8060</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The workaround is to save the joined files to a new file so that the join becomes permanent. This could be done by directing to an in_memory location I suppose, but it should clear up whether the fieldname alias or its joined name/alias is used&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Mar 2017 18:02:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-polygontoraster-field-input-error/m-p/104796#M8060</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2017-03-16T18:02:02Z</dc:date>
    </item>
  </channel>
</rss>

