<?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 Why differences in Field Mapping strings Python 2.7 vs 3? in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/why-differences-in-field-mapping-strings-python-2/m-p/743373#M297</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;While trying to run a script I've used in python 2.7 for some time, I encountered real issues with the field mappings when trying to run it&amp;nbsp;using python 3. Python 2.7 seemed more forgiving in the format of a field mapping variable for use with &lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;FeatureClassToFeatureClass_conversion(). I was able to change the string representation in several ways, including using the string rather then loading it into a FieldMappings() object. I've attached 2 examples of how the string for field mapping had to be formatted very differently to work in either python 2.7 or 3. I'm really not sure if this might not be a bug in arcpy for python 3, but I do know that the string format for field mappings used with&amp;nbsp;&lt;SPAN&gt;FeatureClassToFeatureClass in python 2.7 is way more forgiving then what it had to be for python 3.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 Sep 2020 22:07:39 GMT</pubDate>
    <dc:creator>DarylHochhalter</dc:creator>
    <dc:date>2020-09-16T22:07:39Z</dc:date>
    <item>
      <title>Why differences in Field Mapping strings Python 2.7 vs 3?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/why-differences-in-field-mapping-strings-python-2/m-p/743373#M297</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;While trying to run a script I've used in python 2.7 for some time, I encountered real issues with the field mappings when trying to run it&amp;nbsp;using python 3. Python 2.7 seemed more forgiving in the format of a field mapping variable for use with &lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;FeatureClassToFeatureClass_conversion(). I was able to change the string representation in several ways, including using the string rather then loading it into a FieldMappings() object. I've attached 2 examples of how the string for field mapping had to be formatted very differently to work in either python 2.7 or 3. I'm really not sure if this might not be a bug in arcpy for python 3, but I do know that the string format for field mappings used with&amp;nbsp;&lt;SPAN&gt;FeatureClassToFeatureClass in python 2.7 is way more forgiving then what it had to be for python 3.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Sep 2020 22:07:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/why-differences-in-field-mapping-strings-python-2/m-p/743373#M297</guid>
      <dc:creator>DarylHochhalter</dc:creator>
      <dc:date>2020-09-16T22:07:39Z</dc:date>
    </item>
  </channel>
</rss>

