<?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: Arc Pro Field Mapping not working in Export Table conversion tool in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/arc-pro-field-mapping-not-working-in-export-table/m-p/1382447#M78784</link>
    <description>&lt;P&gt;Yes, there is a bug but don't think they have classified it as such yet. I have trouble with ExportFeatures in a script that ran fine in 3.1 and still runs from our enterprise 11.0 server machine. I tried all kinds of reformatting for the string in the fieldmappings but nothing worked, then discovered that even using a single line string for fieldmappings in the ExportFeatures funtion still didn't work, I found another post where the issue seems to be with layers that have a joined feature class or table.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/t5/arcgis-pro-questions/export-features-with-table-join-field-mapping-v3-2/m-p/1382243#M78752" target="_blank"&gt;https://community.esri.com/t5/arcgis-pro-questions/export-features-with-table-join-field-mapping-v3-2/m-p/1382243#M78752&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 14 Feb 2024 19:43:51 GMT</pubDate>
    <dc:creator>DarylHochhalter</dc:creator>
    <dc:date>2024-02-14T19:43:51Z</dc:date>
    <item>
      <title>Arc Pro Field Mapping not working in Export Table conversion tool</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arc-pro-field-mapping-not-working-in-export-table/m-p/1382284#M78758</link>
      <description>&lt;P&gt;I have done this hundreds of times, but something seems to have changed in the last Arc Pro update. I have a Python script where I am trying to convert a spreadsheet into a point layer.&amp;nbsp; Below is what I tried first, but the latitude and longitude fields will not convert to Double.&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;# Process: Excel To Table (Excel To Table) (conversion)
arcpy.AddMessage("Converting spreadsheet to DB Table")
logging.info("Converting spreadsheet to DB Table")
excelToTable = os.path.join(TempWS, "excelToTable")
arcpy.AddMessage("Excel to table path " + excelToTable)
arcpy.conversion.ExcelToTable(Input_Excel_File=spreadsheet, Output_Table=excelToTable, Sheet="Debris Harvest Data Florida")
fm = ("list_name \"List Name\" true true false 100 Text 0 0,First,#,excelToTable,list_name,0,254;" +
          "item_id \"Item ID\" true true false 10 Text 0 0,First,#,excelToTable,item_id,0,254;" +
          "itemname \"Item Name\" true true false 255 Text 0 0,First,#,excelToTable,itemname,0,254;" +
          "material \"Material\" true true false 255 Text 0 0,First,#,excelToTable,material,0,254;" +
          "quantity \"Quantity\" true true false 255 Text 0 0,First,#,excelToTable,quantity,0,254;" +
          "description \"Description\" true true false 255 Text 0 0,First,#,excelToTable,description,0,254;" +
          "latitude \"Latitude\" true true false 8 Double 0 0,First,#,excelToTable,latitude,0,254;" +
          "longitude \"Longitude\" true true false 8 Double 0 0,First,#,excelToTable,longitude,0,254;" +
          "altitude \"Altitude\" true true false 255 Float 0 0,First,#,excelToTable,altitude,0,254;" +
          "radius \"Radius\" true true false 255 Float 0 0,First,#,excelToTable,radius,0,254;" +
          "location \"Location\" true true false 255 Text 0 0,First,#,excelToTable,location,0,254;" +
          "timestamp \"Timestamp\" true true false 255 Text 0 0,First,#,excelToTable,timestamp,0,254;" +
          "dt \"Datetime\" true true false 255 Date 0 0,First,#,excelToTable,dt,0,254;" +
          "project_name \"Project Name\" true true false 255 Text 0 0,First,#,excelToTable,project_name,0,254;" +
          "project_id \"Project ID\" true true false 255 Long 0 0,First,#,excelToTable,project_id,0,254;" +
          "username \"Username\" true true false 255 Text 0 0,First,#,excelToTable,username,0,254;" +
          "user_index \"User Index\" true true false 255 Long 0 0,First,#,excelToTable,user_index,0,254;" +
          "manual_upload \"Manual Upload\" true true false 255 Text 0 0,First,#,excelToTable,manual_upload,0,254;" +
          "event_name \"Event Name\" true true false 255 Text 0 0,First,#,excelToTable,event_name,0,254;" +
          "id \"ID\" true true false 255 Text 0 0,First,#,excelToTable,id,0,254;" +
          "log_index \"Log Index\" true true false 255 Long 0 0,First,#,excelToTable,log_index,0,254")

