<?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 inconsistent field names in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/inconsistent-field-names/m-p/411847#M32438</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I need to extract data from 13 point FCs where each intersects with a user-input polygon, and then output certain attribute information from each to one summary excel file.&amp;nbsp; The attribute info is basic stuff like name, address, city, state.&amp;nbsp; However, complicating things, each FC has different field names for the same item, meaning one FC may have the address field as 'address' while another will have it as 'addr' and yet another as 'address_1'.&amp;nbsp; Can anyone give advice or snippet or outline of how best to handle this?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 Oct 2012 19:23:28 GMT</pubDate>
    <dc:creator>MikeDriver</dc:creator>
    <dc:date>2012-10-11T19:23:28Z</dc:date>
    <item>
      <title>inconsistent field names</title>
      <link>https://community.esri.com/t5/python-questions/inconsistent-field-names/m-p/411847#M32438</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I need to extract data from 13 point FCs where each intersects with a user-input polygon, and then output certain attribute information from each to one summary excel file.&amp;nbsp; The attribute info is basic stuff like name, address, city, state.&amp;nbsp; However, complicating things, each FC has different field names for the same item, meaning one FC may have the address field as 'address' while another will have it as 'addr' and yet another as 'address_1'.&amp;nbsp; Can anyone give advice or snippet or outline of how best to handle this?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Oct 2012 19:23:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/inconsistent-field-names/m-p/411847#M32438</guid>
      <dc:creator>MikeDriver</dc:creator>
      <dc:date>2012-10-11T19:23:28Z</dc:date>
    </item>
    <item>
      <title>Re: inconsistent field names</title>
      <link>https://community.esri.com/t5/python-questions/inconsistent-field-names/m-p/411848#M32439</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Mike&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You could use wildcards for the field names.&amp;nbsp; Ex:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;fc = "Airports"

lstFields = arcpy.ListFields(fc, "addr*")
for field in lstFields:
&amp;nbsp;&amp;nbsp; rows = arcpy.SearchCursor(fc)
&amp;nbsp;&amp;nbsp; for row in rows:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print row.getValue(field.name)

del row, rows&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The above code will print values for fields with names addr, address, address_1, etc.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 18:41:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/inconsistent-field-names/m-p/411848#M32439</guid>
      <dc:creator>JakeSkinner</dc:creator>
      <dc:date>2021-12-11T18:41:33Z</dc:date>
    </item>
  </channel>
</rss>

