<?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: Export Features Field Mapping in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/export-features-field-mapping/m-p/1567577#M73321</link>
    <description>&lt;P&gt;or change your slashes, but you def need the f.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try this: f"{wDB}/WaterLine" or&amp;nbsp;f"{wDB}\\WaterLine"&lt;/P&gt;</description>
    <pubDate>Wed, 11 Dec 2024 22:45:40 GMT</pubDate>
    <dc:creator>MikeMillerGIS</dc:creator>
    <dc:date>2024-12-11T22:45:40Z</dc:date>
    <item>
      <title>Export Features Field Mapping</title>
      <link>https://community.esri.com/t5/python-questions/export-features-field-mapping/m-p/1566950#M73304</link>
      <description>&lt;P&gt;I'm new to Python and I'm trying to do a Export Features tool&amp;nbsp; with the Field mapping only bringing over a handful of the fields.&amp;nbsp; I have ran the tool and then copied the python code into a Notebook and it works.&amp;nbsp; However I was trying to use variables of the location of the input and output database.&amp;nbsp; With the variables the export works with the input and output features, but the field mapping doesn't and it exports ALL the fields.&amp;nbsp; Is there a way when using variables it only exports only the fields I want it to export.&lt;/P&gt;&lt;P&gt;Below are some screenshots that I have come up with.&lt;/P&gt;&lt;P&gt;Variables:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LindseyStone_0-1733860337118.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/121336i0841F90AE23C2DEE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="LindseyStone_0-1733860337118.png" alt="LindseyStone_0-1733860337118.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Attempt at Export Features with Variables.&amp;nbsp; I tired the wODB with and without the brackets and neither worked.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LindseyStone_1-1733860394250.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/121338iD801320338481143/image-size/medium?v=v2&amp;amp;px=400" role="button" title="LindseyStone_1-1733860394250.png" alt="LindseyStone_1-1733860394250.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Working script when not using any variables.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LindseyStone_2-1733860442766.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/121339i8D52A9F47227CDCE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="LindseyStone_2-1733860442766.png" alt="LindseyStone_2-1733860442766.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Dec 2024 19:55:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/export-features-field-mapping/m-p/1566950#M73304</guid>
      <dc:creator>LindseyStone</dc:creator>
      <dc:date>2024-12-10T19:55:46Z</dc:date>
    </item>
    <item>
      <title>Re: Export Features Field Mapping</title>
      <link>https://community.esri.com/t5/python-questions/export-features-field-mapping/m-p/1567077#M73306</link>
      <description>&lt;P&gt;It looks like you've got an &lt;A href="https://www.geeksforgeeks.org/formatted-string-literals-f-strings-python/" target="_self"&gt;f-string style variable&lt;/A&gt; in your field mapping parameter without the "f" at the beginning of your string.&amp;nbsp; At the beginning of your string, immediately after the equals sign - where there's an "r" in front of the first quotation mark - try changing it to "rf".&lt;/P&gt;</description>
      <pubDate>Wed, 11 Dec 2024 00:16:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/export-features-field-mapping/m-p/1567077#M73306</guid>
      <dc:creator>MobiusSnake</dc:creator>
      <dc:date>2024-12-11T00:16:22Z</dc:date>
    </item>
    <item>
      <title>Re: Export Features Field Mapping</title>
      <link>https://community.esri.com/t5/python-questions/export-features-field-mapping/m-p/1567577#M73321</link>
      <description>&lt;P&gt;or change your slashes, but you def need the f.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try this: f"{wDB}/WaterLine" or&amp;nbsp;f"{wDB}\\WaterLine"&lt;/P&gt;</description>
      <pubDate>Wed, 11 Dec 2024 22:45:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/export-features-field-mapping/m-p/1567577#M73321</guid>
      <dc:creator>MikeMillerGIS</dc:creator>
      <dc:date>2024-12-11T22:45:40Z</dc:date>
    </item>
    <item>
      <title>Re: Export Features Field Mapping</title>
      <link>https://community.esri.com/t5/python-questions/export-features-field-mapping/m-p/1568127#M73331</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/115587"&gt;@MobiusSnake&lt;/a&gt;&amp;nbsp; &amp;nbsp;That worked perfectly by adding "rf" in front of all field mapping.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Dec 2024 21:10:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/export-features-field-mapping/m-p/1568127#M73331</guid>
      <dc:creator>LindseyStone</dc:creator>
      <dc:date>2024-12-12T21:10:15Z</dc:date>
    </item>
  </channel>
</rss>