# Process: Export Table (Export Table) (conversion)
    arcpy.AddMessage("Exporting table and mapping fields")
    logging.info("Exporting table and mapping fields")
    MDD_exportTable = os.path.join(TempWS, "MDD_exportTable")
    arcpy.conversion.ExportTable(in_table=excelToTable, out_table=MDD_exportTable, field_mapping=fieldMap)

# Process: XY Table To Point (XY Table To Point) (management)
    arcpy.AddMessage("Displaying XY values and creating point feature class")
    logging.info("Displaying XY values and creating point feature class")
    MDD_tableToPoint = os.path.join(TempWS, "MDD_tableToPoint")
    arcpy.management.XYTableToPoint(in_table=MDD_exportTable, out_feature_class=MDD_tableToPoint, x_field="lon", y_field="lat", 
                                    coordinate_system="GEOGCS[\"GCS_WGS_1984\",DATUM[\"D_WGS_1984\",SPHEROID[\"WGS_1984\",6378137.0,298.257223563]],PRIMEM[\"Greenwich\",0.0],UNIT[\"Degree\",0.0174532925199433]];-400 -400 1000000000;-100000 10000;-100000 10000;8.98315284119521E-09;0.001;0.001;IsHighPrecision")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the exported table, the latitude and longitude fields are still Text fields and I cannot display XY values using these fields. I also tried adding new fields in the field map and then calculating them, but iy seems as though the Table Export tool is ignoring the field mapping altogether because there are no new fields created to run the Calculate Field tool on. I noticed that in the last ArcPro update, the field mapping tool interface has changed, so I am wandering if something got messed up in the last update. I really don't want to have to write an extra 100 lines of code to do this, so if anyone has any insight please share. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Feb 2024 16:36:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arc-pro-field-mapping-not-working-in-export-table/m-p/1382284#M78758</guid>
      <dc:creator>FranklinAlexander</dc:creator>
      <dc:date>2024-02-14T16:36:13Z</dc:date>
    </item>
    <item>
      <title>Re: Arc Pro Field Mapping not working in Export Table conversion tool</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arc-pro-field-mapping-not-working-in-export-table/m-p/1382303#M78763</link>
      <description>&lt;P&gt;ArcGIS 3.2.2&lt;BR /&gt;&lt;BR /&gt;I believe I'm experiencing a related issue, except its presenting itself in the Export Features tool in model builder.&lt;/P&gt;&lt;P data-unlink="true"&gt;Export Features is the final tool in my chain, and I was using&amp;nbsp; it with field mappings after a join between two very similar feature classes to remove a large chunk of the extraneous fields. This was working up until our org updated to 3.2.2 yesterday.&lt;BR /&gt;&lt;BR /&gt;Now I get an error &lt;A href="https://pro.arcgis.com/en/pro-app/3.0/tool-reference/tool-errors-and-warnings/160001-170000/tool-errors-and-warnings-160126-160150-160144.htm" target="_self"&gt;161044&lt;/A&gt;&amp;nbsp;&amp;nbsp;and when I try to trouble shoot by removing fields from the field map (IE just exporting one field), the field map seemingly resets when I clear my intermediate data. The tool when run tries to export all fields and I continue to get the error.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Feb 2024 17:15:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arc-pro-field-mapping-not-working-in-export-table/m-p/1382303#M78763</guid>
      <dc:creator>LaurencePerry</dc:creator>
      <dc:date>2024-02-14T17:15:32Z</dc:date>
    </item>
    <item>
      <title>Re: Arc Pro Field Mapping not working in Export Table conversion tool</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arc-pro-field-mapping-not-working-in-export-table/m-p/1382330#M78768</link>
      <description>&lt;P&gt;There is a related BUG-000162878 - "&lt;SPAN&gt;Export Features in ArcGIS Pro does not support editing field properties when exporting from ArcGIS Online hosted feature service" that I wonder is also an issue in this workflow too.&amp;nbsp; It shows it is fixed for the ArcGIS Pro 3.3 upcoming release.&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If you're able to uninstall the 3.2.2 update (workflow is Windows Start Button, go to Control Panel-&amp;gt;Programs-&amp;gt;Programs and features, then top right click "View installed updates" and then uninstall ArcGIS Pro 3.2 Patch 2 (3.2.2).&amp;nbsp; Does the error persist?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Feb 2024 17:28:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arc-pro-field-mapping-not-working-in-export-table/m-p/1382330#M78768</guid>
      <dc:creator>Robert_LeClair</dc:creator>
      <dc:date>2024-02-14T17:28:54Z</dc:date>
    </item>
    <item>
      <title>Re: Arc Pro Field Mapping not working in Export Table conversion tool</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arc-pro-field-mapping-not-working-in-export-table/m-p/1382375#M78776</link>
      <description>&lt;P&gt;The issue only exists for me when I try and execute a script from a script tool. I have been able to run the Export Table conversion tool successfully in model builder, Arc Pro, and from the Python IDLE. After further investigation, it appears that if I leave the field mapping in one continuous line and don't wrap each field to the next line like I did in my code sample, it works as expected and my fields are updated to the new types.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't understand why this is only an issue when I execute my script from a script tool, when I can execute the exact same script from the IDLE and it works just fine. I just find the long continuous never ending line of code to be a little annoying because it's messy and I have to scroll, scroll, and scroll some more to see all of the mapping parameters!! It also makes the parameters difficult to edit if needed.&amp;nbsp;&lt;/P&gt;&lt;P&gt;To Robert,&lt;/P&gt;&lt;P&gt;Yes, I did get that update a couple of days ago, but OIT would have to uninstall it. I will just wait for the next update and see if it makes any difference.&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 14 Feb 2024 18:26:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arc-pro-field-mapping-not-working-in-export-table/m-p/1382375#M78776</guid>
      <dc:creator>FranklinAlexander</dc:creator>
      <dc:date>2024-02-14T18:26:36Z</dc:date>
    </item>
    <item>
      <title>Re: Arc Pro Field Mapping not working in Export Table conversion tool</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arc-pro-field-mapping-not-working-in-export-table/m-p/1382412#M78782</link>
      <description>&lt;P&gt;I was wrong about wrapping the fields, that is not the issue. The problem occurs when I use a variable in place of the hard file path for the input table. This is a huge problem, because the path comes from a parameter and must variable. Otherwise it defeats the whole purpose of the script tool, which is the portability!&amp;nbsp;&lt;/P&gt;&lt;P&gt;This:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;"longitude &lt;/SPAN&gt;&lt;SPAN&gt;\"&lt;/SPAN&gt;&lt;SPAN&gt;Longitude&lt;/SPAN&gt;&lt;SPAN&gt;\"&lt;/SPAN&gt;&lt;SPAN&gt; true true false 255 Text 0 0,First,#,&lt;FONT color="#FF0000"&gt;C:&lt;/FONT&gt;&lt;/SPAN&gt;&lt;FONT color="#FF0000"&gt;&lt;SPAN&gt;\\&lt;/SPAN&gt;&lt;SPAN&gt;GIS_projects&lt;/SPAN&gt;&lt;SPAN&gt;\\&lt;/SPAN&gt;&lt;SPAN&gt;...&lt;/SPAN&gt;&lt;SPAN&gt;\\&lt;/SPAN&gt;&lt;SPAN&gt;...&lt;/SPAN&gt;&lt;SPAN&gt;\\&lt;/SPAN&gt;&lt;SPAN&gt;...&lt;/SPAN&gt;&lt;SPAN&gt;\\&lt;/SPAN&gt;&lt;SPAN&gt;Temp.gdb&lt;/SPAN&gt;&lt;SPAN&gt;\\&lt;/SPAN&gt;&lt;/FONT&gt;&lt;SPAN&gt;&lt;FONT color="#FF0000"&gt;excelToTable&lt;/FONT&gt;,longitude,0,254;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Needs to be this:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;"longitude &lt;/SPAN&gt;&lt;SPAN&gt;\"&lt;/SPAN&gt;&lt;SPAN&gt;Longitude&lt;/SPAN&gt;&lt;SPAN&gt;\"&lt;/SPAN&gt;&lt;SPAN&gt; true true false 255 Text 0 0,First,#,&lt;/SPAN&gt;&lt;SPAN&gt;&lt;FONT color="#FF0000"&gt;excelToTable&lt;/FONT&gt;,longitude,0,254;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;If I print the variable &lt;FONT color="#FF0000"&gt;excelToTable&lt;/FONT&gt;&amp;nbsp;to the processing details window, they are exactly the same. Any ideas about how I can address this?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 14 Feb 2024 19:01:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arc-pro-field-mapping-not-working-in-export-table/m-p/1382412#M78782</guid>
      <dc:creator>FranklinAlexander</dc:creator>
      <dc:date>2024-02-14T19:01:01Z</dc:date>
    </item>
    <item>
      <title>Re: Arc Pro Field Mapping not working in Export Table conversion tool</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arc-pro-field-mapping-not-working-in-export-table/m-p/1382447#M78784</link>
      <description>&lt;P&gt;Yes, there is a bug but don't think they have classified it as such yet. I have trouble with ExportFeatures in a script that ran fine in 3.1 and still runs from our enterprise 11.0 server machine. I tried all kinds of reformatting for the string in the fieldmappings but nothing worked, then discovered that even using a single line string for fieldmappings in the ExportFeatures funtion still didn't work, I found another post where the issue seems to be with layers that have a joined feature class or table.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/t5/arcgis-pro-questions/export-features-with-table-join-field-mapping-v3-2/m-p/1382243#M78752" target="_blank"&gt;https://community.esri.com/t5/arcgis-pro-questions/export-features-with-table-join-field-mapping-v3-2/m-p/1382243#M78752&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Feb 2024 19:43:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arc-pro-field-mapping-not-working-in-export-table/m-p/1382447#M78784</guid>
      <dc:creator>DarylHochhalter</dc:creator>
      <dc:date>2024-02-14T19:43:51Z</dc:date>
    </item>
    <item>
      <title>Re: Arc Pro Field Mapping not working in Export Table conversion tool</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arc-pro-field-mapping-not-working-in-export-table/m-p/1382794#M78843</link>
      <description>&lt;P&gt;I'm having the same problem. I need to explicitly state the file path in the field mapping to get the ExportTable script to work. Started having issues when I updated to 3.2. My scripts worked fine before that.&lt;/P&gt;&lt;P&gt;I have a variable (yesterday's date) in the filename that runs daily. I agree, this is a huge problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Feb 2024 14:07:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arc-pro-field-mapping-not-working-in-export-table/m-p/1382794#M78843</guid>
      <dc:creator>IanRatcliffe</dc:creator>
      <dc:date>2024-02-15T14:07:29Z</dc:date>
    </item>
    <item>
      <title>Re: Arc Pro Field Mapping not working in Export Table conversion tool</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arc-pro-field-mapping-not-working-in-export-table/m-p/1382907#M78858</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/589849"&gt;@IanRatcliffe&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes, that is the exact issue I was having, but only occurring when I tried to run my script from a script tool. I could run it from the Python IDLE without issue. Apparently, at least from my experience dealing with this, for some reason, the Table Export conversion tool field mappings could not see my file path to the input layer whenever I used a variable for the path. It doesn't make sense because I used the same variable in other geoprocessing tools and they ran just fine. Just some quirky behavior with this tool. I was able to get it working by setting my workspace environment to the gdb that contained the input layer for the field map.&amp;nbsp;&lt;/P&gt;&lt;P&gt;This works:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;outPath = arcpy.GetParameterAsText(0) 
