<?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 How to check of a field exists in arcpy.FieldMappings  in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-check-of-a-field-exists-in-arcpy/m-p/826609#M3034</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to check if a field exits in a&amp;nbsp;&lt;SPAN&gt;arcpy.FieldMappings&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fieldmappings = arcpy.FieldMappings()&lt;BR /&gt; fieldmappings.addTable(fc1)&lt;BR /&gt; fieldmappings.addTable(fc2)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if fieldmappings.findFieldMapIndex("SHAPE_LEN") &amp;nbsp; ?????? &amp;nbsp;how to check that this field exists to remove it?&lt;BR /&gt;&amp;nbsp; print"not found"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 08 May 2017 16:21:42 GMT</pubDate>
    <dc:creator>JoseSanchez</dc:creator>
    <dc:date>2017-05-08T16:21:42Z</dc:date>
    <item>
      <title>How to check of a field exists in arcpy.FieldMappings</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-check-of-a-field-exists-in-arcpy/m-p/826609#M3034</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to check if a field exits in a&amp;nbsp;&lt;SPAN&gt;arcpy.FieldMappings&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fieldmappings = arcpy.FieldMappings()&lt;BR /&gt; fieldmappings.addTable(fc1)&lt;BR /&gt; fieldmappings.addTable(fc2)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if fieldmappings.findFieldMapIndex("SHAPE_LEN") &amp;nbsp; ?????? &amp;nbsp;how to check that this field exists to remove it?&lt;BR /&gt;&amp;nbsp; print"not found"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 May 2017 16:21:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-check-of-a-field-exists-in-arcpy/m-p/826609#M3034</guid>
      <dc:creator>JoseSanchez</dc:creator>
      <dc:date>2017-05-08T16:21:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to check of a field exists in arcpy.FieldMappings</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-check-of-a-field-exists-in-arcpy/m-p/826610#M3035</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One way of doing it is:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;fldIdx &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; fieldmappings&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;findFieldMapIndex&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"&amp;lt;field&amp;gt;"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; fldIdx &lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;1&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; fieldmappings&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;removeFieldMap&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;fldIdx&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;‍‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 09:57:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-check-of-a-field-exists-in-arcpy/m-p/826610#M3035</guid>
      <dc:creator>KaushikMysorekar</dc:creator>
      <dc:date>2021-12-12T09:57:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to check of a field exists in arcpy.FieldMappings</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-check-of-a-field-exists-in-arcpy/m-p/826611#M3036</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For future reference, this appears to be an ArcPy question, not an ArcGIS API for Python question.&amp;nbsp; The &lt;A href="https://community.esri.com/community/developers/gis-developers/python?sr=search&amp;amp;searchId=6b7dbc24-801d-42d7-b998-4599b3565621&amp;amp;searchIndex=1"&gt;https://community.esri.com/community/developers/gis-developers/python?sr=search&amp;amp;searchId=6b7dbc24-801d-42d7-b998-4599b3565621&amp;amp;searchIndex=1&lt;/A&gt;‌ space is a higher-visibility area for ArcPy-related questions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/docs/DOC-1544-geonet-community-structure?sr=search&amp;amp;searchId=cc7f9fc1-bd8e-4733-904b-a21378d212df&amp;amp;searchIndex=0"&gt;https://community.esri.com/docs/DOC-1544-geonet-community-structure?sr=search&amp;amp;searchId=cc7f9fc1-bd8e-4733-904b-a21378d212df&amp;amp;searchIndex=0&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 May 2017 19:21:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-check-of-a-field-exists-in-arcpy/m-p/826611#M3036</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2017-05-08T19:21:26Z</dc:date>
    </item>
  </channel>
</rss>