TempDB_name = "Temp.gdb"
TempWS = os.path.join(outPath, TempDB_name)

with arcpy.EnvManager(scratchWorkspace=TempWS, workspace=TempWS): # setting the env made the difference
  excelToTable = "excelToTable"  # This is my input table
  fm = ("list_name \"List Name\" true true false 100 Text 0 0,First,#,excelToTable,list_name,0,254;" +
            "item_id \"Item ID\" true true false 10 Text 0 0,First,#,excelToTable,item_id,0,254;" +
            "itemname \"Item Name\" true true false 100 Text 0 0,First,#,excelToTable,itemname,0,254;" +
            "material \"Material\" true true false 50 Text 0 0,First,#,excelToTable,material,0,254;" +
            "quantity \"Quantity\" true true false 255 Long 0 0,First,#,excelToTable,quantity,0,254;" +
            "description \"Description\" true true false 255 Text 0 0,First,#,excelToTable,description,0,254;" +
            "latitude \"Latitude\" true true false 8 Double 14 16,First,#,excelToTable,latitude,0,254;" +
            "longitude \"Longitude\" true true false 8 Double 14 16,First,#,excelToTable,longitude,0,254;" +
            "altitude \"Altitude\" true true false 255 Float 0 0,First,#,excelToTable,altitude,0,254;" +
            "radius \"Radius\" true true false 255 Float 0 0,First,#,excelToTable,radius,0,254;" +
            "location \"Location\" true true false 100 Text 0 0,First,#,excelToTable,location,0,254;" +
            "timestamp \"Timestamp\" true true false 20 Text 0 0,First,#,excelToTable,timestamp,0,254;" +
            "dt \"Datetime\" true true false 255 Date 0 0,First,#,excelToTable,dt,0,254;" +
            "project_name \"Project Name\" true true false 50 Text 0 0,First,#,excelToTable,project_name,0,254")

  MDD_exportTable = "MDD_exportTable"
  arcpy.conversion.ExportTable(in_table=excelToTable, out_table=MDD_exportTable, field_mapping=fm)  &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Feb 2024 16:49:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arc-pro-field-mapping-not-working-in-export-table/m-p/1382907#M78858</guid>
      <dc:creator>FranklinAlexander</dc:creator>
      <dc:date>2024-02-15T16:49:10Z</dc:date>
    </item>
    <item>
      <title>Re: Arc Pro Field Mapping not working in Export Table conversion tool</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arc-pro-field-mapping-not-working-in-export-table/m-p/1383832#M79026</link>
      <description>&lt;P&gt;Same. I have a python toolbox script that exported an input Excel table to a geodatabase table and used the field mapping parameter to modify 14 input fields to have the desired output table schema. It worked great. After the last Pro update, the field mapping parameter no longer functions, and therefore none of the follow-up functions in the script run correctly because the field names and types weren't changed by the field map parameter.&lt;/P&gt;&lt;P&gt;Using EnvManager to set the workspace environment didn't fix the issue.&lt;/P&gt;</description>
      <pubDate>Sun, 18 Feb 2024 00:27:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arc-pro-field-mapping-not-working-in-export-table/m-p/1383832#M79026</guid>
      <dc:creator>Dankotaru</dc:creator>
      <dc:date>2024-02-18T00:27:44Z</dc:date>
    </item>
    <item>
      <title>Re: Arc Pro Field Mapping not working in Export Table conversion tool</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arc-pro-field-mapping-not-working-in-export-table/m-p/1389239#M79573</link>
      <description>&lt;P&gt;Update: I found a working solution&lt;/P&gt;&lt;P&gt;I had the same problem for multiple python toolbox tools that ran perfectly fine until the latest update, after which the field mapping parameter for both the Export Table and Export Feature functions were ignored in their outputs.&lt;/P&gt;&lt;P&gt;My solution has been to pass an f-string of the input table or layer variable into the field map for each field's source.&lt;/P&gt;&lt;P&gt;For example, this little portion of the original script exporting from a table called 'CDOT_Table' used to work fine (fyi: the input in this example is always called 'CDOT_Table', hence the surprise that field mapping stopped working). Now the field mapping fails to map the 'LocID' field to 'Source_ID' field in the output:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;arcpy.conversion.ExportTable(InputTable, OutputTable, field_mapping="Source_ID \"Source_ID\" true true false 255 Text 0 0,First,#,CDOT_Table,LocID,0,255")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;The output table had the data, but it was still in a field called 'LocID', which caused issues for other operations later in the script. The field mapping also failed to re-order the output fields. And fields that were converted types, like from integers to strings, would get added on rather than changed in the output. For input tables or features with multiple field mapping changes, this was a big problem. I fixed it by passing in the input variable for each field source as an f-string like this:&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;arcpy.conversion.ExportTable(InputTable, OutputLayer, field_mapping="Source_ID \"Source_ID\" true true false 255 Text 0 0,First,#,"f"{InputTable}"",LocID,0,255")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So far, this solution has worked in multiple scripts.&lt;/P&gt;&lt;P&gt;For tables or features that have joins, I have found this to work by simply simply exporting it first to memory and then export it again from memory to your output. That eliminates the join when exporting to your output, and having to define the source as part of each input field's name.&lt;/P&gt;&lt;P&gt;Hope this helps others who stumble across this issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Mar 2024 02:24:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arc-pro-field-mapping-not-working-in-export-table/m-p/1389239#M79573</guid>
      <dc:creator>Dankotaru</dc:creator>
      <dc:date>2024-03-01T02:24:30Z</dc:date>
    </item>
    <item>
      <title>Re: Arc Pro Field Mapping not working in Export Table conversion tool</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arc-pro-field-mapping-not-working-in-export-table/m-p/1411642#M82038</link>
      <description>&lt;P&gt;I had issue after upgrade to pro 3.2 with Append tool in Python scripts where I build a field mappings object and was passing that as parameter in the append line like this.&amp;nbsp; This code worked fine previously:&lt;BR /&gt;(Note:&amp;nbsp; fldMappings is the&amp;nbsp;FieldMappings object, I am using full paths to all feature classes which are in different workspaces, and not changing workspace on arcpy.env object at all)&lt;/P&gt;&lt;DIV&gt;arcpy.management.&lt;SPAN&gt;Append&lt;/SPAN&gt;(inputs,target,&lt;SPAN&gt;'NO_TEST'&lt;/SPAN&gt;,fldMappings)&lt;BR /&gt;&lt;BR /&gt;It turned out that calling python str function on the fldMappings object made it work again!&amp;nbsp; Now my code looks like this and it works:&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt;arcpy.management.&lt;SPAN&gt;Append&lt;/SPAN&gt;(inputs,target,&lt;SPAN&gt;'NO_TEST'&lt;/SPAN&gt;,&lt;SPAN&gt;str&lt;/SPAN&gt;(fldMappings))&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 18 Apr 2024 14:23:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arc-pro-field-mapping-not-working-in-export-table/m-p/1411642#M82038</guid>
      <dc:creator>DavidTillberg_community</dc:creator>
      <dc:date>2024-04-18T14:23:55Z</dc:date>
    </item>
    <item>
      <title>Re: Arc Pro Field Mapping not working in Export Table conversion tool</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arc-pro-field-mapping-not-working-in-export-table/m-p/1516836#M86642</link>
      <description>&lt;P&gt;I also ran into fieldMapping failing in Python with the Append tool after upgrading Pro from 3.0.3 to 3.1.5. I even tested in 3.2, same issue. The fieldmap would only work on fields that had the same name in the source and destination. Wrapping the fieldmap in str() as David mentioned fixed the issue.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Aug 2024 18:04:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arc-pro-field-mapping-not-working-in-export-table/m-p/1516836#M86642</guid>
      <dc:creator>NickN</dc:creator>
      <dc:date>2024-08-08T18:04:00Z</dc:date>
    </item>
    <item>
      <title>Re: Arc Pro Field Mapping not working in Export Table conversion tool</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arc-pro-field-mapping-not-working-in-export-table/m-p/1522904#M87096</link>
      <description>&lt;P&gt;Related to this, but slightly different, in the UI for the Export Features geoprocessing tool, the Field Map would reset itself before I could run the tool effectively rendering the Field Map useless. The solution to this post pointed me to the workaround. So long as the feature I'm trying to export is in my default geodatabase, then the Export Features tool's UI works as expected.&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":party_popper:"&gt;🎉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Aug 2024 14:23:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arc-pro-field-mapping-not-working-in-export-table/m-p/1522904#M87096</guid>
      <dc:creator>mmetzcar</dc:creator>
      <dc:date>2024-08-16T14:23:52Z</dc:date>
    </item>
  </channel>
</rss>

